aboutsummaryrefslogtreecommitdiffstats
path: root/tools/libxl/libxl_types_internal.idl
diff options
context:
space:
mode:
authorIan Campbell <ian.campbell@citrix.com>2012-03-01 12:26:14 +0000
committerIan Campbell <ian.campbell@citrix.com>2012-03-01 12:26:14 +0000
commitffa165bb9fb29adf4063fd950e07b91611892c63 (patch)
tree2d67bc4915a592fdd39d37513fcd9fc439f09096 /tools/libxl/libxl_types_internal.idl
parent31278f685071b4873a869a7dc4e8d76b6ea94a70 (diff)
downloadxen-ffa165bb9fb29adf4063fd950e07b91611892c63.tar.gz
xen-ffa165bb9fb29adf4063fd950e07b91611892c63.tar.bz2
xen-ffa165bb9fb29adf4063fd950e07b91611892c63.zip
libxl: make libxl_device_console internal
consoles are not directly exposed to users of the library and there are no API functions for manipluating them (only the console_exec function). Rather than commit to a particular API now make the type internal. When a user does come along it is much easier to add a completely new API rather than to fix an existing broken one. It's easier to do this in a manner which users of the library can cope with in a compatible way e.g. adding a new API is easier to check for with ./configure. Signed-off-by: Ian Campbell <ian.campbell@citrix.com> Acked-by: Ian Jackson <ian.jackson@eu.citrix.com>
Diffstat (limited to 'tools/libxl/libxl_types_internal.idl')
-rw-r--r--tools/libxl/libxl_types_internal.idl14
1 files changed, 14 insertions, 0 deletions
diff --git a/tools/libxl/libxl_types_internal.idl b/tools/libxl/libxl_types_internal.idl
index 71e13a523d..15f33419d0 100644
--- a/tools/libxl/libxl_types_internal.idl
+++ b/tools/libxl/libxl_types_internal.idl
@@ -1,5 +1,7 @@
namespace("libxl__")
+libxl_domid = Builtin("domid", namespace="libxl_", json_fn = "yajl_gen_integer")
+
libxl__qmp_message_type = Enumeration("qmp_message_type", [
(1, "QMP"),
(2, "return"),
@@ -17,3 +19,15 @@ libxl__device_kind = Enumeration("device_kind", [
(6, "VKBD"),
(7, "CONSOLE"),
])
+
+libxl__console_backend = Enumeration("console_backend", [
+ (1, "XENCONSOLED"),
+ (2, "IOEMU"),
+ ])
+
+libxl__device_console = Struct("device_console", [
+ ("backend_domid", libxl_domid),
+ ("devid", integer),
+ ("consback", libxl__console_backend),
+ ("output", string),
+ ])