From mboxrd@z Thu Jan 1 00:00:00 1970 From: Ian Campbell Subject: [PATCH 04 of 26] libxl: add specific type for cpumap Date: Mon, 16 Aug 2010 15:33:28 +0100 Message-ID: <2ae6c13c2724ee5841d6.1281969208@localhost.localdomain> References: Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Return-path: In-Reply-To: List-Unsubscribe: , List-Post: List-Help: List-Subscribe: , Sender: xen-devel-bounces@lists.xensource.com Errors-To: xen-devel-bounces@lists.xensource.com To: xen-devel@lists.xensource.com Cc: Ian Campbell List-Id: xen-devel@lists.xenproject.org # HG changeset patch # User Ian Campbell # Date 1281969064 -3600 # Node ID 2ae6c13c2724ee5841d6f851f0bb100a7fef400c # Parent cafbb3f960bab892721b90f6a0d6f24e85f8f494 libxl: add specific type for cpumap. Signed-off-by: Ian Campbell diff -r cafbb3f960ba -r 2ae6c13c2724 tools/libxl/libxl.h --- a/tools/libxl/libxl.h Mon Aug 16 15:31:04 2010 +0100 +++ b/tools/libxl/libxl.h Mon Aug 16 15:31:04 2010 +0100 @@ -144,6 +144,8 @@ typedef char **libxl_string_list; typedef char **libxl_string_list; typedef char **libxl_key_value_list; + +typedef uint64_t *libxl_cpumap; typedef enum { XENFV = 1, @@ -695,7 +697,7 @@ typedef struct { uint8_t blocked:1; /* blocked waiting for an event? */ uint8_t running:1; /* currently scheduled on its CPU? */ uint64_t vcpu_time; /* total vcpu time ran (ns) */ - uint64_t *cpumap; /* current cpu's affinities */ + libxl_cpumap cpumap; /* current cpu's affinities */ } libxl_vcpuinfo; typedef struct {