mirror of
https://github.com/libvirt/libvirt.git
synced 2025-02-25 18:55:26 -06:00
admin: Introduce virAdmServer structure
This is the key structure of all management operations performed on the daemon/clients. An admin client needs to be able to identify another client (either admin or non-privileged client) to perform an action on it. This identification includes a server the client is connected to, thus a client-side representation of a server is needed. Signed-off-by: Erik Skultety <eskultet@redhat.com>
This commit is contained in:
@@ -42,6 +42,14 @@ extern "C" {
|
||||
*/
|
||||
typedef struct _virAdmConnect virAdmConnect;
|
||||
|
||||
/**
|
||||
* virAdmServer:
|
||||
*
|
||||
* a virAdmServer is a private structure and client-side representation of
|
||||
* a remote server object
|
||||
*/
|
||||
typedef struct _virAdmServer virAdmServer;
|
||||
|
||||
/**
|
||||
* virAdmConnectPtr:
|
||||
*
|
||||
@@ -51,6 +59,15 @@ typedef struct _virAdmConnect virAdmConnect;
|
||||
*/
|
||||
typedef virAdmConnect *virAdmConnectPtr;
|
||||
|
||||
/**
|
||||
* virAdmServerPtr:
|
||||
*
|
||||
* a virAdmServerPtr is a pointer to a virAdmServer structure,
|
||||
* this is the type used to reference client-side representation of a
|
||||
* remote server object throughout all the APIs.
|
||||
*/
|
||||
typedef virAdmServer *virAdmServerPtr;
|
||||
|
||||
virAdmConnectPtr virAdmConnectOpen(const char *name, unsigned int flags);
|
||||
int virAdmConnectClose(virAdmConnectPtr conn);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user