---
libvirt-gconfig/libvirt-gconfig-domain-redirdev.c | 10 ++++++++++
libvirt-gconfig/libvirt-gconfig-domain-redirdev.h | 2 ++
libvirt-gconfig/libvirt-gconfig.sym | 1 +
3 files changed, 13 insertions(+)
diff --git a/libvirt-gconfig/libvirt-gconfig-domain-redirdev.c
b/libvirt-gconfig/libvirt-gconfig-domain-redirdev.c
index 30c370a..efecb5a 100644
--- a/libvirt-gconfig/libvirt-gconfig-domain-redirdev.c
+++ b/libvirt-gconfig/libvirt-gconfig-domain-redirdev.c
@@ -80,3 +80,13 @@ void gvir_config_domain_redirdev_set_bus(GVirConfigDomainRedirdev
*redirdev,
bus,
NULL);
}
+
+void gvir_config_domain_redirdev_set_address(GVirConfigDomainRedirdev *redirdev,
+ GVirConfigDomainAddress *address)
+{
+ g_return_if_fail(GVIR_CONFIG_IS_DOMAIN_REDIRDEV(redirdev));
+ g_return_if_fail(GVIR_CONFIG_IS_DOMAIN_ADDRESS(address));
+
+ gvir_config_object_attach_replace(GVIR_CONFIG_OBJECT(redirdev),
+ GVIR_CONFIG_OBJECT(address));
+}
diff --git a/libvirt-gconfig/libvirt-gconfig-domain-redirdev.h
b/libvirt-gconfig/libvirt-gconfig-domain-redirdev.h
index 99585bb..c5c43ed 100644
--- a/libvirt-gconfig/libvirt-gconfig-domain-redirdev.h
+++ b/libvirt-gconfig/libvirt-gconfig-domain-redirdev.h
@@ -67,6 +67,8 @@ GVirConfigDomainRedirdev *gvir_config_domain_redirdev_new_from_xml(const
gchar *
GError **error);
void gvir_config_domain_redirdev_set_bus(GVirConfigDomainRedirdev *redirdev,
GVirConfigDomainRedirdevBus bus);
+void gvir_config_domain_redirdev_set_address(GVirConfigDomainRedirdev *redirdev,
+ GVirConfigDomainAddress *address);
G_END_DECLS
diff --git a/libvirt-gconfig/libvirt-gconfig.sym b/libvirt-gconfig/libvirt-gconfig.sym
index b2d4480..6857320 100644
--- a/libvirt-gconfig/libvirt-gconfig.sym
+++ b/libvirt-gconfig/libvirt-gconfig.sym
@@ -230,6 +230,7 @@ LIBVIRT_GCONFIG_0.0.4 {
gvir_config_domain_redirdev_bus_get_type;
gvir_config_domain_redirdev_new;
gvir_config_domain_redirdev_new_from_xml;
+ gvir_config_domain_redirdev_set_address;
gvir_config_domain_redirdev_set_bus;
gvir_config_domain_seclabel_get_type;
--
1.7.10