Files
xen/tools/ocaml/test/send_debug_keys.ml
T
Andrew Cooper df8601938a tools/ocaml: Strip all trailing whitespace
No functional change.

Signed-off-by: Andrew Cooper <andrew.cooper3@citrix.com>
Acked-by: Christian Lindig <christian.lindig@citrix.com>
2018-10-04 14:54:36 +01:00

16 lines
312 B
OCaml

open Arg
open Printf
open Xenlight
let send_keys ctx s =
printf "Sending debug key %s\n" s;
Xenlight.Host.send_debug_keys ctx s;
()
let _ =
let logger = Xtl.create_stdio_logger () in
let ctx = Xenlight.ctx_alloc logger in
Arg.parse [
] (fun s -> send_keys ctx s) "usage: send_debug_keys <keys>"