add cleanup method to event consumer

This commit is contained in:
Anthony Minessale
2013-01-29 09:34:23 -06:00
parent 4319bc8bd9
commit 1e22ba2ba5
2 changed files with 36 additions and 1 deletions
+2
View File
@@ -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