source: trunk/third-party/miniupnp/upnpreplyparse.h @ 8798

Last change on this file since 8798 was 8798, checked in by charles, 12 years ago

(trunk third-party) #2273: update to latest libnatpmp and miniupnpc libraries

File size: 1.4 KB
Line 
1/* $Id: upnpreplyparse.h,v 1.10 2009/07/09 16:01:50 nanard Exp $ */
2/* MiniUPnP project
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 */
7
8#ifndef __UPNPREPLYPARSE_H__
9#define __UPNPREPLYPARSE_H__
10
11#if defined(NO_SYS_QUEUE_H) || defined(WIN32) || defined(__HAIKU__)
12#include "bsdqueue.h"
13#else
14#include <sys/queue.h>
15#endif
16
17#ifdef __cplusplus
18extern "C" {
19#endif
20
21struct NameValue {
22    LIST_ENTRY(NameValue) entries;
23    char name[64];
24    char value[64];
25};
26
27struct NameValueParserData {
28    LIST_HEAD(listhead, NameValue) head;
29    char curelt[64];
30};
31
32/* ParseNameValue() */
33void
34ParseNameValue(const char * buffer, int bufsize,
35               struct NameValueParserData * data);
36
37/* ClearNameValueList() */
38void
39ClearNameValueList(struct NameValueParserData * pdata);
40
41/* GetValueFromNameValueList() */
42char *
43GetValueFromNameValueList(struct NameValueParserData * pdata,
44                          const char * Name);
45
46/* GetValueFromNameValueListIgnoreNS() */
47char *
48GetValueFromNameValueListIgnoreNS(struct NameValueParserData * pdata,
49                                  const char * Name);
50
51/* DisplayNameValueList() */
52#ifdef DEBUG
53void
54DisplayNameValueList(char * buffer, int bufsize);
55#endif
56
57#ifdef __cplusplus
58}
59#endif
60
61#endif
62
Note: See TracBrowser for help on using the repository browser.