mirror of
https://github.com/signalwire/freeswitch.git
synced 2026-07-23 04:31:50 +00:00
add bind method to EventConsumer takes same args as constructor to bind more events to an existing consumer
This commit is contained in:
@@ -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);
|
||||
};
|
||||
|
||||
|
||||
Reference in New Issue
Block a user