aboutsummaryrefslogtreecommitdiffstats
path: root/tools/libxl/libxl_osdeps.h
diff options
context:
space:
mode:
authorChristoph Egger <Christoph.Egger@amd.com>2010-07-23 16:46:59 +0100
committerChristoph Egger <Christoph.Egger@amd.com>2010-07-23 16:46:59 +0100
commit667c40e2f759ecb52977915ef1745758519e9759 (patch)
tree7d39ae026a1661d32944bf74881171831dad422f /tools/libxl/libxl_osdeps.h
parent389da317e2f3ab4232e2ea5c238f7ff1658e6c23 (diff)
downloadxen-667c40e2f759ecb52977915ef1745758519e9759.tar.gz
xen-667c40e2f759ecb52977915ef1745758519e9759.tar.bz2
xen-667c40e2f759ecb52977915ef1745758519e9759.zip
tools/libxl: Fix blktap2 NetBSD build and also revert broken change
Fix e76befc7fe2d which broke the build. Also revert 24277e3237ca which was broken. Signed-off-by: Christoph Egger <Christoph.Egger@amd.com> Acked-by: Stefano Stabellini <stefano.stabellini@eu.citrix.com> Committed-by: Ian Jackson <ian.jackson@eu.citrix.com>
Diffstat (limited to 'tools/libxl/libxl_osdeps.h')
-rw-r--r--tools/libxl/libxl_osdeps.h21
1 files changed, 21 insertions, 0 deletions
diff --git a/tools/libxl/libxl_osdeps.h b/tools/libxl/libxl_osdeps.h
index fc453c3553..0dd22d89d4 100644
--- a/tools/libxl/libxl_osdeps.h
+++ b/tools/libxl/libxl_osdeps.h
@@ -23,6 +23,8 @@
#define _GNU_SOURCE
+#include <libxl_internal.h>
+
#ifdef NEED_OWN_ASPRINTF
#include <stdarg.h>
@@ -30,4 +32,23 @@ int asprintf(char **buffer, char *fmt, ...);
int vasprintf(char **buffer, const char *fmt, va_list ap);
#endif /*NEED_OWN_ASPRINTF*/
+/*
+ * blktap2 support
+ */
+
+/* libxl_blktap_enabled:
+ * return true if blktap/blktap2 support is available.
+ */
+int libxl_blktap_enabled(struct libxl_ctx *ctx);
+
+/* libxl_blktap_devpath:
+ * Argument: path and disk image as specified in config file.
+ * The type specifies whether this is aio, qcow, qcow2, etc.
+ * returns device path xenstore wants to have. returns NULL
+ * if no device corresponds to the disk.
+ */
+const char *libxl_blktap_devpath(struct libxl_ctx *ctx,
+ const char *disk,
+ libxl_disk_phystype phystype);
+
#endif