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

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



On 11/29/2011 08:44 AM, Daniel P. Berrange wrote:
> From: "Daniel P. Berrange" <berrange redhat com>
> 
> 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 redhat com    +1-919-301-3266
Libvirt virtualization library http://libvirt.org

Attachment: signature.asc
Description: OpenPGP digital signature


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