aboutsummaryrefslogtreecommitdiffstats
path: root/tools/libxl/libxl_netbsd.c
diff options
context:
space:
mode:
authorRoger Pau Monne <roger.pau@citrix.com>2013-01-23 17:55:39 +0000
committerIan Jackson <Ian.Jackson@eu.citrix.com>2013-03-13 14:48:00 +0000
commitd46d13606e5533d63a83c6541942d7d66f217896 (patch)
tree4d06397206690cbde9e7e1515b85b9eea58c9f90 /tools/libxl/libxl_netbsd.c
parentf493a3228f7c3c6937f2798fea1f4ed44fb3a425 (diff)
downloadxen-d46d13606e5533d63a83c6541942d7d66f217896.tar.gz
xen-d46d13606e5533d63a83c6541942d7d66f217896.tar.bz2
xen-d46d13606e5533d63a83c6541942d7d66f217896.zip
libxl: move libxl_device_action to idl
Move to idl for ease of expansion and auto-generated functions. Signed-off-by: Roger Pau Monné <roger.pau@citrix.com> Cc: Ian Campbell <ian.campbell@citrix.com> Acked-by: Ian Jackson <ian.jackson@eu.citrix.com>
Diffstat (limited to 'tools/libxl/libxl_netbsd.c')
-rw-r--r--tools/libxl/libxl_netbsd.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/tools/libxl/libxl_netbsd.c b/tools/libxl/libxl_netbsd.c
index 36662c0665..0ad69afa85 100644
--- a/tools/libxl/libxl_netbsd.c
+++ b/tools/libxl/libxl_netbsd.c
@@ -50,7 +50,7 @@ static int libxl__hotplug(libxl__gc *gc, libxl__device *dev, char ***args,
GCNEW_ARRAY(*args, arraysize);
(*args)[nr++] = script;
(*args)[nr++] = be_path;
- (*args)[nr++] = GCSPRINTF("%d", action == DEVICE_CONNECT ?
+ (*args)[nr++] = GCSPRINTF("%d", action == LIBXL__DEVICE_ACTION_ADD ?
XenbusStateInitWait : XenbusStateClosed);
(*args)[nr++] = NULL;
assert(nr == arraysize);