Signed-off-by: Fabiano FidĂȘncio <fidencio(a)redhat.com>
---
libvirt-gconfig/libvirt-gconfig-domain-graphics-rdp.c | 18 ++++++++++++++++++
libvirt-gconfig/libvirt-gconfig-domain-graphics-rdp.h | 4 ++++
libvirt-gconfig/libvirt-gconfig.sym | 2 ++
3 files changed, 24 insertions(+)
diff --git a/libvirt-gconfig/libvirt-gconfig-domain-graphics-rdp.c
b/libvirt-gconfig/libvirt-gconfig-domain-graphics-rdp.c
index 4f6096e..b4d1735 100644
--- a/libvirt-gconfig/libvirt-gconfig-domain-graphics-rdp.c
+++ b/libvirt-gconfig/libvirt-gconfig-domain-graphics-rdp.c
@@ -156,3 +156,21 @@ gboolean
gvir_config_domain_graphics_rdp_get_multi_user(GVirConfigDomainGraphics
"multiUser",
FALSE);
}
+
+const gchar *gvir_config_domain_graphics_rdp_get_host(GVirConfigDomainGraphicsRdp
*graphics)
+{
+ g_return_val_if_fail(GVIR_CONFIG_IS_DOMAIN_GRAPHICS_RDP(graphics), NULL);
+
+ return gvir_config_object_get_attribute(GVIR_CONFIG_OBJECT(graphics),
+ NULL, "listen");
+}
+
+void gvir_config_domain_graphics_rdp_set_host(GVirConfigDomainGraphicsRdp *graphics,
+ const gchar *host)
+{
+ g_return_if_fail(GVIR_CONFIG_IS_DOMAIN_GRAPHICS_RDP(graphics));
+
+ gvir_config_object_set_attribute_with_type(GVIR_CONFIG_OBJECT(graphics),
+ "listen", G_TYPE_STRING, host,
+ NULL);
+}
diff --git a/libvirt-gconfig/libvirt-gconfig-domain-graphics-rdp.h
b/libvirt-gconfig/libvirt-gconfig-domain-graphics-rdp.h
index 5cf93f0..e2bb782 100644
--- a/libvirt-gconfig/libvirt-gconfig-domain-graphics-rdp.h
+++ b/libvirt-gconfig/libvirt-gconfig-domain-graphics-rdp.h
@@ -77,6 +77,10 @@ gboolean
gvir_config_domain_graphics_rdp_get_replace_user(GVirConfigDomainGraphi
void gvir_config_domain_graphics_rdp_set_replace_user(GVirConfigDomainGraphicsRdp
*graphics,
gboolean replace_user);
+const gchar *gvir_config_domain_graphics_rdp_get_host(GVirConfigDomainGraphicsRdp
*graphics);
+void gvir_config_domain_graphics_rdp_set_host(GVirConfigDomainGraphicsRdp *graphics,
+ const gchar *host);
+
G_END_DECLS
#endif /* __LIBVIRT_GCONFIG_DOMAIN_GRAPHICS_RDP_H__ */
diff --git a/libvirt-gconfig/libvirt-gconfig.sym b/libvirt-gconfig/libvirt-gconfig.sym
index 44f0b09..ed47610 100644
--- a/libvirt-gconfig/libvirt-gconfig.sym
+++ b/libvirt-gconfig/libvirt-gconfig.sym
@@ -735,6 +735,8 @@ global:
LIBVIRT_GCONFIG_0.2.4 {
gvir_config_domain_graphics_rdp_get_autoport;
+ gvir_config_domain_graphics_rdp_get_host;
+ gvir_config_domain_graphics_rdp_set_host;
gvir_config_domain_graphics_sdl_get_display;
gvir_config_domain_graphics_sdl_get_fullscreen;
gvir_config_domain_graphics_spice_get_autoport;
--
2.5.0