Re: [PATCH 02/14] Remove internal only virHostPMCapability enum

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

 



On 11/29/2011 08:44 AM, Daniel P. Berrange wrote:
> From: "Daniel P. Berrange" <berrange@xxxxxxxxxx>
> 
> The internal virHostPMCapability enum just duplicates the
> public virNodeSuspendTarget enum, but with different names.
> 
> * src/util/util.c: Use VIR_NODE_SUSPEND_TARGET constants
> * src/util/util.h: Remove virHostPMCapability enum
> * src/conf/capabilities.c: Use VIR_NODE_SUSPEND_TARGET_LAST
> ---
>  src/conf/capabilities.c |    2 +-
>  src/util/util.c         |   18 +++++++++---------
>  src/util/util.h         |    8 --------
>  3 files changed, 10 insertions(+), 18 deletions(-)
> 

> +++ b/src/util/util.h
> @@ -263,14 +263,6 @@ void virTypedParameterArrayClear(virTypedParameterPtr params, int nparams);
>  
>  /* Power Management Capabilities of the host system */
>  
> -enum virHostPMCapability {
> -    VIR_HOST_PM_S3,              /* Suspend-to-RAM */
> -    VIR_HOST_PM_S4,              /* Suspend-to-Disk */
> -    VIR_HOST_PM_HYBRID_SUSPEND,  /* Hybrid-Suspend */
> -
> -    VIR_HOST_PM_LAST
> -};
> -
>  VIR_ENUM_DECL(virHostPMCapability)

Also drop the VIR_ENUM_DECL(virHostPMCapability).

ACK to the intent, but this is incomplete.

-- 
Eric Blake   eblake@xxxxxxxxxx    +1-919-301-3266
Libvirt virtualization library http://libvirt.org

Attachment: signature.asc
Description: OpenPGP digital signature

--
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]