libxl: ocaml: use the "string option" type for IDL strings
authorRob Hoes <rob.hoes@citrix.com>
Wed, 6 Nov 2013 17:49:53 +0000 (17:49 +0000)
committerIan Campbell <ian.campbell@citrix.com>
Mon, 11 Nov 2013 15:39:39 +0000 (15:39 +0000)
commit31a6fc78ab4b90a2d8510ab28a9bde5b77bc685f
treeef746707a132b8d6d45e303a24f903e2f0161fcd
parent127229b9c02419cc3cbdfd1a100a62cce8cc734f
libxl: ocaml: use the "string option" type for IDL strings

The libxl IDL is based on C type "char *", and therefore "strings" can
by NULL, or be an actual string. In ocaml, it is common to encode such
things as option types.

Signed-off-by: Rob Hoes <rob.hoes@citrix.com>
Acked-by: David Scott <dave.scott@eu.citrix.com>
Acked-by: Ian Campbell <ian.campbell@citrix.com>
tools/ocaml/libs/xl/genwrap.py
tools/ocaml/libs/xl/xenlight_stubs.c