initial work of api server

This commit is contained in:
Rongsong Shen 2026-01-20 18:20:24 +08:00
parent 280c22671f
commit 70970434ca
13 changed files with 394 additions and 9 deletions

View file

@ -67,6 +67,9 @@ static void handle_endpoint_error(endpoint_t* ep)
case HostRole_client:
handle_client_leave(c);
break;
case HostRole_apiserver:
handle_apiserver_leave(c, ep);
break;
default:
ERROR("unknown role %d for endpoint %p", priv->role, ep);
break;