* src/remote/remote_driver.c (remote_driver): Add new callbacks. * src/remote/remote_protocol.x (remote_procedure): New RPCs. (remote_domain_save_image_get_xml_desc_args) (remote_domain_save_image_get_xml_desc_ret) (remote_domain_save_image_define_xml_args): New structs. * src/remote_protocol-structs: Update. --- The remote generator is awesome! src/remote/remote_driver.c | 2 ++ src/remote/remote_protocol.x | 19 ++++++++++++++++++- src/remote_protocol-structs | 14 ++++++++++++++ 3 files changed, 34 insertions(+), 1 deletions(-) diff --git a/src/remote/remote_driver.c b/src/remote/remote_driver.c index 692decb..5b95c57 100644 --- a/src/remote/remote_driver.c +++ b/src/remote/remote_driver.c @@ -4168,6 +4168,8 @@ static virDriver remote_driver = { .domainSaveFlags = remoteDomainSaveFlags, /* 0.9.4 */ .domainRestore = remoteDomainRestore, /* 0.3.0 */ .domainRestoreFlags = remoteDomainRestoreFlags, /* 0.9.4 */ + .domainSaveImageGetXMLDesc = remoteDomainSaveImageGetXMLDesc, /* 0.9.4 */ + .domainSaveImageDefineXML = remoteDomainSaveImageDefineXML, /* 0.9.4 */ .domainCoreDump = remoteDomainCoreDump, /* 0.3.0 */ .domainScreenshot = remoteDomainScreenshot, /* 0.9.2 */ .domainSetVcpus = remoteDomainSetVcpus, /* 0.3.0 */ diff --git a/src/remote/remote_protocol.x b/src/remote/remote_protocol.x index 72d7e0a..1c9c13a 100644 --- a/src/remote/remote_protocol.x +++ b/src/remote/remote_protocol.x @@ -742,6 +742,21 @@ struct remote_domain_restore_flags_args { unsigned int flags; }; +struct remote_domain_save_image_get_xml_desc_args { + remote_nonnull_string file; + unsigned int flags; +}; + +struct remote_domain_save_image_get_xml_desc_ret { + remote_nonnull_string xml; +}; + +struct remote_domain_save_image_define_xml_args { + remote_nonnull_string file; + remote_nonnull_string dxml; + unsigned int flags; +}; + struct remote_domain_core_dump_args { remote_nonnull_domain dom; remote_nonnull_string to; @@ -2405,7 +2420,9 @@ enum remote_procedure { REMOTE_PROC_DOMAIN_UNDEFINE_FLAGS = 231, /* autogen autogen */ REMOTE_PROC_DOMAIN_SAVE_FLAGS = 232, /* autogen autogen */ - REMOTE_PROC_DOMAIN_RESTORE_FLAGS = 233 /* autogen autogen */ + REMOTE_PROC_DOMAIN_RESTORE_FLAGS = 233, /* autogen autogen */ + REMOTE_PROC_DOMAIN_SAVE_IMAGE_GET_XML_DESC = 234, /* autogen autogen */ + REMOTE_PROC_DOMAIN_SAVE_IMAGE_DEFINE_XML = 235 /* autogen autogen */ /* * Notice how the entries are grouped in sets of 10 ? diff --git a/src/remote_protocol-structs b/src/remote_protocol-structs index b17804f..337a338 100644 --- a/src/remote_protocol-structs +++ b/src/remote_protocol-structs @@ -443,6 +443,18 @@ struct remote_domain_restore_flags_args { remote_string dxml; u_int flags; }; +struct remote_domain_save_image_get_xml_desc_args { + remote_nonnull_string file; + u_int flags; +}; +struct remote_domain_save_image_get_xml_desc_ret { + remote_nonnull_string xml; +}; +struct remote_domain_save_image_define_xml_args { + remote_nonnull_string file; + remote_nonnull_string dxml; + u_int flags; +}; struct remote_domain_core_dump_args { remote_nonnull_domain dom; remote_nonnull_string to; @@ -1877,4 +1889,6 @@ enum remote_procedure { REMOTE_PROC_DOMAIN_UNDEFINE_FLAGS = 231, REMOTE_PROC_DOMAIN_SAVE_FLAGS = 232, REMOTE_PROC_DOMAIN_RESTORE_FLAGS = 233, + REMOTE_PROC_DOMAIN_SAVE_IMAGE_GET_XML_DESC = 234, + REMOTE_PROC_DOMAIN_SAVE_IMAGE_DEFINE_XML = 235, }; -- 1.7.4.4 -- libvir-list mailing list libvir-list@xxxxxxxxxx https://www.redhat.com/mailman/listinfo/libvir-list