mirror of
https://github.com/signalwire/freeswitch.git
synced 2026-07-12 23:31:50 +00:00
add EventConsumer obj to cpp
git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@8884 d0543943-73ff-0310-b7d9-9358b9ac24b2
This commit is contained in:
@@ -138,13 +138,17 @@ SWITCH_DECLARE(void) consoleCleanLog(char *msg);
|
||||
|
||||
class EventConsumer {
|
||||
protected:
|
||||
switch_memory_pool_t *pool;
|
||||
public:
|
||||
switch_queue_t *events;
|
||||
switch_event_types_t e_event_id;
|
||||
switch_event_node_t *node;
|
||||
char *e_callback;
|
||||
char *e_subclass_name;
|
||||
public:
|
||||
SWITCH_DECLARE_CONSTRUCTOR EventConsumer(switch_event_types_t event_id, const char *subclass_name = "", const char *callback = "event_consumer");
|
||||
char *e_cb_arg;
|
||||
SWITCH_DECLARE_CONSTRUCTOR EventConsumer(const char *event_name, const char *subclass_name = "");
|
||||
SWITCH_DECLARE_CONSTRUCTOR ~ EventConsumer();
|
||||
SWITCH_DECLARE(Event *) pop(int block = 0);
|
||||
};
|
||||
|
||||
class CoreSession {
|
||||
|
||||
Reference in New Issue
Block a user