tools/ocaml: Drop int_array_of_uuid_string()
authorAndrew Cooper <andrew.cooper3@citrix.com>
Fri, 16 Mar 2018 14:04:53 +0000 (14:04 +0000)
committerAndrew Cooper <andrew.cooper3@citrix.com>
Wed, 4 Jul 2018 15:25:01 +0000 (16:25 +0100)
commit36d94c17fa1e48cc9fb9ed15bc9a2237a1738bbb
treed2eedf344aeca0f88b06ae48a379ca7cab6ebe59
parentcf4fa365c78b4875e12c8964aa075be43b359b13
tools/ocaml: Drop int_array_of_uuid_string()

This function is entirely internal to xenctrl stubs, and serves only to
convert the uuid string to an integer array (making 16 memory allocations as
it goes), while the C stubs turns the integer array back into a binary array.

Instead, pass the string all the way down into C, and have sscanf() unpack it
directly into a xen_domain_handle_t object.

Signed-off-by: Andrew Cooper <andrew.cooper3@citrix.com>
Acked-by: Christian Lindig <christian.lindig@citrix.com>
tools/ocaml/libs/xc/xenctrl.ml
tools/ocaml/libs/xc/xenctrl.mli
tools/ocaml/libs/xc/xenctrl_stubs.c