summaryrefslogtreecommitdiff
path: root/src/admin
diff options
context:
space:
mode:
authorErik Skultety <eskultet@redhat.com>2016-04-22 09:47:09 +0200
committerErik Skultety <eskultet@redhat.com>2016-05-03 15:52:50 +0200
commit52a2eef94873c850dc4ada5a464c3ade5f90fcee (patch)
tree11bc2161325b4a0f40eca039f7e1fd8bb47235ed /src/admin
parent7884d089d2f3c9425422ad02a7f525b15e0ef57b (diff)
downloadlibvirt-52a2eef94873c850dc4ada5a464c3ade5f90fcee.tar.gz
admin: Introduce virAdmServerLookupClient
Just like with server-related APIs, before any of client-based APIs can be called, a reference to a client-side client object needs to be obtained. For this purpose, a lookup method should exist. Apart from the client retrieval logic, a new error code for non-existent client had to be added as well. Signed-off-by: Erik Skultety <eskultet@redhat.com>
Diffstat (limited to 'src/admin')
-rw-r--r--src/admin/admin_protocol.x17
1 files changed, 16 insertions, 1 deletions
diff --git a/src/admin/admin_protocol.x b/src/admin/admin_protocol.x
index e77ce9e455..da21db8d39 100644
--- a/src/admin/admin_protocol.x
+++ b/src/admin/admin_protocol.x
@@ -138,6 +138,16 @@ struct admin_server_list_clients_ret { /* insert@1 */
unsigned int ret;
};
+struct admin_server_lookup_client_args {
+ admin_nonnull_server srv;
+ unsigned hyper id;
+ unsigned int flags;
+};
+
+struct admin_server_lookup_client_ret {
+ admin_nonnull_client clnt;
+};
+
/* Define the program number, protocol version and procedure numbers here. */
const ADMIN_PROGRAM = 0x06900690;
const ADMIN_PROTOCOL_VERSION = 1;
@@ -198,5 +208,10 @@ enum admin_procedure {
/**
* @generate: both
*/
- ADMIN_PROC_SERVER_LIST_CLIENTS = 8
+ ADMIN_PROC_SERVER_LIST_CLIENTS = 8,
+
+ /**
+ * @generate: both
+ */
+ ADMIN_PROC_SERVER_LOOKUP_CLIENT = 9
};