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

Re: [libvirt] [PATCHv2 2/9] virNodeGetCPUMapFlags: Define driver API.



On 10/16/2012 08:05 AM, Viktor Mihajlovski wrote:
> Extend the driver structure by nodeGetCPUMapFlags entry in support of the
> new API virNodeGetCPUMapFlags.
> 
> Signed-off-by: Viktor Mihajlovski <mihajlov linux vnet ibm com>
> ---
>  src/driver.h |    7 +++++++
>  1 files changed, 7 insertions(+), 0 deletions(-)

This patch belongs squashed with 1/9.

> 
> diff --git a/src/driver.h b/src/driver.h
> index bdcaa01..1af9568 100644
> --- a/src/driver.h
> +++ b/src/driver.h
> @@ -898,6 +898,12 @@ typedef int
>                                       int nparams,
>                                       unsigned int flags);
>  
> +typedef int
> +    (*virDrvNodeGetCPUMapFlags)(virConnectPtr conn,

Once again, I'm dropping 'Flags'.  ACK with this squashed in:

diff --git i/src/driver.h w/src/driver.h
index 1af9568..7ba66ad 100644
--- i/src/driver.h
+++ w/src/driver.h
@@ -899,10 +899,10 @@ typedef int
                                      unsigned int flags);

 typedef int
-    (*virDrvNodeGetCPUMapFlags)(virConnectPtr conn,
-                                unsigned char **cpumap,
-                                unsigned int *online,
-                                unsigned int flags);
+    (*virDrvNodeGetCPUMap)(virConnectPtr conn,
+                           unsigned char **cpumap,
+                           unsigned int *online,
+                           unsigned int flags);

 /**
  * _virDriver:
@@ -1093,7 +1093,7 @@ struct _virDriver {
     virDrvDomainGetMetadata             domainGetMetadata;
     virDrvNodeGetMemoryParameters       nodeGetMemoryParameters;
     virDrvNodeSetMemoryParameters       nodeSetMemoryParameters;
-    virDrvNodeGetCPUMapFlags            nodeGetCPUMapFlags;
+    virDrvNodeGetCPUMap                 nodeGetCPUMap;
 };

 typedef int


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