2015-09-18 16:11:56 +00:00
|
|
|
/* $Id: minissdpc.h,v 1.6 2015/09/18 12:45:16 nanard Exp $ */
|
2011-09-27 20:25:35 +00:00
|
|
|
/* Project: miniupnp
|
|
|
|
* http://miniupnp.free.fr/ or http://miniupnp.tuxfamily.org/
|
|
|
|
* Author: Thomas Bernard
|
2015-07-23 20:44:03 +00:00
|
|
|
* Copyright (c) 2005-2015 Thomas Bernard
|
2011-09-27 20:25:35 +00:00
|
|
|
* This software is subjects to the conditions detailed
|
|
|
|
* in the LICENCE file provided within this distribution */
|
2012-09-20 20:52:51 +00:00
|
|
|
#ifndef MINISSDPC_H_INCLUDED
|
|
|
|
#define MINISSDPC_H_INCLUDED
|
2011-09-27 20:25:35 +00:00
|
|
|
|
2015-07-23 13:22:23 +00:00
|
|
|
#include "miniupnpc_declspec.h"
|
2015-08-03 16:49:14 +00:00
|
|
|
#include "upnpdev.h"
|
2015-07-23 13:22:23 +00:00
|
|
|
|
|
|
|
/* error codes : */
|
|
|
|
#define MINISSDPC_SUCCESS (0)
|
2015-08-04 11:15:56 +00:00
|
|
|
#define MINISSDPC_UNKNOWN_ERROR (-1)
|
2015-07-23 13:22:23 +00:00
|
|
|
#define MINISSDPC_SOCKET_ERROR (-101)
|
2015-07-23 13:23:39 +00:00
|
|
|
#define MINISSDPC_MEMORY_ERROR (-102)
|
2015-07-23 13:22:23 +00:00
|
|
|
#define MINISSDPC_INVALID_INPUT (-103)
|
2015-07-23 13:23:39 +00:00
|
|
|
#define MINISSDPC_INVALID_SERVER_REPLY (-104)
|
2015-07-23 13:22:23 +00:00
|
|
|
|
|
|
|
#ifdef __cplusplus
|
|
|
|
extern "C" {
|
|
|
|
#endif
|
|
|
|
|
2015-09-18 16:11:56 +00:00
|
|
|
#if !(defined(_WIN32) || defined(__amigaos__) || defined(__amigaos4__))
|
|
|
|
|
2015-07-23 13:22:23 +00:00
|
|
|
MINIUPNP_LIBSPEC struct UPNPDev *
|
|
|
|
getDevicesFromMiniSSDPD(const char * devtype, const char * socketpath, int * error);
|
|
|
|
|
|
|
|
MINIUPNP_LIBSPEC int
|
|
|
|
connectToMiniSSDPD(const char * socketpath);
|
|
|
|
|
|
|
|
MINIUPNP_LIBSPEC int
|
|
|
|
disconnectFromMiniSSDPD(int fd);
|
|
|
|
|
|
|
|
MINIUPNP_LIBSPEC int
|
|
|
|
requestDevicesFromMiniSSDPD(int fd, const char * devtype);
|
|
|
|
|
|
|
|
MINIUPNP_LIBSPEC struct UPNPDev *
|
|
|
|
receiveDevicesFromMiniSSDPD(int fd, int * error);
|
|
|
|
|
2015-09-18 16:11:56 +00:00
|
|
|
#endif /* !(defined(_WIN32) || defined(__amigaos__) || defined(__amigaos4__)) */
|
|
|
|
|
2015-08-03 16:49:55 +00:00
|
|
|
MINIUPNP_LIBSPEC struct UPNPDev *
|
|
|
|
ssdpDiscoverDevices(const char * const deviceTypes[],
|
|
|
|
int delay, const char * multicastif,
|
2015-10-08 15:42:45 +00:00
|
|
|
int localport,
|
2015-08-03 16:49:55 +00:00
|
|
|
int ipv6, unsigned char ttl,
|
|
|
|
int * error,
|
|
|
|
int searchalltypes);
|
|
|
|
|
2015-07-23 13:22:23 +00:00
|
|
|
#ifdef __cplusplus
|
|
|
|
}
|
|
|
|
#endif
|
2011-09-27 20:25:35 +00:00
|
|
|
|
|
|
|
#endif
|
|
|
|
|