equal
deleted
inserted
replaced
25 TInt Create(DLogicalDevice* aDevice, DLogicalChannel* aChannel, DThread* aClient); |
25 TInt Create(DLogicalDevice* aDevice, DLogicalChannel* aChannel, DThread* aClient); |
26 ~DRM_DebugEventHandler(); |
26 ~DRM_DebugEventHandler(); |
27 TInt Start(); |
27 TInt Start(); |
28 TInt Stop(); |
28 TInt Stop(); |
29 |
29 |
30 inline void DRM_DebugEventHandler::LockDataAccess() |
30 inline void LockDataAccess(); |
31 { |
31 inline void ReleaseDataAccess(); |
32 Kern::SemaphoreWait(*iProtectionLock); |
|
33 } |
|
34 |
|
35 inline void DRM_DebugEventHandler::ReleaseDataAccess() |
|
36 { |
|
37 Kern::SemaphoreSignal(*iProtectionLock); |
|
38 } |
|
39 |
32 |
40 private: |
33 private: |
41 static TUint EventHandler(TKernelEvent aEvent, TAny* a1, TAny* a2, TAny* aThis); |
34 static TUint EventHandler(TKernelEvent aEvent, TAny* a1, TAny* a2, TAny* aThis); |
42 TUint HandleEvent(TKernelEvent aType, TAny* a1, TAny* a2); |
35 TUint HandleEvent(TKernelEvent aType, TAny* a1, TAny* a2); |
43 TBool HandleSpecificEvent(TKernelEvent aType, TAny* a1, TAny* a2); |
36 TBool HandleSpecificEvent(TKernelEvent aType, TAny* a1, TAny* a2); |
55 // typdef for functions which handle our specific events |
48 // typdef for functions which handle our specific events |
56 typedef TBool (DRM_DebugChannel::*eventHandler)(TAny* a1, TAny* a2); |
49 typedef TBool (DRM_DebugChannel::*eventHandler)(TAny* a1, TAny* a2); |
57 eventHandler iEventHandlers[EEventLimit]; |
50 eventHandler iEventHandlers[EEventLimit]; |
58 }; |
51 }; |
59 |
52 |
|
53 #include <rm_debug_eventhandler.inl> |
|
54 |
60 #endif //__RM_DEBUG_EVENTHANDLER_H__ |
55 #endif //__RM_DEBUG_EVENTHANDLER_H__ |