debuggers.hg

changeset 22052:3f268693fb81

libxl: define specific types for string list and key,value list

Signed-off-by: Ian Campbell <ian.campbell@citrix.com>
Signed-off-by: Stefano Stabellini <stefano.stabellini@eu.citrix.com>
committer: Stefano Stabellini <stefano.stabellini@eu.citrix.com>
author Ian Campbell <ian.campbell@citrix.com>
date Mon Aug 16 15:31:04 2010 +0100 (2010-08-16)
parents dca524642651
children 39f50a3b7716
files tools/libxl/libxl.h
line diff
     1.1 --- a/tools/libxl/libxl.h	Mon Aug 16 15:31:04 2010 +0100
     1.2 +++ b/tools/libxl/libxl.h	Mon Aug 16 15:31:04 2010 +0100
     1.3 @@ -141,6 +141,10 @@ typedef uint8_t libxl_uuid[16];
     1.4  
     1.5  typedef uint8_t libxl_mac[6];
     1.6  
     1.7 +typedef char **libxl_string_list;
     1.8 +
     1.9 +typedef char **libxl_key_value_list;
    1.10 +
    1.11  typedef struct {
    1.12      libxl_uuid uuid;
    1.13      uint32_t domid;
    1.14 @@ -209,8 +213,8 @@ typedef struct {
    1.15      int ssidref;
    1.16      char *name;
    1.17      libxl_uuid uuid;
    1.18 -    char **xsdata;
    1.19 -    char **platformdata;
    1.20 +    libxl_key_value_list xsdata;
    1.21 +    libxl_key_value_list platformdata;
    1.22      uint32_t poolid;
    1.23      char *poolname;
    1.24  } libxl_domain_create_info;
    1.25 @@ -313,7 +317,7 @@ typedef struct {
    1.26      int vcpus; /* max number of vcpus */
    1.27      int vcpu_avail; /* vcpus actually available */
    1.28      int xen_platform_pci; /* enable/disable the xen platform pci device */
    1.29 -    char **extra; /* extra parameters pass directly to qemu, NULL terminated */
    1.30 +    libxl_string_list extra; /* extra parameters pass directly to qemu, NULL terminated */
    1.31      /* Network is missing */
    1.32  } libxl_device_model_info;
    1.33