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

[libvirt] [libvirt-glib 09/13] Implement gvir_config_domain_controller_set_address



---
 .../libvirt-gconfig-domain-controller.c            |   10 ++++++++++
 .../libvirt-gconfig-domain-controller.h            |    2 ++
 libvirt-gconfig/libvirt-gconfig.sym                |    1 +
 3 files changed, 13 insertions(+)

diff --git a/libvirt-gconfig/libvirt-gconfig-domain-controller.c b/libvirt-gconfig/libvirt-gconfig-domain-controller.c
index d8d9ffb..813c934 100644
--- a/libvirt-gconfig/libvirt-gconfig-domain-controller.c
+++ b/libvirt-gconfig/libvirt-gconfig-domain-controller.c
@@ -77,3 +77,13 @@ guint gvir_config_domain_controller_get_index(GVirConfigDomainController *contro
 
     return index;
 }
+
+void gvir_config_domain_controller_set_address(GVirConfigDomainController *controller,
+                                               GVirConfigDomainAddress *address)
+{
+    g_return_if_fail(GVIR_CONFIG_IS_DOMAIN_CONTROLLER(controller));
+    g_return_if_fail(GVIR_CONFIG_IS_DOMAIN_ADDRESS(address));
+
+    gvir_config_object_attach_replace(GVIR_CONFIG_OBJECT(controller),
+                                      GVIR_CONFIG_OBJECT(address));
+}
diff --git a/libvirt-gconfig/libvirt-gconfig-domain-controller.h b/libvirt-gconfig/libvirt-gconfig-domain-controller.h
index 7cdabe2..ebd3387 100644
--- a/libvirt-gconfig/libvirt-gconfig-domain-controller.h
+++ b/libvirt-gconfig/libvirt-gconfig-domain-controller.h
@@ -61,6 +61,8 @@ GType gvir_config_domain_controller_get_type(void);
 void gvir_config_domain_controller_set_index(GVirConfigDomainController *controller,
                                              guint index);
 guint gvir_config_domain_controller_get_index(GVirConfigDomainController *controller);
+void gvir_config_domain_controller_set_address(GVirConfigDomainController *controller,
+                                               GVirConfigDomainAddress *address);
 
 G_END_DECLS
 
diff --git a/libvirt-gconfig/libvirt-gconfig.sym b/libvirt-gconfig/libvirt-gconfig.sym
index 39e8623..57eb04f 100644
--- a/libvirt-gconfig/libvirt-gconfig.sym
+++ b/libvirt-gconfig/libvirt-gconfig.sym
@@ -81,6 +81,7 @@ LIBVIRT_GCONFIG_0.0.4 {
 	gvir_config_domain_console_target_type_get_type;
 
 	gvir_config_domain_controller_get_type;
+	gvir_config_domain_controller_set_address;
 	gvir_config_domain_controller_get_index;
 	gvir_config_domain_controller_set_index;
 
-- 
1.7.9.3


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