[libvirt] [libvirt-java] [PATCH 40/65] Add constants for enum virDomainEventID

Eric Blake eblake at redhat.com
Mon Mar 3 20:06:50 UTC 2014


On 02/13/2014 08:22 AM, Claudio Bley wrote:
> Note: these are only used internally.
> 
> Signed-off-by: Claudio Bley <cbley at av-test.de>
> ---

> +        static final int CONTROL_ERROR = 7;
> +        static final int BLOCK_JOB = 8;
> +        static final int DISK_CHANGE = 9;
> +        static final int TRAY_CHANGE = 10;
> +        static final int PMWAKEUP = 11;
> +        static final int PMSUSPEND = 12;

Up to here, I can understand.

> +        static final int LAST = 13;

But you probably do NOT want this value, as we explicitly document that
our _LAST C enums are not constant (we reserve the right to add more
events), but merely aids for compilation to ensure that all cases are
covered compared to the current state of the libvirt.h header.

-- 
Eric Blake   eblake redhat com    +1-919-301-3266
Libvirt virtualization library http://libvirt.org

-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 604 bytes
Desc: OpenPGP digital signature
URL: <http://listman.redhat.com/archives/libvir-list/attachments/20140303/7d6caea9/attachment-0001.sig>


More information about the libvir-list mailing list