tools: ocaml: rename the topology 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: Ian Campbell <ian.campbell@citrix.com>
Acked-by: Ian Jackson <ian.jackson.citrix.com>
Committed-by: Ian Jackson <ian.jackson.citrix.com>
Cc: David Scott <dave.scott@eu.citrix.com>
This commit is contained in:
Ian Campbell committed 2011-04-20 17:13:07 +01:00
1 parent a411b4e61a
commit 46e6fd499a
2 files changed
+18 -19

No files matched your search

+9 -9
View File
@@ -211,14 +211,15 @@ module Physinfo = struct
end
type topology =
{
core: int;
socket: int;
node: int;
}
type topologyinfo = topology option array
module Topologyinfo = struct
type t =
{
core: int;
socket: int;
node: int;
}
external get: unit -> t = "stub_xl_topologyinfo"
end
module Sched_credit = struct
type t =
@@ -236,7 +237,6 @@ type button =
external button_press : domid -> button -> unit = "stub_xl_button_press"
external topologyinfo: unit -> topologyinfo = "stub_xl_topologyinfo"
external send_trigger : domid -> string -> int -> unit = "stub_xl_send_trigger"
external send_sysrq : domid -> char -> unit = "stub_xl_send_sysrq"
+9 -10
View File
@@ -211,14 +211,15 @@ module Physinfo : sig
end
type topology =
{
core: int;
socket: int;
node: int;
}
type topologyinfo = topology option array
module Topologyinfo : sig
type t =
{
core: int;
socket: int;
node: int;
}
external get : unit -> t = "stub_xl_topologyinfo"
end
module Sched_credit : sig
type t =
@@ -237,8 +238,6 @@ type button =
external button_press : domid -> button -> unit = "stub_xl_button_press"
external topologyinfo: unit -> topologyinfo = "stub_xl_topologyinfo"
external send_trigger : domid -> string -> int -> unit = "stub_xl_send_trigger"
external send_sysrq : domid -> char -> unit = "stub_xl_send_sysrq"
external send_debug_keys : domid -> string -> unit = "stub_xl_send_debug_keys"
Reference in new issue
Block a user
Blocking a user prevents them from interacting with repositories, such as opening or commenting on pull requests or issues. Learn more about blocking a user.