Monero
upnpdev.h
Go to the documentation of this file.
1 /* $Id: upnpdev.h,v 1.3 2020/05/29 15:57:42 nanard Exp $ */
2 /* Project : miniupnp
3  * Web : http://miniupnp.free.fr/ or https://miniupnp.tuxfamily.org/
4  * Author : Thomas BERNARD
5  * copyright (c) 2005-2020 Thomas Bernard
6  * This software is subjet to the conditions detailed in the
7  * provided LICENSE file. */
8 #ifndef UPNPDEV_H_INCLUDED
9 #define UPNPDEV_H_INCLUDED
10 
11 #include "miniupnpc_declspec.h"
12 
13 #ifdef __cplusplus
14 extern "C" {
15 #endif
16 
17 struct UPNPDev {
18  struct UPNPDev * pNext;
19  char * descURL;
20  char * st;
21  char * usn;
22  unsigned int scope_id;
23 #if defined(__STDC_VERSION) && __STDC_VERSION__ >= 199901L
24  /* C99 flexible array member */
25  char buffer[];
26 #elif defined(__GNUC__)
27  char buffer[0];
28 #else
29  /* Fallback to a hack */
30  char buffer[1];
31 #endif
32 };
33 
34 /* freeUPNPDevlist()
35  * free list returned by upnpDiscover() */
37 
38 
39 #ifdef __cplusplus
40 }
41 #endif
42 
43 
44 #endif /* UPNPDEV_H_INCLUDED */
#define MINIUPNP_LIBSPEC
Definition: miniupnpc_declspec.h:16
MINIUPNP_LIBSPEC void freeUPNPDevlist(struct UPNPDev *devlist)
Definition: upnpdev.c:13
unsigned int scope_id
Definition: upnpdev.h:22
struct UPNPDev * pNext
Definition: upnpdev.h:18
char * st
Definition: upnpdev.h:20
struct device * devlist
Definition: minissdpd.c:107
Definition: upnpdev.h:17
char * descURL
Definition: upnpdev.h:19
char buffer[1]
Definition: upnpdev.h:30
char * usn
Definition: upnpdev.h:21