summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-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);