[[RESEND] 6/8] migration/dirtyrate: Introduce virDomainDirtyRateFlags

Hao Wang posted 1 patch 1 week ago
Failed in applying to current master (apply log)
include/libvirt/libvirt-domain.h | 11 +++++++++++
1 file changed, 11 insertions(+)

[[RESEND] 6/8] migration/dirtyrate: Introduce virDomainDirtyRateFlags

Posted by Hao Wang 1 week ago
Introduce virDomainDirtyRateFlags for DomainGetDirtyRateInfo API.

Signed-off-by: Hao Wang <wanghao232@huawei.com>
Reviewed-by: Chuan Zheng <zhengchuan@huawei.com>
---
 include/libvirt/libvirt-domain.h | 11 +++++++++++
 1 file changed, 11 insertions(+)

diff --git a/include/libvirt/libvirt-domain.h b/include/libvirt/libvirt-domain.h
index c7c64b9317..68a760816a 100644
--- a/include/libvirt/libvirt-domain.h
+++ b/include/libvirt/libvirt-domain.h
@@ -5013,6 +5013,17 @@ int virDomainBackupBegin(virDomainPtr domain,
 char *virDomainBackupGetXMLDesc(virDomainPtr domain,
                                 unsigned int flags);
 
+/**
+ * virDomainDirtyRateFlags:
+ *
+ * Details on the flags used by getdirtyrate api.
+ */
+
+typedef enum {
+    VIR_DOMAIN_DIRTYRATE_CALC = 1 << 0,  /* calculate domain's dirtyrate */
+    VIR_DOMAIN_DIRTYRATE_QUERY = 1 << 1, /* query domain's dirtyrate */
+} virDomainDirtyRateFlags;
+
 /**
  * virDomainDirtyRateStatus:
  *
-- 
2.23.0