提交 ed1384dc 编写于 作者: C Claudio Bley

Move comments after enum members

The api builder always associates comments to the last member it read,
not to the current member even if there was a comment for the previous
member and a comma was already seen.

This has the effect that the comment for the previous member gets
overwritten and the current member has no comment at all.
上级 245d8825
...@@ -127,12 +127,12 @@ typedef enum { ...@@ -127,12 +127,12 @@ typedef enum {
power management */ power management */
#ifdef VIR_ENUM_SENTINELS #ifdef VIR_ENUM_SENTINELS
VIR_DOMAIN_LAST
/* /*
* NB: this enum value will increase over time as new events are * NB: this enum value will increase over time as new events are
* added to the libvirt API. It reflects the last state supported * added to the libvirt API. It reflects the last state supported
* by this version of the libvirt API. * by this version of the libvirt API.
*/ */
VIR_DOMAIN_LAST
#endif #endif
} virDomainState; } virDomainState;
...@@ -351,8 +351,7 @@ typedef enum { ...@@ -351,8 +351,7 @@ typedef enum {
VIR_NODE_SUSPEND_TARGET_HYBRID = 2, VIR_NODE_SUSPEND_TARGET_HYBRID = 2,
#ifdef VIR_ENUM_SENTINELS #ifdef VIR_ENUM_SENTINELS
/* This constant is subject to change */ VIR_NODE_SUSPEND_TARGET_LAST /* This constant is subject to change */
VIR_NODE_SUSPEND_TARGET_LAST
#endif #endif
} virNodeSuspendTarget; } virNodeSuspendTarget;
...@@ -1186,8 +1185,7 @@ typedef enum { ...@@ -1186,8 +1185,7 @@ typedef enum {
VIR_CRED_EXTERNAL = 9, /* Externally managed credential */ VIR_CRED_EXTERNAL = 9, /* Externally managed credential */
#ifdef VIR_ENUM_SENTINELS #ifdef VIR_ENUM_SENTINELS
/* More may be added - expect the unexpected */ VIR_CRED_LAST /* More may be added - expect the unexpected */
VIR_CRED_LAST
#endif #endif
} virConnectCredentialType; } virConnectCredentialType;
...@@ -1662,8 +1660,7 @@ typedef enum { ...@@ -1662,8 +1660,7 @@ typedef enum {
VIR_DOMAIN_NUMATUNE_MEM_INTERLEAVE = 2, VIR_DOMAIN_NUMATUNE_MEM_INTERLEAVE = 2,
#ifdef VIR_ENUM_SENTINELS #ifdef VIR_ENUM_SENTINELS
/* This constant is subject to change */ VIR_DOMAIN_NUMATUNE_MEM_LAST /* This constant is subject to change */
VIR_DOMAIN_NUMATUNE_MEM_LAST
#endif #endif
} virDomainNumatuneMemMode; } virDomainNumatuneMemMode;
...@@ -2742,12 +2739,12 @@ typedef enum { ...@@ -2742,12 +2739,12 @@ typedef enum {
VIR_STORAGE_VOL_WIPE_ALG_RANDOM = 8, /* 1-pass random */ VIR_STORAGE_VOL_WIPE_ALG_RANDOM = 8, /* 1-pass random */
#ifdef VIR_ENUM_SENTINELS #ifdef VIR_ENUM_SENTINELS
VIR_STORAGE_VOL_WIPE_ALG_LAST
/* /*
* NB: this enum value will increase over time as new algorithms are * NB: this enum value will increase over time as new algorithms are
* added to the libvirt API. It reflects the last algorithm supported * added to the libvirt API. It reflects the last algorithm supported
* by this version of the libvirt API. * by this version of the libvirt API.
*/ */
VIR_STORAGE_VOL_WIPE_ALG_LAST
#endif #endif
} virStorageVolWipeAlgorithm; } virStorageVolWipeAlgorithm;
...@@ -2974,12 +2971,12 @@ typedef enum { ...@@ -2974,12 +2971,12 @@ typedef enum {
VIR_KEYCODE_SET_RFB = 9, VIR_KEYCODE_SET_RFB = 9,
#ifdef VIR_ENUM_SENTINELS #ifdef VIR_ENUM_SENTINELS
VIR_KEYCODE_SET_LAST
/* /*
* NB: this enum value will increase over time as new events are * NB: this enum value will increase over time as new events are
* added to the libvirt API. It reflects the last keycode set supported * added to the libvirt API. It reflects the last keycode set supported
* by this version of the libvirt API. * by this version of the libvirt API.
*/ */
VIR_KEYCODE_SET_LAST
#endif #endif
} virKeycodeSet; } virKeycodeSet;
...@@ -3533,12 +3530,12 @@ typedef enum { ...@@ -3533,12 +3530,12 @@ typedef enum {
VIR_SECRET_USAGE_TYPE_CEPH = 2, VIR_SECRET_USAGE_TYPE_CEPH = 2,
#ifdef VIR_ENUM_SENTINELS #ifdef VIR_ENUM_SENTINELS
VIR_SECRET_USAGE_TYPE_LAST
/* /*
* NB: this enum value will increase over time as new events are * NB: this enum value will increase over time as new events are
* added to the libvirt API. It reflects the last secret owner ID * added to the libvirt API. It reflects the last secret owner ID
* supported by this version of the libvirt API. * supported by this version of the libvirt API.
*/ */
VIR_SECRET_USAGE_TYPE_LAST
#endif #endif
} virSecretUsageType; } virSecretUsageType;
...@@ -4443,12 +4440,12 @@ typedef enum { ...@@ -4443,12 +4440,12 @@ typedef enum {
VIR_DOMAIN_EVENT_ID_PMSUSPEND_DISK = 14, /* virConnectDomainEventPMSuspendDiskCallback */ VIR_DOMAIN_EVENT_ID_PMSUSPEND_DISK = 14, /* virConnectDomainEventPMSuspendDiskCallback */
#ifdef VIR_ENUM_SENTINELS #ifdef VIR_ENUM_SENTINELS
VIR_DOMAIN_EVENT_ID_LAST
/* /*
* NB: this enum value will increase over time as new events are * NB: this enum value will increase over time as new events are
* added to the libvirt API. It reflects the last event ID supported * added to the libvirt API. It reflects the last event ID supported
* by this version of the libvirt API. * by this version of the libvirt API.
*/ */
VIR_DOMAIN_EVENT_ID_LAST
#endif #endif
} virDomainEventID; } virDomainEventID;
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册