Annotation of embedaddon/miniupnpd/upnpreplyparse.h, revision 1.1.1.3

1.1.1.3 ! misho       1: /* $Id: upnpreplyparse.h,v 1.14 2012/09/27 15:42:11 nanard Exp $ */
1.1       misho       2: /* MiniUPnP project
                      3:  * http://miniupnp.free.fr/ or http://miniupnp.tuxfamily.org/
1.1.1.3 ! misho       4:  * (c) 2006-2012 Thomas Bernard
1.1       misho       5:  * This software is subject to the conditions detailed
                      6:  * in the LICENCE file provided within the distribution */
                      7: 
1.1.1.3 ! misho       8: #ifndef UPNPREPLYPARSE_H_INCLUDED
        !             9: #define UPNPREPLYPARSE_H_INCLUDED
1.1       misho      10: 
1.1.1.3 ! misho      11: #if defined(NO_SYS_QUEUE_H) || defined(_WIN32) || defined(__HAIKU__)
1.1       misho      12: #include "bsdqueue.h"
                     13: #else
                     14: #include <sys/queue.h>
                     15: #endif
                     16: 
                     17: #ifdef __cplusplus
                     18: extern "C" {
                     19: #endif
                     20: 
                     21: struct NameValue {
                     22:     LIST_ENTRY(NameValue) entries;
                     23:     char name[64];
                     24:     char value[64];
                     25: };
                     26: 
                     27: struct NameValueParserData {
                     28:     LIST_HEAD(listhead, NameValue) head;
                     29:     char curelt[64];
1.1.1.2   misho      30:        char * portListing;
                     31:        int portListingLength;
1.1       misho      32: };
                     33: 
                     34: /* ParseNameValue() */
                     35: void
                     36: ParseNameValue(const char * buffer, int bufsize,
                     37:                struct NameValueParserData * data);
                     38: 
                     39: /* ClearNameValueList() */
                     40: void
                     41: ClearNameValueList(struct NameValueParserData * pdata);
                     42: 
                     43: /* GetValueFromNameValueList() */
                     44: char *
                     45: GetValueFromNameValueList(struct NameValueParserData * pdata,
                     46:                           const char * Name);
                     47: 
                     48: /* GetValueFromNameValueListIgnoreNS() */
                     49: char *
                     50: GetValueFromNameValueListIgnoreNS(struct NameValueParserData * pdata,
                     51:                                   const char * Name);
                     52: 
                     53: /* DisplayNameValueList() */
                     54: #ifdef DEBUG
                     55: void
                     56: DisplayNameValueList(char * buffer, int bufsize);
                     57: #endif
                     58: 
                     59: #ifdef __cplusplus
                     60: }
                     61: #endif
                     62: 
                     63: #endif
                     64: 

FreeBSD-CVSweb <freebsd-cvsweb@FreeBSD.org>