# HG changeset patch
# User Dan Smith <danms(a)us.ibm.com>
# Date 1206386465 25200
# Node ID 08bd3393c777cb87b8bfc4ad5d8ef0ceedb12590
# Parent 9a53365f6ff549292ab8148a9954c534c187870f
Add LXC support to misc_utils functions
Signed-off-by: Dan Smith <danms(a)us.ibm.com>
diff -r 9a53365f6ff5 -r 08bd3393c777 libxkutil/misc_util.c
--- a/libxkutil/misc_util.c Mon Mar 24 12:20:44 2008 -0700
+++ b/libxkutil/misc_util.c Mon Mar 24 12:21:05 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);