diff options
author | David Sommerseth <davids@redhat.com> | 2009-06-09 16:09:22 +0200 |
---|---|---|
committer | David Sommerseth <davids@redhat.com> | 2009-06-09 16:09:22 +0200 |
commit | 4b22254e56bfdbec884a7f1cf634e340eff813c5 (patch) | |
tree | 488eb7600fd356ebd8a4e4aaa925ca0f144ab640 | |
parent | ead8b4135115ec4a74c7866249b9155ea941a892 (diff) | |
download | python-dmidecode-4b22254e56bfdbec884a7f1cf634e340eff813c5.tar.gz python-dmidecode-4b22254e56bfdbec884a7f1cf634e340eff813c5.tar.xz python-dmidecode-4b22254e56bfdbec884a7f1cf634e340eff813c5.zip |
Renamed _dmiMAP_GetRootElement(...) to dmiMAP_GetRootElement(...) and exported the function
-rw-r--r-- | src/xmlpythonizer.c | 6 | ||||
-rw-r--r-- | src/xmlpythonizer.h | 1 |
2 files changed, 4 insertions, 3 deletions
diff --git a/src/xmlpythonizer.c b/src/xmlpythonizer.c index 74b7db3..6c4d4c0 100644 --- a/src/xmlpythonizer.c +++ b/src/xmlpythonizer.c @@ -417,7 +417,7 @@ ptzMAP *_do_dmimap_parsing_typeid(xmlNode *node) { * @param xmlDoc* XML mapping document pointer * @return xmlNode* The root xmlNode of a valid XML mapping document. On invalid document NULL is returned. */ -xmlNode *_dmiMAP_GetRootElement(xmlDoc *mapdoc) { +xmlNode *dmiMAP_GetRootElement(xmlDoc *mapdoc) { xmlNode *rootnode = NULL; // Find the root tag and locate our mapping @@ -477,7 +477,7 @@ ptzMAP *_dmimap_parse_mapping_node_typeid(xmlNode *mapnode, const char *typeid) ptzMAP *dmiMAP_ParseMappingXML_TypeID(xmlDoc *xmlmap, const char *mapname) { xmlNode *node = NULL; - node = _dmiMAP_GetRootElement(xmlmap); + node = dmiMAP_GetRootElement(xmlmap); if( node == NULL ) { return NULL; } @@ -563,7 +563,7 @@ ptzMAP *dmiMAP_ParseMappingXML_GroupName(xmlDoc *xmlmap, const char *mapname) { xmlNode *node = NULL; // Validate the XML mapping document and get the root element - node = _dmiMAP_GetRootElement(xmlmap); + node = dmiMAP_GetRootElement(xmlmap); if( node == NULL ) { PyErr_SetString(PyExc_IOError, "No valid mapping XML recieved"); return NULL; diff --git a/src/xmlpythonizer.h b/src/xmlpythonizer.h index bda077e..f37bfa5 100644 --- a/src/xmlpythonizer.h +++ b/src/xmlpythonizer.h @@ -48,6 +48,7 @@ typedef struct ptzMAP_s { } ptzMAP; +xmlNode *dmiMAP_GetRootElement(xmlDoc *mapdoc); 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; } |