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 --- src/remote/remote_driver.c | 1 + src/remote/remote_protocol.x | 11 ++++++++++- src/remote_protocol-structs | 8 ++++++++ 3 files changed, 19 insertions(+), 1 deletion(-) diff --git a/src/remote/remote_driver.c b/src/remote/remote_driver.c index 8f3895d..2a30096 100644 --- a/src/remote/remote_driver.c +++ b/src/remote/remote_driver.c @@ -6075,6 +6075,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 */ diff --git a/src/remote/remote_protocol.x b/src/remote/remote_protocol.x index 6201ff7..2db09f2 100644 --- a/src/remote/remote_protocol.x +++ b/src/remote/remote_protocol.x @@ -1328,6 +1328,14 @@ struct remote_network_undefine_args { remote_nonnull_network net; }; +struct remote_network_update_args { + remote_nonnull_network net; + unsigned int section; + int parentIndex; + remote_nonnull_string xml; + unsigned int flags; +}; + struct remote_network_create_args { remote_nonnull_network net; }; @@ -2988,7 +2996,8 @@ enum remote_procedure { REMOTE_PROC_CONNECT_LIST_ALL_NWFILTERS = 286, /* skipgen skipgen priority:high */ 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_NODE_GET_MEMORY_PARAMETERS = 289, /* skipgen skipgen */ + REMOTE_PROC_NETWORK_UPDATE = 290 /* autogen autogen priority:high */ /* * Notice how the entries are grouped in sets of 10 ? diff --git a/src/remote_protocol-structs b/src/remote_protocol-structs index 52ccf80..a84ed86 100644 --- a/src/remote_protocol-structs +++ b/src/remote_protocol-structs @@ -969,6 +969,13 @@ 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 section; + int index; + remote_nonnull_string xml; + u_int flags; +}; struct remote_network_create_args { remote_nonnull_network net; }; @@ -2397,4 +2404,5 @@ enum remote_procedure { REMOTE_PROC_CONNECT_LIST_ALL_SECRETS = 287, REMOTE_PROC_NODE_SET_MEMORY_PARAMETERS = 288, REMOTE_PROC_NODE_GET_MEMORY_PARAMETERS = 289, + REMOTE_PROC_NETWORK_UPDATE = 290, }; -- 1.7.11.4 -- libvir-list mailing list libvir-list@xxxxxxxxxx https://www.redhat.com/mailman/listinfo/libvir-list