igd_desc_parse.h 1.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445
  1. /* $Id: igd_desc_parse.h,v 1.7 2010/04/05 20:36:59 nanard Exp $ */
  2. /* Project : miniupnp
  3. * http://miniupnp.free.fr/
  4. * Author : Thomas Bernard
  5. * Copyright (c) 2005-2010 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_service {
  15. char controlurl[MINIUPNPC_URL_MAXSIZE];
  16. char eventsuburl[MINIUPNPC_URL_MAXSIZE];
  17. char scpdurl[MINIUPNPC_URL_MAXSIZE];
  18. char servicetype[MINIUPNPC_URL_MAXSIZE];
  19. /*char devicetype[MINIUPNPC_URL_MAXSIZE];*/
  20. };
  21. struct IGDdatas {
  22. char cureltname[MINIUPNPC_URL_MAXSIZE];
  23. char urlbase[MINIUPNPC_URL_MAXSIZE];
  24. int level;
  25. /*int state;*/
  26. /* "urn:schemas-upnp-org:service:WANCommonInterfaceConfig:1" */
  27. struct IGDdatas_service CIF;
  28. /* "urn:schemas-upnp-org:service:WANIPConnection:1"
  29. * "urn:schemas-upnp-org:service:WANPPPConnection:1" */
  30. struct IGDdatas_service first;
  31. /* if both WANIPConnection and WANPPPConnection are present */
  32. struct IGDdatas_service second;
  33. /* tmp */
  34. struct IGDdatas_service tmp;
  35. };
  36. void IGDstartelt(void *, const char *, int);
  37. void IGDendelt(void *, const char *, int);
  38. void IGDdata(void *, const char *, int);
  39. void printIGD(struct IGDdatas *);
  40. #endif
粤ICP备19079148号