usbmodeswitch: Updated to v.1.2.6 from shibby's branch.
[tomato.git] / release / src / router / miniupnpd / upnpevents.h
blob27c20699b8d7984bf84eb41b75cadc77ff871cac
1 /* $Id: upnpevents.h,v 1.10 2012/09/27 16:00:10 nanard Exp $ */
2 /* MiniUPnP project
3 * http://miniupnp.free.fr/ or http://miniupnp.tuxfamily.org/
4 * (c) 2008-2011 Thomas Bernard
5 * This software is subject to the conditions detailed
6 * in the LICENCE file provided within the distribution */
8 #ifndef UPNPEVENTS_H_INCLUDED
9 #define UPNPEVENTS_H_INCLUDED
11 #include "config.h"
13 #ifdef ENABLE_EVENTS
14 enum subscriber_service_enum {
15 EWanCFG = 1,
16 EWanIPC,
17 #ifdef ENABLE_L3F_SERVICE
18 EL3F,
19 #endif
20 #ifdef ENABLE_6FC_SERVICE
21 E6FC,
22 #endif
23 #ifdef ENABLE_DP_SERVICE
24 EDP,
25 #endif
28 void
29 upnp_event_var_change_notify(enum subscriber_service_enum service);
31 const char *
32 upnpevents_addSubscriber(const char * eventurl,
33 const char * callback, int callbacklen,
34 int timeout);
36 int
37 upnpevents_removeSubscriber(const char * sid, int sidlen);
39 int
40 renewSubscription(const char * sid, int sidlen, int timeout);
42 void upnpevents_selectfds(fd_set *readset, fd_set *writeset, int * max_fd);
43 void upnpevents_processfds(fd_set *readset, fd_set *writeset);
45 #ifdef USE_MINIUPNPDCTL
46 void write_events_details(int s);
47 #endif
49 #endif
50 #endif