1 /* $Id: upnpreplyparse.h,v 1.14 2012/09/27 15:42:11 nanard Exp $ */
3 * http://miniupnp.free.fr/ or http://miniupnp.tuxfamily.org/
4 * (c) 2006-2012 Thomas Bernard
5 * This software is subject to the conditions detailed
6 * in the LICENCE file provided within the distribution */
8 #ifndef UPNPREPLYPARSE_H_INCLUDED
9 #define UPNPREPLYPARSE_H_INCLUDED
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
;
31 int portListingLength
;
34 /* ParseNameValue() */
36 ParseNameValue(const char * buffer
, int bufsize
,
37 struct NameValueParserData
* data
);
39 /* ClearNameValueList() */
41 ClearNameValueList(struct NameValueParserData
* pdata
);
43 /* GetValueFromNameValueList() */
45 GetValueFromNameValueList(struct NameValueParserData
* pdata
,
48 /* GetValueFromNameValueListIgnoreNS() */
50 GetValueFromNameValueListIgnoreNS(struct NameValueParserData
* pdata
,
53 /* DisplayNameValueList() */
56 DisplayNameValueList(char * buffer
, int bufsize
);