11 #ifndef _SIPXEVENTDISPATCHER_H_ 12 #define _SIPXEVENTDISPATCHER_H_ 16 #include "os/OsServerTask.h" 19 #include "utl/UtlHashMap.h" 20 #include "os/OsRWMutex.h" 102 #endif // _SIPXEVENTDISPATCHER_H_ bool removeListener(SIPX_EVENT_CALLBACK_PROC pCallbackProc, void *pUserData)
Definition: SipXEventDispatcher.cpp:103
UtlBoolean handleMessage(OsMsg &rMsg)
Implementation of OsServerTask's pure virtual method.
Definition: SipXEventDispatcher.cpp:57
virtual ~SipXEventDispatcher(void)
Definition: SipXEventDispatcher.cpp:48
SipXEventDispatcher(SIPX_INST hInst)
Definition: SipXEventDispatcher.cpp:38
The SipXEventDispatcher adds a listener to sipXtapi and then redispatches all of the sipXtapi events ...
Definition: SipXEventDispatcher.h:62
void removeAllListeners()
Definition: SipXEventDispatcher.cpp:136
UtlHashMap mListeners
Definition: SipXEventDispatcher.h:98
SIPX_EVENT_CALLBACK_PROC pCallbackProc
Definition: SipXEventDispatcher.h:31
sipXtapi event declarations
bool(SIPX_CALLING_CONVENTION * SIPX_EVENT_CALLBACK_PROC)(SIPX_EVENT_CATEGORY category, void *pInfo, void *pUserData)
Signature for event callback/observer.
Definition: sipXtapiEvents.h:145
SIPX_INST mhInst
Definition: SipXEventDispatcher.h:97
SIPX_EVENT_CATEGORY
Enum with all of the possible event types.
Definition: sipXtapiEvents.h:54
static bool SIPX_CALLING_CONVENTION EventCallBack(SIPX_EVENT_CATEGORY category, void *pInfo, void *pUserData)
Definition: SipXEventDispatcher.cpp:208
#define SIPX_CALLING_CONVENTION
The SIPX_CALLING_CONVENTION define controls the default calling convention.
Definition: sipXtapi.h:57
void serviceListeners(SIPX_EVENT_CATEGORY category, void *pInfo)
Definition: SipXEventDispatcher.cpp:154
bool addListener(SIPX_EVENT_CALLBACK_PROC pCallbackProc, void *pUserData)
Definition: SipXEventDispatcher.cpp:86
OsRWMutex mListenerLock
Definition: SipXEventDispatcher.h:99
void * pUserData
Definition: SipXEventDispatcher.h:32
Definition: SipXEventDispatcher.h:28
void * SIPX_INST
The SIPX_INST handle represents an instance of a user agent.
Definition: sipXtapi.h:811
SIPX_INST hInst
Definition: SipXEventDispatcher.h:30
sipXtapi main API declarations
void setInstanceHandle(SIPX_INST hNew)
Definition: SipXEventDispatcher.cpp:202