diff options
author | David Sommerseth <davids@redhat.com> | 2009-04-28 19:10:45 +0200 |
---|---|---|
committer | David Sommerseth <davids@redhat.com> | 2009-04-29 11:22:12 +0200 |
commit | 4b925a1433b65c217e787804df3cf349d6b387aa (patch) | |
tree | 11a32b038eb36a442aa0d9594c531a9f1a8676e3 /src/xmlpythonizer.h | |
parent | 11691f4b5e5786878cca1d30b183103477d5311f (diff) | |
download | python-dmidecode-4b925a1433b65c217e787804df3cf349d6b387aa.tar.gz python-dmidecode-4b925a1433b65c217e787804df3cf349d6b387aa.tar.xz python-dmidecode-4b925a1433b65c217e787804df3cf349d6b387aa.zip |
Added filter and filtervalue attributes to xmlpythonizer's <Map> tags
Using these attributes, only XML data (from the given XPath in 'filter')
which matches the value in 'filtervalue' will be added to the Python
data.
Diffstat (limited to 'src/xmlpythonizer.h')
-rw-r--r-- | src/xmlpythonizer.h | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/src/xmlpythonizer.h b/src/xmlpythonizer.h index 59cc0cd..2c89390 100644 --- a/src/xmlpythonizer.h +++ b/src/xmlpythonizer.h @@ -37,6 +37,10 @@ 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 + + char *filter; // Used for simple filtering. If NULL, no filtering is performed + char *filtervalue; // Only XML contents which matches the given value will be parsed further + struct ptzMAP_s *child; // Only used for type_value == pyDICT struct ptzMAP_s *next; // Pointer chain |