aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDaniel P. Berrange <berrange@redhat.com>2011-11-29 13:58:32 +0000
committerDaniel P. Berrange <berrange@redhat.com>2011-11-30 10:12:29 +0000
commit866b0a706935ec2f1829baae4fe1b0fc0a50c2ea (patch)
treedf170601f09eeacb426947b1b1e90df58902b9e1 /include
parentutil: avoid null deref on qcowXGetBackingStore (diff)
downloadlibvirt-866b0a706935ec2f1829baae4fe1b0fc0a50c2ea.tar.gz
libvirt-866b0a706935ec2f1829baae4fe1b0fc0a50c2ea.tar.bz2
libvirt-866b0a706935ec2f1829baae4fe1b0fc0a50c2ea.zip
Fix values of PM target type constants
The VIR_NODE_SUSPEND_TARGET constants are not flags, so they should just be assigned straightforward incrementing values. * include/libvirt/libvirt.h.in: Change VIR_NODE_SUSPEND_TARGET values * src/util/virnodesuspend.c: Fix suspend target checks
Diffstat (limited to 'include')
-rw-r--r--include/libvirt/libvirt.h.in9
1 files changed, 6 insertions, 3 deletions
diff --git a/include/libvirt/libvirt.h.in b/include/libvirt/libvirt.h.in
index 1b10dc790..d01d1bc5f 100644
--- a/include/libvirt/libvirt.h.in
+++ b/include/libvirt/libvirt.h.in
@@ -257,9 +257,12 @@ typedef enum {
* transitioned to.
*/
typedef enum {
- VIR_NODE_SUSPEND_TARGET_MEM = (1 << 0),
- VIR_NODE_SUSPEND_TARGET_DISK = (1 << 1),
- VIR_NODE_SUSPEND_TARGET_HYBRID = (1 << 2),
+ VIR_NODE_SUSPEND_TARGET_MEM = 0,
+ VIR_NODE_SUSPEND_TARGET_DISK = 1,
+ VIR_NODE_SUSPEND_TARGET_HYBRID = 2,
+
+ /* This constant is subject to change */
+ VIR_NODE_SUSPEND_TARGET_LAST,
} virNodeSuspendTarget;
/**