mirror of
https://gitlab.com/libvirt/libvirt.git
synced 2025-10-18 03:33:51 +03:00
admin: Introduce virAdmClientClose API
Once we're able to list and identify all clients connected to a specific server, we can then support force-closing a connection. This patch introduces a simple API calling virNetServerClientClose on a specific client, which can be later extended easily, e.g. by sending an event once the client is disconnected successfully. Signed-off-by: Erik Skultety <eskultet@redhat.com>
This commit is contained in:
@@ -59,4 +59,7 @@ int adminClientGetInfo(virNetServerClientPtr client,
|
||||
int *nparams,
|
||||
unsigned int flags);
|
||||
|
||||
int adminClientClose(virNetServerClientPtr client,
|
||||
unsigned int flags);
|
||||
|
||||
#endif /* __LIBVIRTD_ADMIN_SERVER_H__ */
|
||||
|
Reference in New Issue
Block a user