Signed-off-by: Fabiano FidĂȘncio <fidencio(a)redhat.com>
---
libvirt-gconfig/libvirt-gconfig-domain-graphics-sdl.c | 10 ++++++++++
libvirt-gconfig/libvirt-gconfig-domain-graphics-sdl.h | 1 +
libvirt-gconfig/libvirt-gconfig.sym | 1 +
3 files changed, 12 insertions(+)
diff --git a/libvirt-gconfig/libvirt-gconfig-domain-graphics-sdl.c
b/libvirt-gconfig/libvirt-gconfig-domain-graphics-sdl.c
index d9e191e..63d9bb3 100644
--- a/libvirt-gconfig/libvirt-gconfig-domain-graphics-sdl.c
+++ b/libvirt-gconfig/libvirt-gconfig-domain-graphics-sdl.c
@@ -113,3 +113,13 @@ void
gvir_config_domain_graphics_sdl_set_fullscreen(GVirConfigDomainGraphicsSdl
fullscreen,
NULL);
}
+
+gboolean gvir_config_domain_graphics_sdl_get_fullscreen(GVirConfigDomainGraphicsSdl
*graphics)
+{
+ g_return_val_if_fail(GVIR_CONFIG_IS_DOMAIN_GRAPHICS_SDL(graphics), FALSE);
+
+ return gvir_config_object_get_attribute_boolean(GVIR_CONFIG_OBJECT(graphics),
+ NULL,
+ "fullscreen",
+ FALSE);
+}
diff --git a/libvirt-gconfig/libvirt-gconfig-domain-graphics-sdl.h
b/libvirt-gconfig/libvirt-gconfig-domain-graphics-sdl.h
index 1b45649..f1b9842 100644
--- a/libvirt-gconfig/libvirt-gconfig-domain-graphics-sdl.h
+++ b/libvirt-gconfig/libvirt-gconfig-domain-graphics-sdl.h
@@ -66,6 +66,7 @@ void
gvir_config_domain_graphics_sdl_set_xauthority(GVirConfigDomainGraphicsSdl
const gchar *gvir_config_domain_graphics_sdl_get_display(GVirConfigDomainGraphicsSdl
*graphics);
void gvir_config_domain_graphics_sdl_set_display(GVirConfigDomainGraphicsSdl *graphics,
const gchar *disp);
+gboolean gvir_config_domain_graphics_sdl_get_fullscreen(GVirConfigDomainGraphicsSdl
*graphics);
void gvir_config_domain_graphics_sdl_set_fullscreen(GVirConfigDomainGraphicsSdl
*graphics,
gboolean fullscreen);
diff --git a/libvirt-gconfig/libvirt-gconfig.sym b/libvirt-gconfig/libvirt-gconfig.sym
index a1dfe3d..3beb1ed 100644
--- a/libvirt-gconfig/libvirt-gconfig.sym
+++ b/libvirt-gconfig/libvirt-gconfig.sym
@@ -736,6 +736,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_sdl_get_fullscreen;
gvir_config_domain_graphics_spice_get_autoport;
gvir_config_domain_graphics_spice_set_gl;
gvir_config_domain_graphics_vnc_get_autoport;
--
2.5.0