add bind method to EventConsumer takes same args as constructor to bind more events to an existing consumer

This commit is contained in:
Anthony Minessale
2010-05-10 13:06:22 -05:00
parent cf7af1f99b
commit a7f74af7d0
25 changed files with 13598 additions and 8051 deletions
+2 -2
View File
@@ -170,12 +170,12 @@ SWITCH_DECLARE(void) consoleCleanLog(char *msg);
public:
switch_queue_t *events;
switch_event_types_t e_event_id;
switch_event_node_t *node;
char *e_callback;
char *e_subclass_name;
char *e_cb_arg;
SWITCH_DECLARE_CONSTRUCTOR EventConsumer(const char *event_name, const char *subclass_name = "");
SWITCH_DECLARE_CONSTRUCTOR EventConsumer(const char *event_name = NULL, const char *subclass_name = "");
SWITCH_DECLARE_CONSTRUCTOR ~ EventConsumer();
SWITCH_DECLARE(int) bind(const char *event_name, const char *subclass_name = "");
SWITCH_DECLARE(Event *) pop(int block = 0);
};