Files
xen/tools/ocaml/xenstored/packet.ml
T
Edwin Török ea250e81cf tools/ocaml: run 'make format' on OCaml files
`git log -p -1 -w` proves the change here is only whitespace.

No functional change.

Signed-off-by: Edwin Török <edwin.torok@cloud.com>
Acked-by: Christian Lindig <christian.lindig@citrix.com>
2023-02-06 10:22:12 +00:00

17 lines
391 B
OCaml

type request = {
tid: int;
rid: int;
ty: Xenbus.Xb.Op.operation;
data: string;
}
type response =
| Ack of (unit -> unit) (* function is the action to execute after sending the ack *)
| Reply of string
| Error of string
let response_equal a b =
match (a, b) with
| (Ack _, Ack _) -> true (* just consider the response, not the post-response action *)
| (x, y) -> x = y