# HG changeset patch
# User Richard Maciel <rmaciel(a)linux.vnet.ibm.com>
# Date 1244339211 10800
# Node ID 54abd208846613c4babff527809b2b5fcd305de6
# Parent efdd812a716e949db3c09b54c05fe955cc34fb4a
Added support for BusType prop on xmlgen and xml_parse_test
Signed-off-by: Richard Maciel <rmaciel(a)linux.vnet.ibm.com>
diff -r efdd812a716e -r 54abd2088466 libxkutil/xml_parse_test.c
--- a/libxkutil/xml_parse_test.c Sat Jun 06 22:46:51 2009 -0300
+++ b/libxkutil/xml_parse_test.c Sat Jun 06 22:46:51 2009 -0300
@@ -97,6 +97,7 @@
print_value(d, "Driver", dev->dev.disk.driver);
print_value(d, "Source", dev->dev.disk.source);
print_value(d, "Virt Device", dev->dev.disk.virtual_dev);
+ print_value(d, "Bus Type", dev->dev.disk.bus_type);
}
static void print_dev_vcpu(struct virt_device *dev,
diff -r efdd812a716e -r 54abd2088466 libxkutil/xmlgen.c
--- a/libxkutil/xmlgen.c Sat Jun 06 22:46:51 2009 -0300
+++ b/libxkutil/xmlgen.c Sat Jun 06 22:46:51 2009 -0300
@@ -60,6 +60,8 @@
if (tmp == NULL)
return XML_ERROR;
xmlNewProp(tmp, BAD_CAST "dev", BAD_CAST dev->virtual_dev);
+ if (dev->bus_type)
+ xmlNewProp(tmp, BAD_CAST "bus", BAD_CAST dev->bus_type);
if (dev->readonly)
xmlNewChild(disk, NULL, BAD_CAST "readonly", NULL);