From: Fabiano FidĂȘncio <fidencio(a)redhat.com>
This patch adapts GVirConfigDomainGraphicsSdl to the new
GVirConfigDomainGraphicsLocal, inheriting from it and using its helper
functions for getting the display and fullscreen properties.
As GVirConfigDomainGraphicsSdl now inherits from
GVirConfigDomainGraphicsLocal, this patch also introduces an ABI
breakage.
Signed-off-by: Fabiano FidĂȘncio <fidencio(a)redhat.com>
---
libvirt-gconfig/libvirt-gconfig-domain-graphics-sdl.c | 2 +-
libvirt-gconfig/libvirt-gconfig-domain-graphics-sdl.h | 4 ++--
2 files changed, 3 insertions(+), 3 deletions(-)
diff --git a/libvirt-gconfig/libvirt-gconfig-domain-graphics-sdl.c
b/libvirt-gconfig/libvirt-gconfig-domain-graphics-sdl.c
index 1740494..d0d296d 100644
--- a/libvirt-gconfig/libvirt-gconfig-domain-graphics-sdl.c
+++ b/libvirt-gconfig/libvirt-gconfig-domain-graphics-sdl.c
@@ -33,7 +33,7 @@ struct _GVirConfigDomainGraphicsSdlPrivate
gboolean unused;
};
-G_DEFINE_TYPE(GVirConfigDomainGraphicsSdl, gvir_config_domain_graphics_sdl,
GVIR_CONFIG_TYPE_DOMAIN_GRAPHICS);
+G_DEFINE_TYPE(GVirConfigDomainGraphicsSdl, gvir_config_domain_graphics_sdl,
GVIR_CONFIG_TYPE_DOMAIN_GRAPHICS_LOCAL);
static void gvir_config_domain_graphics_sdl_class_init(GVirConfigDomainGraphicsSdlClass
*klass)
diff --git a/libvirt-gconfig/libvirt-gconfig-domain-graphics-sdl.h
b/libvirt-gconfig/libvirt-gconfig-domain-graphics-sdl.h
index 5110f1c..3130f52 100644
--- a/libvirt-gconfig/libvirt-gconfig-domain-graphics-sdl.h
+++ b/libvirt-gconfig/libvirt-gconfig-domain-graphics-sdl.h
@@ -42,7 +42,7 @@ typedef struct _GVirConfigDomainGraphicsSdlClass
GVirConfigDomainGraphicsSdlClas
struct _GVirConfigDomainGraphicsSdl
{
- GVirConfigDomainGraphics parent;
+ GVirConfigDomainGraphicsLocal parent;
GVirConfigDomainGraphicsSdlPrivate *priv;
@@ -51,7 +51,7 @@ struct _GVirConfigDomainGraphicsSdl
struct _GVirConfigDomainGraphicsSdlClass
{
- GVirConfigDomainGraphicsClass parent_class;
+ GVirConfigDomainGraphicsLocalClass parent_class;
gpointer padding[20];
};
--
2.7.4