summaryrefslogtreecommitdiffstats
path: root/src/xmlpythonizer.h
diff options
context:
space:
mode:
authorDavid Sommerseth <davids@redhat.com>2009-05-14 16:31:34 +0200
committerDavid Sommerseth <davids@redhat.com>2009-05-14 16:31:34 +0200
commita92cc1236ca7c5abee27e4360284b67297e39c15 (patch)
tree40c40d872c2462d15e13eb87f45e6cd507653169 /src/xmlpythonizer.h
parenteeb40ea2c5a47737f318a1631316416e6f1ab75a (diff)
downloadpython-dmidecode-a92cc1236ca7c5abee27e4360284b67297e39c15.tar.gz
python-dmidecode-a92cc1236ca7c5abee27e4360284b67297e39c15.tar.xz
python-dmidecode-a92cc1236ca7c5abee27e4360284b67297e39c15.zip
Support fixed size lists
When using one of the list types as valuetype, the Map tag now also supports fixedsize and index_attr attributes. - fixedsize : Defines a fixed size of the list - index_attr : Defines an attribute name of the input XML data which contains the list index for the value
Diffstat (limited to 'src/xmlpythonizer.h')
-rw-r--r--src/xmlpythonizer.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/xmlpythonizer.h b/src/xmlpythonizer.h
index 6c61381..d6fa54c 100644
--- a/src/xmlpythonizer.h
+++ b/src/xmlpythonizer.h
@@ -39,6 +39,8 @@ typedef struct ptzMAP_s {
ptzTYPES type_value;
char *value; // for ptzCONST key contains a static string,
// the rest of types, an XPath to XML data
+ int fixed_list_size; // Only to be used on lists
+ char *list_index ; // Only to be used on fixed lists
struct ptzMAP_s *child; // Only used for type_value == pyDICT
struct ptzMAP_s *next; // Pointer chain