equal
deleted
inserted
replaced
1 // Copyright (c) 2004-2009 Nokia Corporation and/or its subsidiary(-ies). |
1 // Copyright (c) 2004-2010 Nokia Corporation and/or its subsidiary(-ies). |
2 // All rights reserved. |
2 // All rights reserved. |
3 // This component and the accompanying materials are made available |
3 // This component and the accompanying materials are made available |
4 // under the terms of the License "Eclipse Public License v1.0" |
4 // under the terms of the License "Eclipse Public License v1.0" |
5 // which accompanies this distribution, and is available |
5 // which accompanies this distribution, and is available |
6 // at the URL "http://www.eclipse.org/legal/epl-v10.html". |
6 // at the URL "http://www.eclipse.org/legal/epl-v10.html". |
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__ |