[PATCH] libvirt-domain.h: changing some unsigned int parameters to the respective enum type.

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Recently, some code were cleaned ups. Now, some parameters are being
converted to its respective enum type. For example, there are many functions
that are using int or unsigned int types instead enum types. So, this kind of
cleaning up can be necessary.

Signed-off-by: Julio Faracco <jcfaracco@xxxxxxxxx>
---
 include/libvirt/libvirt-domain.h | 6 +++---
 1 file changed, 3 insertions(+), 3 deletions(-)

diff --git a/include/libvirt/libvirt-domain.h b/include/libvirt/libvirt-domain.h
index 9487b80..8016e2a 100644
--- a/include/libvirt/libvirt-domain.h
+++ b/include/libvirt/libvirt-domain.h
@@ -854,7 +854,7 @@ typedef enum {
 
 int                     virDomainShutdown       (virDomainPtr domain);
 int                     virDomainShutdownFlags  (virDomainPtr domain,
-                                                 unsigned int flags);
+                                                 virDomainShutdownFlagValues flags);
 
 typedef enum {
     VIR_DOMAIN_REBOOT_DEFAULT        = 0,        /* hypervisor choice */
@@ -866,7 +866,7 @@ typedef enum {
 } virDomainRebootFlagValues;
 
 int                     virDomainReboot         (virDomainPtr domain,
-                                                 unsigned int flags);
+                                                 virDomainRebootFlagValues flags);
 int                     virDomainReset          (virDomainPtr domain,
                                                  unsigned int flags);
 
@@ -884,7 +884,7 @@ typedef enum {
 } virDomainDestroyFlagsValues;
 
 int                     virDomainDestroyFlags   (virDomainPtr domain,
-                                                 unsigned int flags);
+                                                 virDomainDestroyFlagsValues flags);
 int                     virDomainRef            (virDomainPtr domain);
 int                     virDomainFree           (virDomainPtr domain);
 
-- 
1.9.1

--
libvir-list mailing list
libvir-list@xxxxxxxxxx
https://www.redhat.com/mailman/listinfo/libvir-list




[Index of Archives]     [Virt Tools]     [Libvirt Users]     [Lib OS Info]     [Fedora Users]     [Fedora Desktop]     [Fedora SELinux]     [Big List of Linux Books]     [Yosemite News]     [KDE Users]     [Fedora Tools]