[libvirt-glib/libvirt-gconfig 04/17] gconfig: Implement gvir_config_domain_graphics_sdl_get_display()

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

 



Signed-off-by: Fabiano Fidêncio <fidencio@xxxxxxxxxx>
---
 libvirt-gconfig/libvirt-gconfig-domain-graphics-sdl.c | 9 +++++++++
 libvirt-gconfig/libvirt-gconfig-domain-graphics-sdl.h | 1 +
 libvirt-gconfig/libvirt-gconfig.sym                   | 1 +
 3 files changed, 11 insertions(+)

diff --git a/libvirt-gconfig/libvirt-gconfig-domain-graphics-sdl.c b/libvirt-gconfig/libvirt-gconfig-domain-graphics-sdl.c
index 1740494..d9e191e 100644
--- a/libvirt-gconfig/libvirt-gconfig-domain-graphics-sdl.c
+++ b/libvirt-gconfig/libvirt-gconfig-domain-graphics-sdl.c
@@ -93,6 +93,15 @@ void gvir_config_domain_graphics_sdl_set_display(GVirConfigDomainGraphicsSdl *gr
                                      NULL);
 }
 
+const gchar *gvir_config_domain_graphics_sdl_get_display(GVirConfigDomainGraphicsSdl *graphics)
+{
+    g_return_val_if_fail(GVIR_CONFIG_IS_DOMAIN_GRAPHICS_SDL(graphics), NULL);
+
+    return gvir_config_object_get_attribute(GVIR_CONFIG_OBJECT(graphics),
+                                            NULL,
+                                            "display");
+}
+
 void gvir_config_domain_graphics_sdl_set_fullscreen(GVirConfigDomainGraphicsSdl *graphics,
                                                     gboolean fullscreen)
 {
diff --git a/libvirt-gconfig/libvirt-gconfig-domain-graphics-sdl.h b/libvirt-gconfig/libvirt-gconfig-domain-graphics-sdl.h
index 5110f1c..1b45649 100644
--- a/libvirt-gconfig/libvirt-gconfig-domain-graphics-sdl.h
+++ b/libvirt-gconfig/libvirt-gconfig-domain-graphics-sdl.h
@@ -63,6 +63,7 @@ GVirConfigDomainGraphicsSdl *gvir_config_domain_graphics_sdl_new_from_xml(const
                                                                           GError **error);
 void gvir_config_domain_graphics_sdl_set_xauthority(GVirConfigDomainGraphicsSdl *graphics,
                                                     const gchar *path);
+const gchar *gvir_config_domain_graphics_sdl_get_display(GVirConfigDomainGraphicsSdl *graphics);
 void gvir_config_domain_graphics_sdl_set_display(GVirConfigDomainGraphicsSdl *graphics,
                                                  const gchar *disp);
 void gvir_config_domain_graphics_sdl_set_fullscreen(GVirConfigDomainGraphicsSdl *graphics,
diff --git a/libvirt-gconfig/libvirt-gconfig.sym b/libvirt-gconfig/libvirt-gconfig.sym
index 100c174..a1dfe3d 100644
--- a/libvirt-gconfig/libvirt-gconfig.sym
+++ b/libvirt-gconfig/libvirt-gconfig.sym
@@ -735,6 +735,7 @@ global:
 
 LIBVIRT_GCONFIG_0.2.4 {
 	gvir_config_domain_graphics_rdp_get_autoport;
+	gvir_config_domain_graphics_sdl_get_display;
 	gvir_config_domain_graphics_spice_get_autoport;
 	gvir_config_domain_graphics_spice_set_gl;
 	gvir_config_domain_graphics_vnc_get_autoport;
-- 
2.5.0

--
libvir-list mailing list
libvir-list@xxxxxxxxxx
https://www.redhat.com/mailman/listinfo/libvir-list




[Index of Archives]     [Virt Tools]     [Libvirt Users]     [Lib OS Info]     [Fedora Users]     [Fedora Desktop]     [Fedora SELinux]     [Big List of Linux Books]     [Yosemite News]     [KDE Users]     [Fedora Tools]