mirror of
https://gitlab.com/libvirt/libvirt.git
synced 2024-12-22 05:35:25 +00:00
migration/dirtyrate: Introduce virDomainDirtyRateStatus enum
Introduce virDomainDirtyRateStatus enum. Signed-off-by: Hao Wang <wanghao232@huawei.com> Reviewed-by: Michal Privoznik <mprivozn@redhat.com>
This commit is contained in:
parent
a2ae2dad06
commit
a0c7f61f37
@ -5128,6 +5128,24 @@ int virDomainGetMessages(virDomainPtr domain,
|
||||
char ***msgs,
|
||||
unsigned int flags);
|
||||
|
||||
/**
|
||||
* virDomainDirtyRateStatus:
|
||||
*
|
||||
* Details on the cause of a dirty rate calculation status.
|
||||
*/
|
||||
typedef enum {
|
||||
VIR_DOMAIN_DIRTYRATE_UNSTARTED = 0, /* the dirtyrate calculation has
|
||||
not been started */
|
||||
VIR_DOMAIN_DIRTYRATE_MEASURING = 1, /* the dirtyrate calculation is
|
||||
measuring */
|
||||
VIR_DOMAIN_DIRTYRATE_MEASURED = 2, /* the dirtyrate calculation is
|
||||
completed */
|
||||
|
||||
# ifdef VIR_ENUM_SENTINELS
|
||||
VIR_DOMAIN_DIRTYRATE_LAST
|
||||
# endif
|
||||
} virDomainDirtyRateStatus;
|
||||
|
||||
int virDomainStartDirtyRateCalc(virDomainPtr domain,
|
||||
int seconds,
|
||||
unsigned int flags);
|
||||
|
Loading…
Reference in New Issue
Block a user