network: implement RPC calls for virNetworkUpdate

This is very short, because almost everything is autogenerated. All
that's needed are:

* src/remote/remote_driver.c: add pointer to autogenerated
    remoteNetworkUpdate to the function table for the remote
    network driver.

* src/remote/remote_protocol.x: add the "args" struct and add one more
    item to the remote_procedure enum for this function.

* src/remote_protocol-struct: update to match remote_protocol.x
This commit is contained in:
Laine Stump 2012-08-19 23:54:57 -04:00
parent 574b9bc66b
commit 7a99b0abaf
3 changed files with 21 additions and 1 deletions

View File

@ -6076,6 +6076,7 @@ static virNetworkDriver network_driver = {
.networkCreateXML = remoteNetworkCreateXML, /* 0.3.0 */
.networkDefineXML = remoteNetworkDefineXML, /* 0.3.0 */
.networkUndefine = remoteNetworkUndefine, /* 0.3.0 */
.networkUpdate = remoteNetworkUpdate, /* 0.10.2 */
.networkCreate = remoteNetworkCreate, /* 0.3.0 */
.networkDestroy = remoteNetworkDestroy, /* 0.3.0 */
.networkGetXMLDesc = remoteNetworkGetXMLDesc, /* 0.3.0 */

View File

@ -1336,6 +1336,15 @@ struct remote_network_undefine_args {
remote_nonnull_network net;
};
struct remote_network_update_args {
remote_nonnull_network net;
unsigned int command;
unsigned int section;
int parentIndex;
remote_nonnull_string xml;
unsigned int flags;
};
struct remote_network_create_args {
remote_nonnull_network net;
};
@ -2997,8 +3006,9 @@ enum remote_procedure {
REMOTE_PROC_CONNECT_LIST_ALL_SECRETS = 287, /* skipgen skipgen priority:high */
REMOTE_PROC_NODE_SET_MEMORY_PARAMETERS = 288, /* autogen autogen */
REMOTE_PROC_NODE_GET_MEMORY_PARAMETERS = 289, /* skipgen skipgen */
REMOTE_PROC_DOMAIN_BLOCK_COMMIT = 290 /* autogen autogen */
REMOTE_PROC_DOMAIN_BLOCK_COMMIT = 290, /* autogen autogen */
REMOTE_PROC_NETWORK_UPDATE = 291 /* autogen autogen priority:high */
/*
* Notice how the entries are grouped in sets of 10 ?

View File

@ -977,6 +977,14 @@ struct remote_network_define_xml_ret {
struct remote_network_undefine_args {
remote_nonnull_network net;
};
struct remote_network_update_args {
remote_nonnull_network net;
u_int command;
u_int section;
int index;
remote_nonnull_string xml;
u_int flags;
};
struct remote_network_create_args {
remote_nonnull_network net;
};
@ -2406,4 +2414,5 @@ enum remote_procedure {
REMOTE_PROC_NODE_SET_MEMORY_PARAMETERS = 288,
REMOTE_PROC_NODE_GET_MEMORY_PARAMETERS = 289,
REMOTE_PROC_DOMAIN_BLOCK_COMMIT = 290,
REMOTE_PROC_NETWORK_UPDATE = 291,
};