7 #ifndef UPNPCOMMANDS_H_INCLUDED 8 #define UPNPCOMMANDS_H_INCLUDED 16 #define UPNPCOMMAND_SUCCESS (0) 17 #define UPNPCOMMAND_UNKNOWN_ERROR (-1) 18 #define UPNPCOMMAND_INVALID_ARGS (-2) 19 #define UPNPCOMMAND_HTTP_ERROR (-3) 20 #define UPNPCOMMAND_INVALID_RESPONSE (-4) 21 #define UPNPCOMMAND_MEM_ALLOC_ERROR (-5) 29 const char * servicetype);
33 const char * servicetype);
37 const char * servicetype);
41 const char * servicetype);
50 const char * servicetype,
52 unsigned int * uptime,
53 char * lastconnerror);
62 const char * servicetype,
63 char * connectionType);
78 const char * servicetype,
89 const char* servicetype,
90 unsigned int * bitrateDown,
91 unsigned int * bitrateUp);
128 const char * extPort,
130 const char * inClient,
133 const char * remoteHost,
134 const char * leaseDuration);
161 const char * extPort,
163 const char * inClient,
166 const char * remoteHost,
167 const char * leaseDuration,
168 char * reservedPort);
184 const char * extPort,
const char *
proto,
185 const char * remoteHost);
202 const char * extPortStart,
const char * extPortEnd,
204 const char * manage);
210 const char* servicetype,
238 const char * servicetype,
239 const char * extPort,
241 const char * remoteHost,
246 char * leaseDuration);
272 const char * servicetype,
294 const char * servicetype,
295 const char * startPort,
296 const char * endPort,
297 const char * protocol,
298 const char * numberOfPorts,
304 const char * servicetype,
305 int * firewallEnabled,
306 int * inboundPinholeAllowed);
310 const char * remoteHost,
311 const char * remotePort,
312 const char * intClient,
313 const char * intPort,
319 const char * remoteHost,
320 const char * remotePort,
321 const char * intClient,
322 const char * intPort,
324 const char * leaseTime,
329 const char * uniqueID,
330 const char * leaseTime);
333 UPNP_DeletePinhole(
const char * controlURL,
const char * servicetype,
const char * uniqueID);
337 const char * uniqueID,
int * isWorking);
341 const char * uniqueID,
int * packets);
MINIUPNP_LIBSPEC UNSIGNED_INTEGER UPNP_GetTotalBytesReceived(const char *controlURL, const char *servicetype)
Definition: upnpcommands.c:49
MINIUPNP_LIBSPEC int UPNP_AddAnyPortMapping(const char *controlURL, const char *servicetype, const char *extPort, const char *inPort, const char *inClient, const char *desc, const char *proto, const char *remoteHost, const char *leaseDuration, char *reservedPort)
Definition: upnpcommands.c:401
#define UNSIGNED_INTEGER
Definition: miniupnpctypes.h:14
MINIUPNP_LIBSPEC UNSIGNED_INTEGER UPNP_GetTotalBytesSent(const char *controlURL, const char *servicetype)
Definition: upnpcommands.c:25
MINIUPNP_LIBSPEC int UPNP_GetPinholePackets(const char *controlURL, const char *servicetype, const char *uniqueID, int *packets)
Definition: upnpcommands.c:1196
MINIUPNP_LIBSPEC int UPNP_GetStatusInfo(const char *controlURL, const char *servicetype, char *status, unsigned int *uptime, char *lastconnerror)
Definition: upnpcommands.c:121
MINIUPNP_LIBSPEC int UPNP_GetExternalIPAddress(const char *controlURL, const char *servicetype, char *extIpAdd)
Definition: upnpcommands.c:298
MINIUPNP_LIBSPEC int UPNP_GetListOfPortMappings(const char *controlURL, const char *servicetype, const char *startPort, const char *endPort, const char *protocol, const char *numberOfPorts, struct PortMappingParserData *data)
Definition: upnpcommands.c:796
MINIUPNP_LIBSPEC UNSIGNED_INTEGER UPNP_GetTotalPacketsReceived(const char *controlURL, const char *servicetype)
Definition: upnpcommands.c:97
GLuint GLuint num
Definition: glext.h:10525
MINIUPNP_LIBSPEC int UPNP_GetPortMappingNumberOfEntries(const char *controlURL, const char *servicetype, unsigned int *num)
Definition: upnpcommands.c:661
MINIUPNP_LIBSPEC int UPNP_DeletePinhole(const char *controlURL, const char *servicetype, const char *uniqueID)
Definition: upnpcommands.c:1106
MINIUPNP_LIBSPEC UNSIGNED_INTEGER UPNP_GetTotalPacketsSent(const char *controlURL, const char *servicetype)
Definition: upnpcommands.c:73
GLenum GLenum GLsizei const GLuint GLboolean enabled
Definition: glext.h:8417
MINIUPNP_LIBSPEC int UPNP_GetSpecificPortMappingEntry(const char *controlURL, const char *servicetype, const char *extPort, const char *proto, const char *remoteHost, char *intClient, char *intPort, char *desc, char *enabled, char *leaseDuration)
Definition: upnpcommands.c:702
MINIUPNP_LIBSPEC int UPNP_GetGenericPortMappingEntry(const char *controlURL, const char *servicetype, const char *index, char *extPort, char *intClient, char *intPort, char *protocol, char *desc, char *enabled, char *rHost, char *duration)
Definition: upnpcommands.c:564
MINIUPNP_LIBSPEC int UPNP_DeletePortMapping(const char *controlURL, const char *servicetype, const char *extPort, const char *proto, const char *remoteHost)
Definition: upnpcommands.c:470
#define MINIUPNP_LIBSPEC
Definition: miniupnpc_declspec.h:8
MINIUPNP_LIBSPEC int UPNP_GetConnectionTypeInfo(const char *controlURL, const char *servicetype, char *connectionType)
Definition: upnpcommands.c:186
GLuint index
Definition: glext.h:6671
const char * proto
Definition: civetweb.c:11575
MINIUPNP_LIBSPEC int UPNP_GetFirewallStatus(const char *controlURL, const char *servicetype, int *firewallEnabled, int *inboundPinholeAllowed)
Definition: upnpcommands.c:880
MINIUPNP_LIBSPEC int UPNP_DeletePortMappingRange(const char *controlURL, const char *servicetype, const char *extPortStart, const char *extPortEnd, const char *proto, const char *manage)
Definition: upnpcommands.c:516
MINIUPNP_LIBSPEC int UPNP_CheckPinholeWorking(const char *controlURL, const char *servicetype, const char *uniqueID, int *isWorking)
Definition: upnpcommands.c:1147
Definition: portlistingparse.h:49
MINIUPNP_LIBSPEC int UPNP_AddPortMapping(const char *controlURL, const char *servicetype, const char *extPort, const char *inPort, const char *inClient, const char *desc, const char *proto, const char *remoteHost, const char *leaseDuration)
Definition: upnpcommands.c:338
MINIUPNP_LIBSPEC int UPNP_GetLinkLayerMaxBitRates(const char *controlURL, const char *servicetype, unsigned int *bitrateDown, unsigned int *bitrateUp)
Definition: upnpcommands.c:229
MINIUPNP_LIBSPEC int UPNP_AddPinhole(const char *controlURL, const char *servicetype, const char *remoteHost, const char *remotePort, const char *intClient, const char *intPort, const char *proto, const char *leaseTime, char *uniqueID)
Definition: upnpcommands.c:981
MINIUPNP_LIBSPEC int UPNP_GetOutboundPinholeTimeout(const char *controlURL, const char *servicetype, const char *remoteHost, const char *remotePort, const char *intClient, const char *intPort, const char *proto, int *opTimeout)
Definition: upnpcommands.c:924
MINIUPNP_LIBSPEC int UPNP_UpdatePinhole(const char *controlURL, const char *servicetype, const char *uniqueID, const char *leaseTime)
Definition: upnpcommands.c:1062