aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDaniel Veillard <veillard@redhat.com>2006-06-13 16:31:44 +0000
committerDaniel Veillard <veillard@redhat.com>2006-06-13 16:31:44 +0000
commit7efa1c11b56a467e61f5e79c9353ebd5cba44822 (patch)
treec156d7df1401b738bb4f0065dbc03ade227f6751 /src/xend_internal.c
parentCall xenDeamonClose if ping test fails during open call, to ensure any resour... (diff)
downloadlibvirt-7efa1c11b56a467e61f5e79c9353ebd5cba44822.tar.gz
libvirt-7efa1c11b56a467e61f5e79c9353ebd5cba44822.tar.bz2
libvirt-7efa1c11b56a467e61f5e79c9353ebd5cba44822.zip
* docs//*: rebuilt the documentation
* src/driver.h src/libvirt.c src/test.c src/xen_internal.c src/xend_internal.c src/xs_internal.c: started to fix some of the driver related problem raised by Daniel Berrange, added a ver version field to drivers. Daniel
Diffstat (limited to 'src/xend_internal.c')
-rw-r--r--src/xend_internal.c8
1 files changed, 8 insertions, 0 deletions
diff --git a/src/xend_internal.c b/src/xend_internal.c
index 33f3ff41d..cb1ae7fde 100644
--- a/src/xend_internal.c
+++ b/src/xend_internal.c
@@ -34,12 +34,16 @@
#include "sexpr.h"
#include "xml.h"
#include "xend_internal.h"
+#include "xen_internal.h" /* for DOM0_INTERFACE_VERSION */
static int xenDaemonNodeGetInfo(virConnectPtr conn, virNodeInfoPtr info);
static int xenDaemonGetVersion(virConnectPtr conn, unsigned long *hvVer);
static virDriver xenDaemonDriver = {
"XenDaemon",
+ (DOM0_INTERFACE_VERSION >> 24) * 1000000 +
+ ((DOM0_INTERFACE_VERSION >> 16) & 0xFF) * 1000 +
+ (DOM0_INTERFACE_VERSION & 0xFFFF),
NULL, /* init */
xenDaemonOpen, /* open */
xenDaemonClose, /* close */
@@ -1662,6 +1666,10 @@ xenDaemonOpen(virConnectPtr conn, const char *name, int flags)
virXendError(conn, VIR_ERR_NO_SUPPORT, name);
return(-1);
}
+ if ((uri->scheme != NULL) && (strncasecmp(uri->scheme, "xen", 3))) {
+ xmlFreeURI(uri);
+ return(-1);
+ }
xmlFreeURI(uri);