mirror of
https://github.com/signalwire/freeswitch.git
synced 2026-07-23 12:42:02 +00:00
add cleanup method to event consumer
This commit is contained in:
@@ -178,6 +178,7 @@ SWITCH_DECLARE(bool) email(char *to, char *from, char *headers = NULL, char *bod
|
||||
class EventConsumer {
|
||||
protected:
|
||||
switch_memory_pool_t *pool;
|
||||
int ready;
|
||||
public:
|
||||
switch_queue_t *events;
|
||||
switch_event_types_t e_event_id;
|
||||
@@ -191,6 +192,7 @@ SWITCH_DECLARE(bool) email(char *to, char *from, char *headers = NULL, char *bod
|
||||
SWITCH_DECLARE_CONSTRUCTOR ~ EventConsumer();
|
||||
SWITCH_DECLARE(int) bind(const char *event_name, const char *subclass_name = "");
|
||||
SWITCH_DECLARE(Event *) pop(int block = 0, int timeout = 0);
|
||||
SWITCH_DECLARE(void) cleanup();
|
||||
};
|
||||
|
||||
#ifdef SWIG
|
||||
|
||||
Reference in New Issue
Block a user