Annotation of embedaddon/miniupnpd/miniupnpc-libuv/minissdpc-libuv.h, revision 1.1.1.1
1.1 misho 1: /* $Id: minissdpc.h,v 1.6 2015/09/18 12:45:16 nanard Exp $ */
2: /* Project: miniupnp
3: * http://miniupnp.free.fr/ or http://miniupnp.tuxfamily.org/
4: * Author: Thomas Bernard
5: * Copyright (c) 2005-2015 Thomas Bernard
6: * This software is subjects to the conditions detailed
7: * in the LICENCE file provided within this distribution */
8: #ifndef MINISSDPC_H_INCLUDED
9: #define MINISSDPC_H_INCLUDED
10:
11: #include "miniupnpc_declspec.h"
12: #include "upnpdev.h"
13:
14: /* error codes : */
15: #define MINISSDPC_SUCCESS (0)
16: #define MINISSDPC_UNKNOWN_ERROR (-1)
17: #define MINISSDPC_SOCKET_ERROR (-101)
18: #define MINISSDPC_MEMORY_ERROR (-102)
19: #define MINISSDPC_INVALID_INPUT (-103)
20: #define MINISSDPC_INVALID_SERVER_REPLY (-104)
21:
22: #ifdef __cplusplus
23: extern "C" {
24: #endif
25:
26: MINIUPNP_LIBSPEC int
27: connectToMiniSSDPD(const char *socketpath, void(*connect_cb)(void *session, void *userdata), void *userdata);
28:
29: MINIUPNP_LIBSPEC void
30: disconnectFromMiniSSDPD(void *session);
31:
32: MINIUPNP_LIBSPEC int
33: requestDevicesFromMiniSSDPD(void *session, const char *devtype, void(*requestFinish)(void *session, int success, void *userdata), void *userdata);
34:
35: MINIUPNP_LIBSPEC void
36: receiveDevicesFromMiniSSDPD(void *session, void(*requestFinish)(void *session, void *userdata, struct UPNPDev *upnpdev), void *userdata);
37:
38: /****
39: MINIUPNP_LIBSPEC struct UPNPDev *
40: getDevicesFromMiniSSDPD(const char * devtype, const char * socketpath, int * error);
41:
42: MINIUPNP_LIBSPEC struct UPNPDev *
43: ssdpDiscoverDevices(const char * const deviceTypes[],
44: int delay, const char * multicastif,
45: int localport,
46: int ipv6, unsigned char ttl,
47: int * error,
48: int searchalltypes);
49: ****/
50:
51: #ifdef __cplusplus
52: }
53: #endif
54:
55: #endif
56:
FreeBSD-CVSweb <freebsd-cvsweb@FreeBSD.org>