2015-12-12 09:38:40 +00:00
|
|
|
/* $Id: upnpevents.h,v 1.11 2015/12/12 09:36:22 nanard Exp $ */
|
2011-09-28 19:13:20 +00:00
|
|
|
/* MiniUPnP project
|
|
|
|
* http://miniupnp.free.fr/ or http://miniupnp.tuxfamily.org/
|
2015-12-12 09:38:40 +00:00
|
|
|
* (c) 2008-2015 Thomas Bernard
|
2011-09-28 19:13:20 +00:00
|
|
|
* This software is subject to the conditions detailed
|
|
|
|
* in the LICENCE file provided within the distribution */
|
|
|
|
|
2012-09-20 20:52:51 +00:00
|
|
|
#ifndef UPNPEVENTS_H_INCLUDED
|
|
|
|
#define UPNPEVENTS_H_INCLUDED
|
2011-09-28 19:13:20 +00:00
|
|
|
|
|
|
|
#include "config.h"
|
|
|
|
|
|
|
|
#ifdef ENABLE_EVENTS
|
|
|
|
enum subscriber_service_enum {
|
|
|
|
EWanCFG = 1,
|
|
|
|
EWanIPC,
|
|
|
|
#ifdef ENABLE_L3F_SERVICE
|
|
|
|
EL3F,
|
|
|
|
#endif
|
|
|
|
#ifdef ENABLE_6FC_SERVICE
|
|
|
|
E6FC,
|
|
|
|
#endif
|
|
|
|
#ifdef ENABLE_DP_SERVICE
|
|
|
|
EDP,
|
|
|
|
#endif
|
|
|
|
};
|
|
|
|
|
|
|
|
void
|
|
|
|
upnp_event_var_change_notify(enum subscriber_service_enum service);
|
|
|
|
|
|
|
|
const char *
|
|
|
|
upnpevents_addSubscriber(const char * eventurl,
|
|
|
|
const char * callback, int callbacklen,
|
|
|
|
int timeout);
|
|
|
|
|
|
|
|
int
|
|
|
|
upnpevents_removeSubscriber(const char * sid, int sidlen);
|
|
|
|
|
2015-12-12 00:29:32 +00:00
|
|
|
const char *
|
|
|
|
upnpevents_renewSubscription(const char * sid, int sidlen, int timeout);
|
2011-09-28 19:13:20 +00:00
|
|
|
|
|
|
|
void upnpevents_selectfds(fd_set *readset, fd_set *writeset, int * max_fd);
|
|
|
|
void upnpevents_processfds(fd_set *readset, fd_set *writeset);
|
|
|
|
|
|
|
|
#ifdef USE_MINIUPNPDCTL
|
|
|
|
void write_events_details(int s);
|
|
|
|
#endif
|
|
|
|
|
|
|
|
#endif
|
|
|
|
#endif
|