[libvirt] [libvirt-glib 1/4] Add GVirConfigDomainDiskDriver
cfergeau at redhat.com
Fri Jan 17 14:01:32 UTC 2014
On Thu, Jan 16, 2014 at 07:44:56PM +0000, Zeeshan Ali (Khattak) wrote:
> > +
> > +void gvir_config_domain_disk_driver_set_name(GVirConfigDomainDiskDriver *driver,
> > + const char *name)
> Since libvirt support only specific drivers and they are identified by
> name, I'd suggest this be an enum.
We generally use enums in libvirt-gconfig when libvirt stores the value as
an enum. In this case it's stored as a string in domain_conf.c, and it's
defined as a string in domaincommon.rng, so it's better to stick with a
const char * in libvirt-glib too.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Size: 181 bytes
Desc: not available
More information about the libvir-list