|
|
|
|
|
|
|
|
|
|
xen-devel
[Xen-devel] [PATCH 19 of 32] tools: ocaml: rename the create_info types
# HG changeset patch
# User David Scott <dave.scott@xxxxxxxxxxxxx>
# Date 1301507668 -3600
# Node ID b11a5837b9a0df49095301288776b018219c2fc6
# Parent 4f34773dc6a0a3c098b7e8abd75ddffbf16ce7e4
tools: ocaml: rename the create_info types and functions
The aims are:
1. make the records instantiable if they have field names in common; and
2. to make it easier to derive the names programatically from the IDL
Signed-off-by: David Scott <dave.scott@xxxxxxxxxxxxx>
Signed-off-by: Ian Campbell <ian.campbell@xxxxxxxxxx>
diff -r 4f34773dc6a0 -r b11a5837b9a0 tools/ocaml/libs/xl/xl.ml
--- a/tools/ocaml/libs/xl/xl.ml Wed Mar 30 18:54:28 2011 +0100
+++ b/tools/ocaml/libs/xl/xl.ml Wed Mar 30 18:54:28 2011 +0100
@@ -15,19 +15,21 @@
exception Error of string
-type create_info =
-{
- hvm : bool;
- hap : bool;
- oos : bool;
- ssidref : int32;
- name : string;
- uuid : int array;
- xsdata : (string * string) list;
- platformdata : (string * string) list;
- poolid : int32;
- poolname : string;
-}
+module Domain_create_info = struct
+ type t =
+ {
+ hvm : bool;
+ hap : bool;
+ oos : bool;
+ ssidref : int32;
+ name : string;
+ uuid : int array;
+ xsdata : (string * string) list;
+ platformdata : (string * string) list;
+ poolid : int32;
+ poolname : string;
+ }
+end
type build_pv_info =
{
diff -r 4f34773dc6a0 -r b11a5837b9a0 tools/ocaml/libs/xl/xl.mli
--- a/tools/ocaml/libs/xl/xl.mli Wed Mar 30 18:54:28 2011 +0100
+++ b/tools/ocaml/libs/xl/xl.mli Wed Mar 30 18:54:28 2011 +0100
@@ -15,19 +15,21 @@
exception Error of string
-type create_info =
-{
- hvm : bool;
- hap : bool;
- oos : bool;
- ssidref : int32;
- name : string;
- uuid : int array;
- xsdata : (string * string) list;
- platformdata : (string * string) list;
- poolid : int32;
- poolname : string;
-}
+module Domain_create_info : sig
+ type t =
+ {
+ hvm : bool;
+ hap : bool;
+ oos : bool;
+ ssidref : int32;
+ name : string;
+ uuid : int array;
+ xsdata : (string * string) list;
+ platformdata : (string * string) list;
+ poolid : int32;
+ poolname : string;
+ }
+end
type build_pv_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 00 of 32] tools: libxl IDL, SeaBIOS, ocaml binding autogeneration, misc, Ian Campbell
- [Xen-devel] [PATCH 03 of 32] tools: libxl: write selected BIOS to xenstore, Ian Campbell
- [Xen-devel] [PATCH 01 of 32] tools: libxl: hide selection of hvmloader by default, Ian Campbell
- [Xen-devel] [PATCH 06 of 32] tools: libxl: generalize libxl_qemu_machine_type into libxl_domain_type, Ian Campbell
- [Xen-devel] [PATCH 12 of 32] tools: libxl: do not specify protocol node for disk or net, Ian Campbell
- [Xen-devel] [PATCH 17 of 32] tools: ocaml: rename the pci types and functions, Ian Campbell
- [Xen-devel] [PATCH 14 of 32] tools: ocaml: rename the disk_info types and functions, Ian Campbell
- [Xen-devel] [PATCH 10 of 32] tools: libxl: remove BitField type class from IDL, Ian Campbell
- [Xen-devel] [PATCH 19 of 32] tools: ocaml: rename the create_info types and functions,
Ian Campbell <=
- [Xen-devel] [PATCH 21 of 32] tools: ocaml: rename the domain_build_state types and functions, Ian Campbell
- [Xen-devel] [PATCH 11 of 32] tools: libxl: add concept of in- and out-put only data types to IDL, Ian Campbell
- [Xen-devel] [PATCH 08 of 32] tools: libxl: add an Enumeration type to the IDL, Ian Campbell
- [Xen-devel] [PATCH 15 of 32] tools: ocaml: rename the console types and functions, Ian Campbell
- [Xen-devel] [PATCH 23 of 32] tools: ocaml: rename the sched_credit types and functions, Ian Campbell
- [Xen-devel] [PATCH 04 of 32] tools: support SeaBIOS. Use by default when upstream qemu is configured, Ian Campbell
- [Xen-devel] [PATCH 13 of 32] tools: ocaml: rename the device_nic types and functions, Ian Campbell
- [Xen-devel] [PATCH 05 of 32] tools: libxl: move all enum values into the libxl namespace, Ian Campbell
- [Xen-devel] [PATCH 09 of 32] tools: libxl: add libxl_domid to IDL, Ian Campbell
|
|
|
|
|