[gnome-boxes] vm-configurator: Add setup_custom_xml()



commit b5e3dbadc1b8c411bbd255e272312ececbffa636
Author: Zeeshan Ali (Khattak) <zeeshanak gnome org>
Date:   Sat Nov 16 19:04:29 2013 +0000

    vm-configurator: Add setup_custom_xml()
    
    Add a public method to setup custom XML on new domains. We'll use this
    for domains imported from system libvirt, where most of the config is
    mostly copied from an existing domain. Therefore create_domain_config()
    is not used and that means update_custom_xml is never called either.
    
    https://bugzilla.gnome.org/show_bug.cgi?id=666185

 src/vm-configurator.vala |    6 +++++-
 1 files changed, 5 insertions(+), 1 deletions(-)
---
diff --git a/src/vm-configurator.vala b/src/vm-configurator.vala
index 491a2ec..84a71e4 100644
--- a/src/vm-configurator.vala
+++ b/src/vm-configurator.vala
@@ -29,7 +29,7 @@ private class Boxes.VMConfigurator {
                                         throws VMConfiguratorError {
         var domain = new Domain ();
 
-        update_custom_xml (domain, install_media);
+        setup_custom_xml (domain, install_media);
 
         var best_caps = get_best_guest_caps (caps, install_media);
         domain.memory = install_media.resources.ram / KIBIBYTES;
@@ -188,6 +188,10 @@ private class Boxes.VMConfigurator {
         update_custom_xml (domain, install_media, num_reboots);
     }
 
+    public static void setup_custom_xml (Domain domain, InstallerMedia install_media) {
+        update_custom_xml (domain, install_media);
+    }
+
     private static void mark_as_installed (Domain domain, InstallerMedia? install_media) {
         update_custom_xml (domain, install_media, 0, true);
     }


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]