|
Odamex
Setting the Standard in Multiplayer Doom
|
00001 /* $Id: igd_desc_parse.h,v 1.10 2011/04/11 09:19:24 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 char presentationurl[MINIUPNPC_URL_MAXSIZE]; 00027 int level; 00028 /*int state;*/ 00029 /* "urn:schemas-upnp-org:service:WANCommonInterfaceConfig:1" */ 00030 struct IGDdatas_service CIF; 00031 /* "urn:schemas-upnp-org:service:WANIPConnection:1" 00032 * "urn:schemas-upnp-org:service:WANPPPConnection:1" */ 00033 struct IGDdatas_service first; 00034 /* if both WANIPConnection and WANPPPConnection are present */ 00035 struct IGDdatas_service second; 00036 /* "urn:schemas-upnp-org:service:WANIPv6FirewallControl:1" */ 00037 struct IGDdatas_service IPv6FC; 00038 /* tmp */ 00039 struct IGDdatas_service tmp; 00040 }; 00041 00042 void IGDstartelt(void *, const char *, int); 00043 void IGDendelt(void *, const char *, int); 00044 void IGDdata(void *, const char *, int); 00045 void printIGD(struct IGDdatas *); 00046 00047 #endif 00048