diff options
author | David Sommerseth <davids@redhat.com> | 2009-06-02 15:40:57 +0200 |
---|---|---|
committer | David Sommerseth <davids@redhat.com> | 2009-06-02 15:55:06 +0200 |
commit | 3149fdcec94191102fd801c7967a5e3cb5b330a7 (patch) | |
tree | c90a35c18071c21203c20d14f0c80fb5d44d85b1 /src/xmlpythonizer.h | |
parent | 7e1ef7e718976c6a0ab92c01990a130203860ff5 (diff) | |
download | python-dmidecode-3149fdcec94191102fd801c7967a5e3cb5b330a7.tar.gz python-dmidecode-3149fdcec94191102fd801c7967a5e3cb5b330a7.tar.xz python-dmidecode-3149fdcec94191102fd801c7967a5e3cb5b330a7.zip |
Rewrote the dmiMAP_ParseMappingXML(...) function and split it up
Removed the automagic in the dmiMAP_ParseMappingXML(...) function from
automatically decide what to parse (TypeMapping or GroupMapping). Introduced
two new functions instead:
- dmiMAP_ParseMappingXML_GroupName(xmlDoc *xmlmap, const char *name)
Parses the XML mapping document, using the GroupMapping tags and building
up a proper ptzMAP structure for all TypeMap defined in that group.
- dmiMAP_ParseMappingXML_TypeID(xmlDoc *xmlmap, const char *typeid)
Parses the XML mapping document, using only the TypeMapping section in th
mapping document.
Rewrote a lot of internal parts to reuse as much of the existing code as possible.
Diffstat (limited to 'src/xmlpythonizer.h')
-rw-r--r-- | src/xmlpythonizer.h | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/xmlpythonizer.h b/src/xmlpythonizer.h index e659340..bda077e 100644 --- a/src/xmlpythonizer.h +++ b/src/xmlpythonizer.h @@ -48,7 +48,8 @@ typedef struct ptzMAP_s { } ptzMAP; -ptzMAP *dmiMAP_ParseMappingXML(xmlDoc *xmlmap, const char *mapname); +ptzMAP *dmiMAP_ParseMappingXML_TypeID(xmlDoc *xmlmap, const char *mapname); +ptzMAP *dmiMAP_ParseMappingXML_GroupName(xmlDoc *xmlmap, const char *mapname); #define ptzmap_Free(ptr) { ptzmap_Free_func(ptr); ptr = NULL; } void ptzmap_Free_func(ptzMAP *ptr); |