Vidalia 0.2.15
|
00001 /* $Id: igd_desc_parse.h,v 1.7 2010/04/05 20:36:59 nanard Exp $ */ 00002 /* Project : miniupnp 00003 * http://miniupnp.free.fr/ 00004 * Author : Thomas Bernard 00005 * Copyright (c) 2005-2010 Thomas Bernard 00006 * This software is subject to the conditions detailed in the 00007 * LICENCE file provided in this distribution. 00008 * */ 00009 #ifndef __IGD_DESC_PARSE_H__ 00010 #define __IGD_DESC_PARSE_H__ 00011 00012 /* Structure to store the result of the parsing of UPnP 00013 * descriptions of Internet Gateway Devices */ 00014 #define MINIUPNPC_URL_MAXSIZE (128) 00015 struct IGDdatas_service { 00016 char controlurl[MINIUPNPC_URL_MAXSIZE]; 00017 char eventsuburl[MINIUPNPC_URL_MAXSIZE]; 00018 char scpdurl[MINIUPNPC_URL_MAXSIZE]; 00019 char servicetype[MINIUPNPC_URL_MAXSIZE]; 00020 /*char devicetype[MINIUPNPC_URL_MAXSIZE];*/ 00021 }; 00022 00023 struct IGDdatas { 00024 char cureltname[MINIUPNPC_URL_MAXSIZE]; 00025 char urlbase[MINIUPNPC_URL_MAXSIZE]; 00026 int level; 00027 /*int state;*/ 00028 /* "urn:schemas-upnp-org:service:WANCommonInterfaceConfig:1" */ 00029 struct IGDdatas_service CIF; 00030 /* "urn:schemas-upnp-org:service:WANIPConnection:1" 00031 * "urn:schemas-upnp-org:service:WANPPPConnection:1" */ 00032 struct IGDdatas_service first; 00033 /* if both WANIPConnection and WANPPPConnection are present */ 00034 struct IGDdatas_service second; 00035 /* tmp */ 00036 struct IGDdatas_service tmp; 00037 }; 00038 00039 void IGDstartelt(void *, const char *, int); 00040 void IGDendelt(void *, const char *, int); 00041 void IGDdata(void *, const char *, int); 00042 void printIGD(struct IGDdatas *); 00043 00044 #endif 00045