2008-05-04 22:09:33 +00:00
|
|
|
/* $Id: igd_desc_parse.h,v 1.6 2008/04/23 11:51:07 nanard Exp $ */
|
2007-11-06 16:02:50 +00:00
|
|
|
/* Project : miniupnp
|
|
|
|
* http://miniupnp.free.fr/
|
|
|
|
* Author : Thomas Bernard
|
2008-05-04 22:09:33 +00:00
|
|
|
* Copyright (c) 2005-2008 Thomas Bernard
|
2007-11-06 16:02:50 +00:00
|
|
|
* This software is subject to the conditions detailed in the
|
|
|
|
* LICENCE file provided in this distribution.
|
|
|
|
* */
|
|
|
|
#ifndef __IGD_DESC_PARSE_H__
|
|
|
|
#define __IGD_DESC_PARSE_H__
|
|
|
|
|
|
|
|
/* Structure to store the result of the parsing of UPnP
|
|
|
|
* descriptions of Internet Gateway Devices */
|
|
|
|
#define MINIUPNPC_URL_MAXSIZE (128)
|
|
|
|
struct IGDdatas {
|
|
|
|
char cureltname[MINIUPNPC_URL_MAXSIZE];
|
|
|
|
char urlbase[MINIUPNPC_URL_MAXSIZE];
|
|
|
|
int level;
|
2008-05-04 22:09:33 +00:00
|
|
|
/*int state;*/
|
|
|
|
/* "urn:schemas-upnp-org:service:WANCommonInterfaceConfig:1" */
|
2007-11-06 16:02:50 +00:00
|
|
|
char controlurl_CIF[MINIUPNPC_URL_MAXSIZE];
|
|
|
|
char eventsuburl_CIF[MINIUPNPC_URL_MAXSIZE];
|
|
|
|
char scpdurl_CIF[MINIUPNPC_URL_MAXSIZE];
|
|
|
|
char servicetype_CIF[MINIUPNPC_URL_MAXSIZE];
|
2008-05-04 22:09:33 +00:00
|
|
|
/*char devicetype_CIF[MINIUPNPC_URL_MAXSIZE];*/
|
|
|
|
/* "urn:schemas-upnp-org:service:WANIPConnection:1"
|
|
|
|
* "urn:schemas-upnp-org:service:WANPPPConnection:1" */
|
2007-11-06 16:02:50 +00:00
|
|
|
char controlurl[MINIUPNPC_URL_MAXSIZE];
|
|
|
|
char eventsuburl[MINIUPNPC_URL_MAXSIZE];
|
|
|
|
char scpdurl[MINIUPNPC_URL_MAXSIZE];
|
|
|
|
char servicetype[MINIUPNPC_URL_MAXSIZE];
|
2008-05-04 22:09:33 +00:00
|
|
|
/*char devicetype[MINIUPNPC_URL_MAXSIZE];*/
|
|
|
|
/* tmp */
|
|
|
|
char controlurl_tmp[MINIUPNPC_URL_MAXSIZE];
|
|
|
|
char eventsuburl_tmp[MINIUPNPC_URL_MAXSIZE];
|
|
|
|
char scpdurl_tmp[MINIUPNPC_URL_MAXSIZE];
|
|
|
|
char servicetype_tmp[MINIUPNPC_URL_MAXSIZE];
|
|
|
|
/*char devicetype_tmp[MINIUPNPC_URL_MAXSIZE];*/
|
2007-11-06 16:02:50 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
void IGDstartelt(void *, const char *, int);
|
|
|
|
void IGDendelt(void *, const char *, int);
|
|
|
|
void IGDdata(void *, const char *, int);
|
|
|
|
void printIGD(struct IGDdatas *);
|
|
|
|
|
|
|
|
#endif
|
|
|
|
|