[libvirt] [PATCH v2] [glib 2/5] gconfig: DomainDevice now instantiable

Zeeshan Ali zeenix at gmail.com
Thu Nov 3 09:06:19 UTC 2016


We'll need to instatiate DomainDevice baseclass itself for unknown (think
new devices added to libvirt XML) devices in a following patch. This
change makes that possible.

This doesn't break any API or ABI to the best of my knowledge and this
assumption was confirmed by Emmanuele Bassi and Tim-Philipp Muller.
---
 libvirt-gconfig/libvirt-gconfig-domain-device.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/libvirt-gconfig/libvirt-gconfig-domain-device.c b/libvirt-gconfig/libvirt-gconfig-domain-device.c
index 8a75cea..f78173a 100644
--- a/libvirt-gconfig/libvirt-gconfig-domain-device.c
+++ b/libvirt-gconfig/libvirt-gconfig-domain-device.c
@@ -33,7 +33,7 @@ struct _GVirConfigDomainDevicePrivate
     gboolean unused;
 };
 
-G_DEFINE_ABSTRACT_TYPE(GVirConfigDomainDevice, gvir_config_domain_device, GVIR_CONFIG_TYPE_OBJECT);
+G_DEFINE_TYPE(GVirConfigDomainDevice, gvir_config_domain_device, GVIR_CONFIG_TYPE_OBJECT);
 
 
 static void gvir_config_domain_device_class_init(GVirConfigDomainDeviceClass *klass)
-- 
2.9.3




More information about the libvir-list mailing list