Skip to content

Commit

Permalink
Use ocaml-rpc v1.9.6
Browse files Browse the repository at this point in the history
Signed-off-by: Jon Ludlam <[email protected]>
  • Loading branch information
jonludlam committed Jan 27, 2017
1 parent e909177 commit f5e924d
Show file tree
Hide file tree
Showing 5 changed files with 4 additions and 12 deletions.
2 changes: 1 addition & 1 deletion lib/channel_helper.ml
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@ module Common = struct
let make verbose debug port =
{ verbose; debug; port }

let to_string x = Jsonrpc.to_string (rpc_of x)
let to_string x = Jsonrpc.to_string (rpc_of_t x)
end

let _common_options = "COMMON OPTIONS"
Expand Down
5 changes: 2 additions & 3 deletions lib/xcp_channel_protocol.mli
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,5 @@ type t =
| V4V_proxy of int * int (** domid, port *)
| Unix_sendmsg of int * string * string (** domid, path, token *)

val rpc_of: t -> Rpc.t
val of_rpc: Rpc.t -> t

val rpc_of_t: t -> Rpc.t
val t_of_rpc: Rpc.t -> t
3 changes: 0 additions & 3 deletions xen/device_number.ml
Original file line number Diff line number Diff line change
Expand Up @@ -9,9 +9,6 @@ type spec = bus_type * int * int [@@deriving rpc]

type t = spec [@@deriving rpc]

let t_of_rpc = of_rpc
let rpc_of_t = rpc_of

let to_debug_string = function
| (Xen, disk, partition) -> Printf.sprintf "Xen(%d, %d)" disk partition
| (Scsi, disk, partition) -> Printf.sprintf "Scsi(%d, %d)" disk partition
Expand Down
2 changes: 0 additions & 2 deletions xen/device_number.mli
Original file line number Diff line number Diff line change
Expand Up @@ -12,8 +12,6 @@ type spec = bus_type * int * int
(** A valid device number *)
type t

val of_rpc: Rpc.t -> t
val rpc_of: t -> Rpc.t
val t_of_rpc: Rpc.t -> t
val rpc_of_t: t -> Rpc.t

Expand Down
4 changes: 1 addition & 3 deletions xen/xenops_types.ml
Original file line number Diff line number Diff line change
Expand Up @@ -221,9 +221,7 @@ module Vm = struct
pci_power_mgmt = false;
has_vendor_device = false;
}
let of_rpc rpc = Rpc.struct_extend rpc (rpc_of default_t) |> of_rpc
let t_of_rpc = of_rpc
let rpc_of_t = rpc_of
let t_of_rpc rpc = Rpc.struct_extend rpc (rpc_of_t default_t) |> t_of_rpc

type console_protocol =
| Rfb
Expand Down

0 comments on commit f5e924d

Please sign in to comment.