~ubuntu-branches/ubuntu/trusty/tomahawk/trusty-proposed

« back to all changes in this revision

Viewing changes to thirdparty/libportfwd/third-party/miniupnpc-1.6/igd_desc_parse.h

  • Committer: Package Import Robot
  • Author(s): Harald Sitter
  • Date: 2013-03-07 21:50:13 UTC
  • Revision ID: package-import@ubuntu.com-20130307215013-6gdjkdds7i9uenvs
Tags: upstream-0.6.0+dfsg
ImportĀ upstreamĀ versionĀ 0.6.0+dfsg

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
/* $Id: igd_desc_parse.h,v 1.10 2011/04/11 09:19:24 nanard Exp $ */
 
2
/* Project : miniupnp
 
3
 * http://miniupnp.free.fr/
 
4
 * Author : Thomas Bernard
 
5
 * Copyright (c) 2005-2010 Thomas Bernard
 
6
 * This software is subject to the conditions detailed in the
 
7
 * LICENCE file provided in this distribution.
 
8
 * */
 
9
#ifndef __IGD_DESC_PARSE_H__
 
10
#define __IGD_DESC_PARSE_H__
 
11
 
 
12
/* Structure to store the result of the parsing of UPnP
 
13
 * descriptions of Internet Gateway Devices */
 
14
#define MINIUPNPC_URL_MAXSIZE (128)
 
15
struct IGDdatas_service {
 
16
        char controlurl[MINIUPNPC_URL_MAXSIZE];
 
17
        char eventsuburl[MINIUPNPC_URL_MAXSIZE];
 
18
        char scpdurl[MINIUPNPC_URL_MAXSIZE];
 
19
        char servicetype[MINIUPNPC_URL_MAXSIZE];
 
20
        /*char devicetype[MINIUPNPC_URL_MAXSIZE];*/
 
21
};
 
22
 
 
23
struct IGDdatas {
 
24
        char cureltname[MINIUPNPC_URL_MAXSIZE];
 
25
        char urlbase[MINIUPNPC_URL_MAXSIZE];
 
26
        char presentationurl[MINIUPNPC_URL_MAXSIZE];
 
27
        int level;
 
28
        /*int state;*/
 
29
        /* "urn:schemas-upnp-org:service:WANCommonInterfaceConfig:1" */
 
30
        struct IGDdatas_service CIF;
 
31
        /* "urn:schemas-upnp-org:service:WANIPConnection:1"
 
32
         * "urn:schemas-upnp-org:service:WANPPPConnection:1" */
 
33
        struct IGDdatas_service first;
 
34
        /* if both WANIPConnection and WANPPPConnection are present */
 
35
        struct IGDdatas_service second;
 
36
        /* "urn:schemas-upnp-org:service:WANIPv6FirewallControl:1" */
 
37
        struct IGDdatas_service IPv6FC;
 
38
        /* tmp */
 
39
        struct IGDdatas_service tmp;
 
40
};
 
41
 
 
42
void IGDstartelt(void *, const char *, int);
 
43
void IGDendelt(void *, const char *, int);
 
44
void IGDdata(void *, const char *, int);
 
45
void printIGD(struct IGDdatas *);
 
46
 
 
47
#endif
 
48