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

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

 



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