On 02/13/2014 08:22 AM, Claudio Bley wrote:
> Note: these are only used internally.
> 
> Signed-off-by: Claudio Bley <[email protected]>
> ---

> +        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

Attachment: signature.asc
Description: OpenPGP digital signature

--
libvir-list mailing list
[email protected]
https://www.redhat.com/mailman/listinfo/libvir-list

Reply via email to