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

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



Signed-off-by: Fabiano Fidêncio <fidencio redhat com>
---
 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


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