2020-05-29 15:59:38 +00:00
|
|
|
/* $Id: upnpdev.h,v 1.3 2020/05/29 15:57:42 nanard Exp $ */
|
2015-08-28 12:23:38 +00:00
|
|
|
/* Project : miniupnp
|
2020-05-29 15:59:38 +00:00
|
|
|
* Web : http://miniupnp.free.fr/ or https://miniupnp.tuxfamily.org/
|
2015-08-28 12:23:38 +00:00
|
|
|
* Author : Thomas BERNARD
|
2020-05-29 15:59:38 +00:00
|
|
|
* copyright (c) 2005-2020 Thomas Bernard
|
2015-08-28 12:23:38 +00:00
|
|
|
* This software is subjet to the conditions detailed in the
|
|
|
|
* provided LICENSE file. */
|
2015-08-03 16:49:14 +00:00
|
|
|
#ifndef UPNPDEV_H_INCLUDED
|
|
|
|
#define UPNPDEV_H_INCLUDED
|
|
|
|
|
|
|
|
#include "miniupnpc_declspec.h"
|
|
|
|
|
|
|
|
#ifdef __cplusplus
|
|
|
|
extern "C" {
|
|
|
|
#endif
|
|
|
|
|
|
|
|
struct UPNPDev {
|
|
|
|
struct UPNPDev * pNext;
|
|
|
|
char * descURL;
|
|
|
|
char * st;
|
|
|
|
char * usn;
|
2018-04-06 10:48:24 +00:00
|
|
|
unsigned int scope_id;
|
2020-05-29 15:59:38 +00:00
|
|
|
#if defined(__STDC_VERSION) && __STDC_VERSION__ >= 199901L
|
|
|
|
/* C99 flexible array member */
|
|
|
|
char buffer[];
|
|
|
|
#elif defined(__GNUC__)
|
|
|
|
char buffer[0];
|
|
|
|
#else
|
|
|
|
/* Fallback to a hack */
|
|
|
|
char buffer[1];
|
|
|
|
#endif
|
2015-08-03 16:49:14 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
/* freeUPNPDevlist()
|
|
|
|
* free list returned by upnpDiscover() */
|
|
|
|
MINIUPNP_LIBSPEC void freeUPNPDevlist(struct UPNPDev * devlist);
|
|
|
|
|
|
|
|
|
|
|
|
#ifdef __cplusplus
|
|
|
|
}
|
|
|
|
#endif
|
|
|
|
|
|
|
|
|
2015-08-28 12:23:38 +00:00
|
|
|
#endif /* UPNPDEV_H_INCLUDED */
|