summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorDavid Sommerseth <davids@redhat.com>2009-04-29 11:18:57 +0200
committerDavid Sommerseth <davids@redhat.com>2009-04-29 11:22:12 +0200
commitc6baf0a8f50cc19f319ad13ceeb2c40ace0b4d7e (patch)
tree622a8bd4e86e1f4b29a695509bd52d3228e71204 /src
parente013d57e504c4e989c0503e62b63369bb16ebdaf (diff)
downloadpython-dmidecode-c6baf0a8f50cc19f319ad13ceeb2c40ace0b4d7e.tar.gz
python-dmidecode-c6baf0a8f50cc19f319ad13ceeb2c40ace0b4d7e.tar.xz
python-dmidecode-c6baf0a8f50cc19f319ad13ceeb2c40ace0b4d7e.zip
Exported ptzmap_Free()
Diffstat (limited to 'src')
-rw-r--r--src/xmlpythonizer.c1
-rw-r--r--src/xmlpythonizer.h4
2 files changed, 3 insertions, 2 deletions
diff --git a/src/xmlpythonizer.c b/src/xmlpythonizer.c
index 32f0181..91507e8 100644
--- a/src/xmlpythonizer.c
+++ b/src/xmlpythonizer.c
@@ -77,7 +77,6 @@ ptzMAP *ptzmap_Add(const ptzMAP *chain,
return ret;
};
-#define ptzmap_Free(ptr) { ptzmap_Free_func(ptr); ptr = NULL; }
void ptzmap_Free_func(ptzMAP *ptr)
{
if( ptr == NULL ) {
diff --git a/src/xmlpythonizer.h b/src/xmlpythonizer.h
index 2c89390..8572403 100644
--- a/src/xmlpythonizer.h
+++ b/src/xmlpythonizer.h
@@ -46,8 +46,10 @@ typedef struct ptzMAP_s {
} ptzMAP;
-
ptzMAP *dmiMAP_ParseMappingXML(xmlDoc *xmlmap, const char *mapname);
+#define ptzmap_Free(ptr) { ptzmap_Free_func(ptr); ptr = NULL; }
+void ptzmap_Free_func(ptzMAP *ptr);
+
PyObject *pythonizeXMLdoc(ptzMAP *map, xmlDoc *xmldoc);
PyObject *pythonizeXMLnode(ptzMAP *map, xmlNode *nodes);