2
0

igd_desc_parse.h 1.6 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647
  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. /* Structure to store the result of the parsing of UPnP
  12. * descriptions of Internet Gateway Devices */
  13. #define MINIUPNPC_URL_MAXSIZE (128)
  14. struct IGDdatas {
  15. char cureltname[MINIUPNPC_URL_MAXSIZE];
  16. char urlbase[MINIUPNPC_URL_MAXSIZE];
  17. int level;
  18. /*int state;*/
  19. /* "urn:schemas-upnp-org:service:WANCommonInterfaceConfig:1" */
  20. char controlurl_CIF[MINIUPNPC_URL_MAXSIZE];
  21. char eventsuburl_CIF[MINIUPNPC_URL_MAXSIZE];
  22. char scpdurl_CIF[MINIUPNPC_URL_MAXSIZE];
  23. char servicetype_CIF[MINIUPNPC_URL_MAXSIZE];
  24. /*char devicetype_CIF[MINIUPNPC_URL_MAXSIZE];*/
  25. /* "urn:schemas-upnp-org:service:WANIPConnection:1"
  26. * "urn:schemas-upnp-org:service:WANPPPConnection:1" */
  27. char controlurl[MINIUPNPC_URL_MAXSIZE];
  28. char eventsuburl[MINIUPNPC_URL_MAXSIZE];
  29. char scpdurl[MINIUPNPC_URL_MAXSIZE];
  30. char servicetype[MINIUPNPC_URL_MAXSIZE];
  31. /*char devicetype[MINIUPNPC_URL_MAXSIZE];*/
  32. /* tmp */
  33. char controlurl_tmp[MINIUPNPC_URL_MAXSIZE];
  34. char eventsuburl_tmp[MINIUPNPC_URL_MAXSIZE];
  35. char scpdurl_tmp[MINIUPNPC_URL_MAXSIZE];
  36. char servicetype_tmp[MINIUPNPC_URL_MAXSIZE];
  37. /*char devicetype_tmp[MINIUPNPC_URL_MAXSIZE];*/
  38. };
  39. void IGDstartelt(void *, const char *, int);
  40. void IGDendelt(void *, const char *, int);
  41. void IGDdata(void *, const char *, int);
  42. void printIGD(struct IGDdatas *);
  43. #endif