# HG changeset patch
# User Dan Smith <danms(a)us.ibm.com>
# Date 1206390944 25200
# Node ID be1948c5fb0eb677fd45b177012b49674bee3da5
# Parent 560f30acf513ef3738aa0265c3a9c65841c53393
Add LXC support to misc_utils functions
Signed-off-by: Dan Smith <danms(a)us.ibm.com>
diff -r 560f30acf513 -r be1948c5fb0e libxkutil/misc_util.c
--- a/libxkutil/misc_util.c Mon Mar 24 13:35:31 2008 -0700
+++ b/libxkutil/misc_util.c Mon Mar 24 13:35:44 2008 -0700
@@ -46,6 +46,8 @@ static const char *cn_to_uri(const char
return "xen";
else if (STARTS_WITH(classname, "KVM"))
return "qemu:///system";
+ else if (STARTS_WITH(classname, "LXC"))
+ return "lxc:///system";
else
return NULL;
}
@@ -200,6 +202,8 @@ const char *pfx_from_conn(virConnectPtr
pfx = "Xen";
else if (STARTS_WITH(uri, "qemu"))
pfx = "KVM";
+ else if (STARTS_WITH(uri, "lxc"))
+ pfx = "LXC";
free(uri);