diff options
author | Jiri Denemark <jdenemar@redhat.com> | 2012-09-06 17:00:43 +0200 |
---|---|---|
committer | Jiri Denemark <jdenemar@redhat.com> | 2012-09-07 09:38:22 +0200 |
commit | fc4115e8d693635d5569e01b432a9cde03341f0c (patch) | |
tree | 422dbc7151c9b87b3f3b0083be675fac4d6f82b7 /include | |
parent | Fix PMSuspend and PMWakeup events (diff) | |
download | libvirt-fc4115e8d693635d5569e01b432a9cde03341f0c.tar.gz libvirt-fc4115e8d693635d5569e01b432a9cde03341f0c.tar.bz2 libvirt-fc4115e8d693635d5569e01b432a9cde03341f0c.zip |
Add PMSUSPENDED life cycle event
While PMSUSPENDED state was added a long time ago, we didn't have
corresponding life cycle event.
Diffstat (limited to 'include')
-rw-r--r-- | include/libvirt/libvirt.h.in | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/include/libvirt/libvirt.h.in b/include/libvirt/libvirt.h.in index 0c522716a..deb35ecb7 100644 --- a/include/libvirt/libvirt.h.in +++ b/include/libvirt/libvirt.h.in @@ -2845,6 +2845,7 @@ typedef enum { VIR_DOMAIN_EVENT_RESUMED = 4, VIR_DOMAIN_EVENT_STOPPED = 5, VIR_DOMAIN_EVENT_SHUTDOWN = 6, + VIR_DOMAIN_EVENT_PMSUSPENDED = 7, #ifdef VIR_ENUM_SENTINELS VIR_DOMAIN_EVENT_LAST @@ -2962,6 +2963,19 @@ typedef enum { } virDomainEventShutdownDetailType; /** + * virDomainEventPMSuspendedDetailType: + * + * Details about the 'pmsuspended' lifecycle event + */ +typedef enum { + VIR_DOMAIN_EVENT_PMSUSPENDED_MEMORY = 0, /* Guest was PM suspended to memory */ + +#ifdef VIR_ENUM_SENTINELS + VIR_DOMAIN_EVENT_PMSUSPENDED_LAST +#endif +} virDomainEventPMSuspendedDetailType; + +/** * virConnectDomainEventCallback: * @conn: virConnect connection * @dom: The domain on which the event occurred |