1 | /* $Id: igd_desc_parse.h,v 1.6 2008/04/23 11:51:07 nanard Exp $ */ |
---|
2 | /* Project : miniupnp |
---|
3 | * http://miniupnp.free.fr/ |
---|
4 | * Author : Thomas Bernard |
---|
5 | * Copyright (c) 2005-2008 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 { |
---|
16 | char cureltname[MINIUPNPC_URL_MAXSIZE]; |
---|
17 | char urlbase[MINIUPNPC_URL_MAXSIZE]; |
---|
18 | int level; |
---|
19 | /*int state;*/ |
---|
20 | /* "urn:schemas-upnp-org:service:WANCommonInterfaceConfig:1" */ |
---|
21 | char controlurl_CIF[MINIUPNPC_URL_MAXSIZE]; |
---|
22 | char eventsuburl_CIF[MINIUPNPC_URL_MAXSIZE]; |
---|
23 | char scpdurl_CIF[MINIUPNPC_URL_MAXSIZE]; |
---|
24 | char servicetype_CIF[MINIUPNPC_URL_MAXSIZE]; |
---|
25 | /*char devicetype_CIF[MINIUPNPC_URL_MAXSIZE];*/ |
---|
26 | /* "urn:schemas-upnp-org:service:WANIPConnection:1" |
---|
27 | * "urn:schemas-upnp-org:service:WANPPPConnection:1" */ |
---|
28 | char controlurl[MINIUPNPC_URL_MAXSIZE]; |
---|
29 | char eventsuburl[MINIUPNPC_URL_MAXSIZE]; |
---|
30 | char scpdurl[MINIUPNPC_URL_MAXSIZE]; |
---|
31 | char servicetype[MINIUPNPC_URL_MAXSIZE]; |
---|
32 | /*char devicetype[MINIUPNPC_URL_MAXSIZE];*/ |
---|
33 | /* tmp */ |
---|
34 | char controlurl_tmp[MINIUPNPC_URL_MAXSIZE]; |
---|
35 | char eventsuburl_tmp[MINIUPNPC_URL_MAXSIZE]; |
---|
36 | char scpdurl_tmp[MINIUPNPC_URL_MAXSIZE]; |
---|
37 | char servicetype_tmp[MINIUPNPC_URL_MAXSIZE]; |
---|
38 | /*char devicetype_tmp[MINIUPNPC_URL_MAXSIZE];*/ |
---|
39 | }; |
---|
40 | |
---|
41 | void IGDstartelt(void *, const char *, int); |
---|
42 | void IGDendelt(void *, const char *, int); |
---|
43 | void IGDdata(void *, const char *, int); |
---|
44 | void printIGD(struct IGDdatas *); |
---|
45 | |
---|
46 | #endif |
---|
47 | |
---|