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>
[ijc: s/Device_build_state/Domain_build_state/g]
}
end
-type build_state =
-{
- store_port : int;
- store_mfn : int64;
- console_port : int;
- console_mfn : int64;
-}
+module Domain_build_state = struct
+ type t =
+ {
+ store_port : int;
+ store_mfn : int64;
+ console_port : int;
+ console_mfn : int64;
+ }
+end
type domid = int
consoletype : console_type;
}
- external add : t -> build_state -> domid -> unit = "stub_xl_device_console_add"
+ external add : t -> Domain_build_state.t -> domid -> unit = "stub_xl_device_console_add"
end
module Device_vkb = struct
}
end
-type build_state =
-{
- store_port : int;
- store_mfn : int64;
- console_port : int;
- console_mfn : int64;
-}
+module Domain_build_state : sig
+ type t =
+ {
+ store_port : int;
+ store_mfn : int64;
+ console_port : int;
+ console_mfn : int64;
+ }
+end
type domid = int
consoletype : console_type;
}
- external add : t -> build_state -> domid -> unit = "stub_xl_device_console_add"
+ external add : t -> Domain_build_state.t -> domid -> unit = "stub_xl_device_console_add"
end
module Device_vkb : sig