From c6baf0a8f50cc19f319ad13ceeb2c40ace0b4d7e Mon Sep 17 00:00:00 2001 From: David Sommerseth Date: Wed, 29 Apr 2009 11:18:57 +0200 Subject: Exported ptzmap_Free() --- src/xmlpythonizer.c | 1 - src/xmlpythonizer.h | 4 +++- 2 files changed, 3 insertions(+), 2 deletions(-) (limited to 'src') 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); -- cgit