]> xenbits.xensource.com Git - xen.git/commitdiff
tools: ocaml: rename the create_info types and functions
authorDavid Scott <dave.scott@eu.citrix.com>
Wed, 30 Mar 2011 17:54:28 +0000 (18:54 +0100)
committerDavid Scott <dave.scott@eu.citrix.com>
Wed, 30 Mar 2011 17:54:28 +0000 (18:54 +0100)
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@eu.citrix.com>
Signed-off-by: Ian Campbell <ian.campbell@citrix.com>
Acked-by: Ian Jackson <ian.jackson.citrix.com>
Committed-by: Ian Jackson <ian.jackson.citrix.com>
tools/ocaml/libs/xl/xl.ml
tools/ocaml/libs/xl/xl.mli

index 52cb046e870793b244fbdae7099043dfaa61b446..957e0a8b7260897c47a3328b3b265062c2959b25 100644 (file)
 
 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 =
 {
index c096ee952b2bac90ff0c723e3550212452e5eb4a..905f149e02caccad2aa33e3d9ab58b93d487b77e 100644 (file)
 
 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 =
 {