[libvirt] [PATCH libvirt-glib] gobject: add GVir.DomainShutdownFlags binding

Christophe Fergeau cfergeau at redhat.com
Fri Aug 3 10:54:28 UTC 2012


On Fri, Aug 03, 2012 at 12:44:10PM +0200, Marc-André Lureau wrote:
> The counterpart GVirDomainStartFlags uses _NONE. Is this a "flawed" in
> libvirt API? Do we prefer to copy libvirt or do we want consitancy? I
> prefer constitancy.

I don't think this is a flaw, it's just that '0' has a different meaning
depending on the API. Sometimes 0 means 'no flag', ie no additional
behaviour, in this 'default' case, it means that the behaviour will be
equivalent to one of the flags, but we don't indicate which one, we let the
hypervisor choose the default one.
So having different names for the enum for the 0 value doesn't strike me as
inconsistent as they indicate slightly different things.

Christophe
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 198 bytes
Desc: not available
URL: <http://listman.redhat.com/archives/libvir-list/attachments/20120803/86e5408e/attachment-0001.sig>


More information about the libvir-list mailing list