1 /* $Id: upnpreplyparse.h,v 1.10 2009/07/09 16:01:50 nanard Exp $ */
3 * http://miniupnp.free.fr/ or http://miniupnp.tuxfamily.org/
4 * (c) 2006-2009 Thomas Bernard
5 * This software is subject to the conditions detailed
6 * in the LICENCE file provided within the distribution */
8 #ifndef __UPNPREPLYPARSE_H__
9 #define __UPNPREPLYPARSE_H__
11 #if defined(NO_SYS_QUEUE_H) || defined(WIN32) || defined(__HAIKU__)
14 #include <sys/queue.h>
22 LIST_ENTRY(NameValue
) entries
;
27 struct NameValueParserData
{
28 LIST_HEAD(listhead
, NameValue
) head
;
32 /* ParseNameValue() */
34 ParseNameValue(const char * buffer
, int bufsize
,
35 struct NameValueParserData
* data
);
37 /* ClearNameValueList() */
39 ClearNameValueList(struct NameValueParserData
* pdata
);
41 /* GetValueFromNameValueList() */
43 GetValueFromNameValueList(struct NameValueParserData
* pdata
,
46 /* GetValueFromNameValueListIgnoreNS() */
48 GetValueFromNameValueListIgnoreNS(struct NameValueParserData
* pdata
,
51 /* DisplayNameValueList() */
54 DisplayNameValueList(char * buffer
, int bufsize
);