[Libvirt-cim] [PATCH 01/20] Add others member for saving unsupported tag and unknown device
John Ferlan
jferlan at redhat.com
Fri Nov 15 00:23:50 UTC 2013
From: Xu Wang <cngesaint at gmail.com>
Signed-off-by: Xu Wang <gesaint at linux.vnet.ibm.com>
---
libxkutil/device_parsing.h | 21 +++++++++++++++++++++
1 file changed, 21 insertions(+)
diff --git a/libxkutil/device_parsing.h b/libxkutil/device_parsing.h
index 92427c1..603f29a 100644
--- a/libxkutil/device_parsing.h
+++ b/libxkutil/device_parsing.h
@@ -39,6 +39,27 @@ struct device_address {
char **value;
};
+/* The structure for saving unknown tag in the xml */
+enum others_type {
+ TYPE_PROP,
+ TYPE_NODE
+};
+
+struct others {
+ /* To identify the different tags with same name */
+ int id;
+ char *name;
+ int parent_id;
+ char *parent_name;
+ enum others_type type;
+ char *value;
+ struct others *next;
+ enum {
+ ACTIVE,
+ INACTIVE
+ } status;
+};
+
struct vsi_device {
char *vsi_type;
char *manager_id;
--
1.8.3.1
More information about the Libvirt-cim
mailing list