14 // e32test\misc\int_svr_calls.cia |
14 // e32test\misc\int_svr_calls.cia |
15 // |
15 // |
16 // |
16 // |
17 |
17 |
18 #include <e32def.h> |
18 #include <e32def.h> |
|
19 #undef IMPORT_C |
|
20 #define IMPORT_C |
19 #undef EXPORT_C |
21 #undef EXPORT_C |
20 #define EXPORT_C |
22 #define EXPORT_C |
21 |
23 |
22 #define __GEN_USER_EXEC_CODE__ |
24 #define __GEN_USER_EXEC_CODE__ |
23 #include <e32svr.h> |
25 #include <e32svr.h> |
24 #include <u32exec.h> |
26 #include <u32exec.h> |
25 |
27 |
26 #undef EXPORT_C |
28 #undef EXPORT_C |
27 #define EXPORT_C __declspec(dllexport) |
29 #define EXPORT_C __declspec(dllexport) |
28 |
30 |
|
31 |
|
32 #ifdef __MARM__ |
29 // ripped from e32\euser\epoc\arm\uc_exec.cia |
33 // ripped from e32\euser\epoc\arm\uc_exec.cia |
30 |
34 |
31 __NAKED__ TInt Exec::SessionSend(TInt /*aHandle*/, TInt /*aFunction*/, TAny* /*aPtr*/, TRequestStatus* /*aStatus*/) |
35 __NAKED__ TInt Exec::SessionSend(TInt /*aHandle*/, TInt /*aFunction*/, TAny* /*aPtr*/, TRequestStatus* /*aStatus*/) |
32 // |
36 // |
33 // Send a blind message to the server. |
37 // Send a blind message to the server. |
71 |
75 |
72 EXPORT_C void SetSessionPtr(TInt aHandle, const TAny* aPtr) |
76 EXPORT_C void SetSessionPtr(TInt aHandle, const TAny* aPtr) |
73 { |
77 { |
74 Exec::SetSessionPtr(aHandle, aPtr); |
78 Exec::SetSessionPtr(aHandle, aPtr); |
75 } |
79 } |
|
80 #endif //__MARM__ |
|
81 |
|
82 #ifdef __X86__ |
|
83 // ripped from e32\euser\epoc\x86\uc_exec.cpp |
|
84 |
|
85 __NAKED__ TInt Exec::SessionSend(TInt /*aHandle*/, TInt /*aFunction*/, TAny* /*aPtr*/, TRequestStatus* /*aStatus*/) |
|
86 // |
|
87 // Send a blind message to the server. |
|
88 // |
|
89 { |
|
90 SLOW_EXEC4(EExecSessionSend); |
|
91 } |
|
92 |
|
93 __NAKED__ TInt Exec::SessionSendSync(TInt /*aHandle*/, TInt /*aFunction*/, TAny* /*aPtr*/, TRequestStatus* /*aStatus*/) |
|
94 // |
|
95 // Send a blind message to the server using thread's dedicated message slot. |
|
96 // |
|
97 { |
|
98 SLOW_EXEC4(EExecSessionSendSync); |
|
99 } |
|
100 |
|
101 EXPORT_C TInt SessionCreate(const TDesC8& aName, TInt aMsgSlots, const TSecurityPolicy* aPolicy, TInt aType) |
|
102 { |
|
103 RDebug::Printf("Exec: %08x %08x %08x %08x", &aName, aMsgSlots, aPolicy, aType); |
|
104 return Exec::SessionCreate(aName, aMsgSlots, aPolicy, aType); |
|
105 } |
|
106 |
|
107 EXPORT_C TInt SessionSend(TInt aHandle, TInt aFunction, TAny* aArgs, TRequestStatus* aStatus) |
|
108 { |
|
109 return Exec::SessionSend(aHandle, aFunction, aArgs, aStatus); |
|
110 } |
|
111 |
|
112 EXPORT_C TInt SessionSendSync(TInt aHandle, TInt aFunction, TAny* aArgs, TRequestStatus* aStatus) |
|
113 { |
|
114 return Exec::SessionSendSync(aHandle, aFunction, aArgs, aStatus); |
|
115 } |
|
116 |
|
117 EXPORT_C void SetSessionPtr(TInt aHandle, const TAny* aPtr) |
|
118 { |
|
119 Exec::SetSessionPtr(aHandle, aPtr); |
|
120 } |
|
121 #endif //__X86__ |