+Thu Jul 5 09:47:00 EST 2007 Daniel P. Berrange <berrange@redhat.com>
+
+ * src/libvirt.c, src/xen_unified.c: Move code converting NULL
+ and 'xen' into 'xen://' from the Xen driver into the main libvirt.c
+ entry point. We need this conversion done at the top level, so that
+ the network driver open func gets a valid URI in Xen case
+
Thu Jul 5 09:46:00 EST 2007 Daniel P. Berrange <berrange@redhat.com>
* src/remote_internal.c: Fixed typo in setting flags for network
int i, res;
virConnectPtr ret = NULL;
+ /* Convert NULL or "" to xen:/// for back compat */
+ if (!name || name[0] == '\0')
+ name = "xen:///";
+
+ /* Convert xen -> xen:/// for back compat */
+ if (!strcasecmp(name, "xen"))
+ name = "xen:///";
+
if (!initialized)
if (virInitialize() < 0)
return NULL;
xenUnifiedPrivatePtr priv;
xmlURIPtr uri;
- /* Convert NULL or "" to xen:/// for back compat */
- if (!name || name[0] == '\0')
- name = "xen:///";
-
- /* Convert xen -> xen:/// for back compat */
- if (!strcasecmp(name, "xen"))
- name = "xen:///";
-
uri = xmlParseURI(name);
if (uri == NULL) {
return VIR_DRV_OPEN_DECLINED;