|  |  | 
  
    |  |  | 
 
  |   |  | 
  
    |  |  | 
  
    |  |  | 
  
    |   xen-devel
[Xen-devel] [PATCH 2 of 9] libxl: define specific types for string	list  
| # HG changeset patch
# User Ian Campbell <ian.campbell@xxxxxxxxxx>
# Date 1281706573 -3600
# Node ID bee7f853a66535787786e99f5eba951717cea0ac
# Parent  d033ff85952a36f7c5022832dd8a6381802b87b8
libxl: define specific types for string list and key,value list
Signed-off-by: Ian Campbell <ian.campbell@xxxxxxxxxx>
diff -r d033ff85952a -r bee7f853a665 tools/libxl/libxl.h
--- a/tools/libxl/libxl.h       Fri Aug 13 14:36:13 2010 +0100
+++ b/tools/libxl/libxl.h       Fri Aug 13 14:36:13 2010 +0100
@@ -25,6 +25,10 @@ typedef uint8_t libxl_uuid[16];
 typedef uint8_t libxl_uuid[16];
 
 typedef uint8_t libxl_mac[6];
+
+typedef char **libxl_string_list;
+
+typedef char **libxl_key_value_list;
 
 typedef struct {
     libxl_uuid uuid;
@@ -94,8 +98,8 @@ typedef struct {
     int ssidref;
     char *name;
     libxl_uuid uuid;
-    char **xsdata;
-    char **platformdata;
+    libxl_key_value_list xsdata;
+    libxl_key_value_list platformdata;
     uint32_t poolid;
     char *poolname;
 } libxl_domain_create_info;
@@ -198,7 +202,7 @@ typedef struct {
     int vcpus; /* max number of vcpus */
     int vcpu_avail; /* vcpus actually available */
     int xen_platform_pci; /* enable/disable the xen platform pci device */
-    char **extra; /* extra parameters pass directly to qemu, NULL terminated */
+    libxl_string_list extra; /* extra parameters pass directly to qemu, NULL 
terminated */
     /* Network is missing */
 } libxl_device_model_info;
 
_______________________________________________
Xen-devel mailing list
Xen-devel@xxxxxxxxxxxxxxxxxxx
http://lists.xensource.com/xen-devel
 | 
 
| <Prev in Thread] | Current Thread | [Next in Thread> |  | 
[Xen-devel] [PATCH 0 of 9] libxl: autogenerate type definitions and	destructor functions, Ian Campbell
[Xen-devel] [PATCH 1 of 9] xl: use the regular implicit rules to	build the xl .o files, Ian Campbell
[Xen-devel] [PATCH 3 of 9] libxl: move various enum and #defines	above datastructure definitions, Ian Campbell
[Xen-devel] [PATCH 2 of 9] libxl: define specific types for string	list and key, value list,
Ian Campbell <=
[Xen-devel] [PATCH 4 of 9] libxl: ensure result of	libxl_poolid_to_name is always dynamically allocated, Ian Campbell
[Xen-devel] [PATCH 6 of 9] libxl: tweak formatting/whitespace of	_libxl_types.h, Ian Campbell
[Xen-devel] [PATCH 5 of 9] libxl: move type definitions into	_libxl_types.h, Ian Campbell
[Xen-devel] [PATCH 9 of 9] xl: free the libxl types contained in	struct domain_config, Ian Campbell
[Xen-devel] [PATCH 8 of 9] libxl: generate destructors for each	libxl defined type, Ian Campbell
[Xen-devel] [PATCH 7 of 9] libxl: autogenerate _libxl_types.h, Ian Campbell
 |  |  | 
  
    |  |  |