author | hgs |
Wed, 20 Oct 2010 13:58:28 +0100 | |
changeset 293 | 0659d0e1a03c |
parent 134 | 95847726fe57 |
child 257 | 3e88ff8f41d5 |
permissions | -rw-r--r-- |
0 | 1 |
// Copyright (c) 1995-2009 Nokia Corporation and/or its subsidiary(-ies). |
2 |
// All rights reserved. |
|
3 |
// This component and the accompanying materials are made available |
|
4 |
// under the terms of the License "Eclipse Public License v1.0" |
|
5 |
// which accompanies this distribution, and is available |
|
6 |
// at the URL "http://www.eclipse.org/legal/epl-v10.html". |
|
7 |
// |
|
8 |
// Initial Contributors: |
|
9 |
// Nokia Corporation - initial contribution. |
|
10 |
// |
|
11 |
// Contributors: |
|
12 |
// |
|
13 |
// Description: |
|
14 |
// f32\sfsrv\cl_plugin.cpp |
|
15 |
// |
|
16 |
// |
|
17 |
||
18 |
#include "cl_std.h" |
|
19 |
||
134 | 20 |
#ifdef OST_TRACE_COMPILER_IN_USE |
21 |
#include "cl_pluginTraces.h" |
|
22 |
#endif |
|
23 |
||
0 | 24 |
|
25 |
EXPORT_C TInt RFs::AddPlugin(const TDesC& aFileName) const |
|
26 |
/** |
|
27 |
@internalTechnology |
|
28 |
||
29 |
Loads a specified Plugin. |
|
30 |
||
31 |
@param aFileName The file name of the plugin |
|
32 |
||
33 |
@return KErrNone, if successful; otherwise one of the other system wide error codes. |
|
34 |
||
35 |
@capability DiskAdmin |
|
36 |
*/ |
|
37 |
{ |
|
134 | 38 |
OstTrace1(TRACE_BORDER, EFSRV_EFSADDPLUGIN, "sess %x", Handle()); |
39 |
OstTraceData(TRACE_BORDER, EFSRV_EFSADDPLUGIN_EFILENAME, "FileName %S", aFileName.Ptr(), aFileName.Length()<<1); |
|
0 | 40 |
|
41 |
RLoader loader; |
|
42 |
TInt r = loader.Connect(); |
|
43 |
if (r==KErrNone) |
|
44 |
{ |
|
45 |
r = loader.SendReceive(ELoadFSPlugin, TIpcArgs(0, &aFileName, 0)); |
|
46 |
loader.Close(); |
|
47 |
} |
|
48 |
||
134 | 49 |
OstTrace1(TRACE_BORDER, EFSRV_EFSADDPLUGINRETURN, "r %d", r); |
50 |
||
0 | 51 |
return r; |
52 |
} |
|
53 |
||
54 |
EXPORT_C TInt RFs::RemovePlugin(const TDesC& aPluginName) const |
|
55 |
/** |
|
56 |
@internalTechnology |
|
57 |
||
58 |
Removes the specified plugin. |
|
59 |
||
60 |
@param aPluginName The full name of the plugin to be removed. |
|
61 |
||
62 |
@return KErrNone, if successful; |
|
63 |
KErrNotFound, if aPluginName is not found; |
|
64 |
otrherwise one of the other system-wide error codes. |
|
65 |
||
66 |
@capability DiskAdmin |
|
67 |
*/ |
|
68 |
{ |
|
134 | 69 |
OstTrace1(TRACE_BORDER, EFSRV_EFSREMOVEPLUGIN, "sess %x", Handle()); |
70 |
OstTraceData(TRACE_BORDER, EFSRV_EFSREMOVEPLUGIN_EPLUGINNAME, "PluginName %S", aPluginName.Ptr(), aPluginName.Length()<<1); |
|
0 | 71 |
|
72 |
TInt r = SendReceive(EFsRemovePlugin,TIpcArgs(&aPluginName)); |
|
73 |
||
134 | 74 |
OstTrace1(TRACE_BORDER, EFSRV_EFSREMOVEPLUGINRETURN, "r %d", r); |
75 |
||
0 | 76 |
return r; |
77 |
} |
|
78 |
||
79 |
EXPORT_C TInt RFs::MountPlugin(const TDesC& aPluginName) const |
|
80 |
/** |
|
81 |
@internalTechnology |
|
82 |
||
83 |
Mounts a specified plugin. |
|
84 |
||
85 |
Note that this API uses unique position of the plugin. |
|
86 |
||
87 |
This overload passes KPluginAutoAttach for the drive parameter |
|
88 |
which mounts on all of the drives specified as supported by the plugin. |
|
89 |
||
90 |
Note - Plugins cannot be mounted on demand paged drives. |
|
91 |
KErrNone is returned so long as it has been able to mount on |
|
92 |
at least one drive; otherwise KErrNotSupported. |
|
93 |
||
94 |
@param aPluginName The fullname of the plugin, as returned from |
|
95 |
a call to PluginName(). |
|
96 |
||
97 |
@return KErrNone if successful; |
|
98 |
KErrNotFound, if the plugin cannot be found; |
|
99 |
otherwise one of the other system-wide error codes. |
|
100 |
||
101 |
@see RFs::PluginName |
|
102 |
||
103 |
@capability DiskAdmin |
|
104 |
*/ |
|
105 |
{ |
|
134 | 106 |
OstTrace1(TRACE_BORDER, EFSRV_EFSMOUNTPLUGIN1, "sess %x", Handle()); |
107 |
OstTraceData(TRACE_BORDER, EFSRV_EFSMOUNTPLUGIN1_EPLUGINNAME, "PluginName %S", aPluginName.Ptr(), aPluginName.Length()<<1); |
|
0 | 108 |
|
109 |
TInt r = SendReceive(EFsMountPlugin,TIpcArgs(&aPluginName,KPluginAutoAttach,KPluginAutoLocate)); |
|
110 |
||
134 | 111 |
OstTrace1(TRACE_BORDER, EFSRV_EFSMOUNTPLUGIN1RETURN, "r %d", r); |
112 |
||
0 | 113 |
return r; |
114 |
} |
|
115 |
||
116 |
EXPORT_C TInt RFs::MountPlugin(const TDesC& aPluginName,TInt aDrive) const |
|
117 |
/** |
|
118 |
@internalTechnology |
|
119 |
||
120 |
Mounts a specified plugin specifying the drive plugin will support. |
|
121 |
||
122 |
@param aPluginName The fullname of the plugin, as returned from |
|
123 |
a call to PluginName(). |
|
124 |
||
125 |
@param aDrive If the mounted plugin is a version2 plugin, then in order to |
|
126 |
mount on drive z, KPluginMountDriveZ should be passed as a parameter. |
|
127 |
For all other drive letters use values 0 to 24 for A to Y. |
|
128 |
Version1 plugins cannot mount on Z drive. |
|
129 |
To let the plugin decide on which drives to mount, use KPluginAutoAttach. |
|
130 |
||
131 |
Plugins cannot be mounted on demand paged drives. If KPluginAutoAttach is passed |
|
132 |
in, it will return KErrNone so long as it has been able to mount on at |
|
133 |
least one drive; otherwise KErrNotSupported. |
|
134 |
||
135 |
@return KErrNone if successful; |
|
136 |
KErrNotFound, if the plugin cannot be found; |
|
137 |
otherwise one of the other system-wide error codes. |
|
138 |
||
139 |
@see RFs::PluginName |
|
140 |
||
141 |
@capability DiskAdmin |
|
142 |
*/ |
|
143 |
{ |
|
134 | 144 |
OstTraceExt2(TRACE_BORDER, EFSRV_EFSMOUNTPLUGIN2, "sess %x aDrive %d", (TUint) Handle(), (TUint) aDrive); |
145 |
OstTraceData(TRACE_BORDER, EFSRV_EFSMOUNTPLUGIN2_EPLUGINNAME, "PluginName %S", aPluginName.Ptr(), aPluginName.Length()<<1); |
|
0 | 146 |
|
147 |
TInt r = SendReceive(EFsMountPlugin,TIpcArgs(&aPluginName,aDrive,KPluginAutoLocate)); |
|
148 |
||
134 | 149 |
OstTrace1(TRACE_BORDER, EFSRV_EFSMOUNTPLUGIN2RETURN, "r %d", r); |
150 |
||
0 | 151 |
return r; |
152 |
} |
|
153 |
||
154 |
EXPORT_C TInt RFs::MountPlugin(const TDesC& aPluginName,TInt aDrive, TInt aPos) const |
|
155 |
/** |
|
156 |
@internalTechnology |
|
157 |
||
158 |
Mounts a specified plugin using absolute position and a specific drive |
|
159 |
||
160 |
@param aPluginName The fullname of the plugin, as returned from |
|
161 |
a call to PluginName(). |
|
162 |
||
163 |
@param aDrive If the mounted plugin is a version2 plugin, then in order to |
|
164 |
mount on drive z, KPluginMountDriveZ should be passed as a parameter. |
|
165 |
For all other drive letters use values 0 to 24 for A to Y. |
|
166 |
Version1 plugins cannot mount on Z drive. |
|
167 |
To let the plugin decide on which drives to mount, use KPluginAutoAttach. |
|
168 |
||
169 |
Plugins cannot be mounted on demand paged drives. If KPluginAutoAttach is passed |
|
170 |
in, it will return KErrNone so long as it has been able to mount on at |
|
171 |
least one drive; otherwise KErrNotSupported. |
|
172 |
||
173 |
@param aPos The position at which the plugin is to be mounted within the internal array of plugins. |
|
174 |
||
175 |
Plugins wishing to be mounted using their CFsPlugin::iUniquePos |
|
176 |
should use MountPlugin(TDesC&,TInt) or MountPlugin(TDesC&) |
|
177 |
||
178 |
If there is already a plugin at aPos then this plugin is inserted |
|
179 |
into aPos and other plugins are shifted downwards. |
|
180 |
||
181 |
@return KErrNone if successful; |
|
182 |
KErrNotFound, if the plugin cannot be found; |
|
183 |
otherwise one of the other system-wide error codes. |
|
184 |
||
185 |
@see RFs::PluginName |
|
186 |
@see RFs::MountPlugin(const TDesC& aPluginName,TInt aDrive) |
|
187 |
@capability DiskAdmin |
|
188 |
*/ |
|
189 |
{ |
|
134 | 190 |
OstTraceExt3(TRACE_BORDER, EFSRV_EFSMOUNTPLUGIN3, "sess %x aDrive %d aPos %x", (TUint) Handle(), (TUint) aDrive, (TUint) aPos); |
191 |
OstTraceData(TRACE_BORDER, EFSRV_EFSMOUNTPLUGIN3_EPLUGINNAME, "PluginName %S", aPluginName.Ptr(), aPluginName.Length()<<1); |
|
0 | 192 |
|
193 |
TInt r = SendReceive(EFsMountPlugin,TIpcArgs(&aPluginName,aDrive,aPos)); |
|
194 |
||
134 | 195 |
OstTrace1(TRACE_BORDER, EFSRV_EFSMOUNTPLUGIN3RETURN, "r %d", r); |
196 |
||
0 | 197 |
return r; |
198 |
} |
|
199 |
||
200 |
EXPORT_C TInt RFs::DismountPlugin(const TDesC& aPluginName) const |
|
201 |
/** |
|
202 |
@internalTechnology |
|
203 |
||
204 |
Dismounts the specified plugin from all drives on which it is mounted. |
|
205 |
||
206 |
@param aPluginName The fullname of the plugin, as returned from |
|
207 |
a call to PluginName(). |
|
208 |
||
209 |
@return KErrNone if successful; |
|
210 |
KErrNotFound, if the plugin cannot be found; |
|
211 |
otherwise one of the other system-wide error codes. |
|
212 |
||
213 |
@see RFs::PluginName |
|
214 |
@capability DiskAdmin |
|
215 |
*/ |
|
216 |
{ |
|
134 | 217 |
OstTrace1(TRACE_BORDER, EFSRV_EFSDISMOUNTPLUGIN1, "sess %x", Handle()); |
218 |
OstTraceData(TRACE_BORDER, EFSRV_EFSDISMOUNTPLUGIN1_EPLUGINNAME, "PluginName %S", aPluginName.Ptr(), aPluginName.Length()<<1); |
|
0 | 219 |
|
220 |
TInt r = SendReceive(EFsDismountPlugin,TIpcArgs(&aPluginName,KPluginAutoAttach,KPluginAutoLocate)); |
|
221 |
||
134 | 222 |
OstTrace1(TRACE_BORDER, EFSRV_EFSDISMOUNTPLUGIN1RETURN, "r %d", r); |
223 |
||
0 | 224 |
return r; |
225 |
} |
|
226 |
||
227 |
||
228 |
EXPORT_C TInt RFs::DismountPlugin(const TDesC& aPluginName,TInt aDrive) const |
|
229 |
/** |
|
230 |
@internalTechnology |
|
231 |
||
232 |
Dismounts the specified plugin. |
|
233 |
||
234 |
@param aPluginName The fullname of the plugin, as returned from |
|
235 |
a call to PluginName(). |
|
236 |
||
237 |
@param aDrive The drive on which the plugin is to be dismounted; |
|
238 |
If the mounted plugin is a version2 plugin, then in order to |
|
239 |
dismount drive z, KPluginMountDriveZ should be passed as a parameter. |
|
240 |
For all other drive letters use values 0 to 24 for A to Y. |
|
241 |
Version1 plugins cannot mount on Z drive. |
|
242 |
||
243 |
||
244 |
@return KErrNone if successful; |
|
245 |
KErrNotFound, if the plugin cannot be found; |
|
246 |
otherwise one of the other system-wide error codes. |
|
247 |
||
248 |
@see RFs::PluginName |
|
249 |
@capability DiskAdmin |
|
250 |
*/ |
|
251 |
{ |
|
134 | 252 |
OstTraceExt2(TRACE_BORDER, EFSRV_EFSDISMOUNTPLUGIN2, "sess %x aDrive %d", (TUint) Handle(), (TUint) aDrive); |
253 |
OstTraceData(TRACE_BORDER, EFSRV_EFSDISMOUNTPLUGIN2_EPLUGINNAME, "PluginName %S", aPluginName.Ptr(), aPluginName.Length()<<1); |
|
0 | 254 |
|
255 |
TInt r = SendReceive(EFsDismountPlugin,TIpcArgs(&aPluginName,aDrive,KPluginAutoLocate)); |
|
256 |
||
134 | 257 |
OstTrace1(TRACE_BORDER, EFSRV_EFSDISMOUNTPLUGIN2RETURN, "r %d", r); |
258 |
||
0 | 259 |
return r; |
260 |
} |
|
261 |
||
262 |
EXPORT_C TInt RFs::DismountPlugin(const TDesC& aPluginName,TInt aDrive,TInt aPos) const |
|
263 |
/** |
|
264 |
@internalTechnology |
|
265 |
||
266 |
Dismounts the specified plugin. |
|
267 |
||
268 |
@param aPluginName The fullname of the plugin, as returned from |
|
269 |
a call to PluginName(). |
|
270 |
||
271 |
@param aDrive If the mounted plugin is a version2 plugin, then in order to |
|
272 |
dismount drive z, KPluginMountDriveZ should be passed as a parameter. |
|
273 |
For all other drive letters use values 0 to 24 for A to Y. |
|
274 |
Version1 plugins cannot mount on Z drive. |
|
275 |
||
276 |
@param aPos The position at which the plugin is located in the internal |
|
277 |
array of plugins. |
|
278 |
To automatically locate the position of the plugin use |
|
279 |
DismountPlugin::(TDesC&,TInt) or |
|
280 |
DismountPlugin::(TDesC&) |
|
281 |
||
282 |
@return KErrNone if successful; |
|
283 |
KErrNotFound, if the plugin cannot be found; |
|
284 |
otherwise one of the other system-wide error codes. |
|
285 |
||
286 |
@see RFs::PluginName |
|
287 |
@capability DiskAdmin |
|
288 |
*/ |
|
289 |
{ |
|
134 | 290 |
OstTraceExt3(TRACE_BORDER, EFSRV_EFSDISMOUNTPLUGIN3, "sess %x aDrive %d aPos %x", (TUint) Handle(), (TUint) aDrive, (TUint) aPos); |
291 |
OstTraceData(TRACE_BORDER, EFSRV_EFSDISMOUNTPLUGIN3_EPLUGINNAME, "PluginName %S", aPluginName.Ptr(), aPluginName.Length()<<1); |
|
0 | 292 |
|
293 |
TInt r = SendReceive(EFsDismountPlugin,TIpcArgs(&aPluginName,aDrive,aPos)); |
|
294 |
||
134 | 295 |
OstTrace1(TRACE_BORDER, EFSRV_EFSDISMOUNTPLUGIN3RETURN, "r %d", r); |
296 |
||
0 | 297 |
return r; |
298 |
} |
|
299 |
||
300 |
||
301 |
EXPORT_C TInt RFs::PluginName(TDes& aPluginName,TInt aDrive,TInt aPos) |
|
302 |
/** |
|
303 |
@internalTechnology |
|
304 |
||
305 |
Gets the name of the plugin on the specified drive at the specified position |
|
306 |
in the plugin hierarchy. |
|
307 |
||
308 |
@param aPluginName On successful return, contains the name of the plugin. |
|
309 |
@param aDrive The drive for which the plugin name is required. |
|
310 |
@param aPos The position of the plugin in the plugin hierarchy. |
|
311 |
||
312 |
@return KErrNone, if successful; |
|
313 |
KErrNotFound if the plugin name is not found; |
|
314 |
*/ |
|
315 |
{ |
|
134 | 316 |
OstTraceExt3(TRACE_BORDER, EFSRV_EFSPLUGINNAME, "sess %x aDrive %d aPos %x", (TUint) Handle(), (TUint) aDrive, (TUint) aPos); |
0 | 317 |
|
318 |
TInt r = SendReceive(EFsPluginName,TIpcArgs(&aPluginName,aDrive,aPos)); |
|
319 |
||
134 | 320 |
OstTraceData(TRACE_BORDER, EFSRV_EFSPLUGINNAME_EPLUGINNAME, "PluginName %S", aPluginName.Ptr(), aPluginName.Length()<<1); |
321 |
||
322 |
OstTrace1(TRACE_BORDER, EFSRV_EFSPLUGINNAMERETURN, "r %d", r); |
|
323 |
||
0 | 324 |
return r; |
325 |
} |
|
326 |
||
327 |
EXPORT_C TInt RPlugin::Open(RFs& aFs, TInt aPos) |
|
328 |
/** |
|
329 |
@internalTechnology |
|
330 |
||
331 |
Opens a plugin for userside engine conn |
|
332 |
||
333 |
@param aFs: File server session |
|
334 |
@prama aPos: Unique position of the plugin |
|
335 |
@return KErrNotFound if it didn't find the plugin, else KErrNone |
|
336 |
||
337 |
*/ |
|
338 |
{ |
|
134 | 339 |
OstTraceExt2(TRACE_BORDER, EFSRV_EPLUGINOPEN, "sess %x aPos %x", (TUint) aFs.Handle(), (TUint) aPos); |
0 | 340 |
|
341 |
TInt r = CreateSubSession(aFs,EFsPluginOpen,TIpcArgs(aPos,0,0)); |
|
342 |
||
134 | 343 |
OstTraceExt2(TRACE_BORDER, EFSRV_EPLUGINOPENRETURN, "r %d subs %x", (TUint) r, (TUint) SubSessionHandle()); |
344 |
||
0 | 345 |
return r; |
346 |
} |
|
347 |
||
348 |
EXPORT_C void RPlugin::Close() |
|
349 |
/** |
|
350 |
@internalTechnology |
|
351 |
||
352 |
Closes a plugin |
|
353 |
*/ |
|
354 |
{ |
|
134 | 355 |
OstTraceExt2(TRACE_BORDER, EFSRV_EPLUGINCLOSE, "sess %x subs %x", (TUint) Session().Handle(), (TUint) SubSessionHandle()); |
0 | 356 |
|
357 |
CloseSubSession(EFsPluginSubClose); |
|
358 |
||
134 | 359 |
OstTrace0(TRACE_BORDER, EFSRV_EPLUGINCLOSERETURN, ""); |
0 | 360 |
} |
361 |
||
362 |
EXPORT_C void RPlugin::DoRequest(TInt aReqNo, TRequestStatus& aStatus) const |
|
363 |
/** |
|
364 |
@internalTechnology |
|
365 |
||
366 |
Client requests a asynchronous operation |
|
367 |
||
368 |
@param aReqNo: Number of the request |
|
369 |
@param aStatus: status of the request |
|
370 |
*/ |
|
371 |
{ |
|
134 | 372 |
OstTraceExt4(TRACE_BORDER, EFSRV_EPLUGINDOREQUEST1, "sess %x subs %x aReqNo %d status %x", (TUint) Session().Handle(), (TUint) SubSessionHandle(), (TUint) aReqNo, (TUint) &aStatus); |
0 | 373 |
|
374 |
aStatus=KRequestPending; |
|
375 |
SendReceive(EFsPluginDoRequest, TIpcArgs(aReqNo, NULL, NULL), aStatus); |
|
376 |
||
134 | 377 |
OstTrace0(TRACE_BORDER, EFSRV_EPLUGINDOREQUEST1RETURN, ""); |
0 | 378 |
} |
379 |
||
380 |
EXPORT_C void RPlugin::DoRequest(TInt aReqNo, TRequestStatus& aStatus, TDes8& a1) const |
|
381 |
/** |
|
382 |
@internalTechnology |
|
383 |
||
384 |
Client requests a asynchronous operation |
|
385 |
||
386 |
@param aReqNo: Number of the request |
|
387 |
@param aStatus: status of the request |
|
388 |
@param a1: returning value from plugin |
|
389 |
*/ |
|
390 |
{ |
|
134 | 391 |
OstTraceExt5(TRACE_BORDER, EFSRV_EPLUGINDOREQUEST2, "sess %x subs %x aReqNo %d status %x a1 %x", (TUint) Session().Handle(), (TUint) SubSessionHandle(), (TUint) aReqNo, (TUint) &aStatus, (TUint) &a1); |
0 | 392 |
|
393 |
aStatus=KRequestPending; |
|
394 |
SendReceive(EFsPluginDoRequest, TIpcArgs(aReqNo, &a1, NULL), aStatus); |
|
395 |
||
134 | 396 |
OstTrace0(TRACE_BORDER, EFSRV_EPLUGINDOREQUEST2RETURN, ""); |
0 | 397 |
} |
398 |
||
399 |
EXPORT_C void RPlugin::DoRequest(TInt aReqNo, TRequestStatus& aStatus, TDes8& a1, TDes8& a2) const |
|
400 |
/** |
|
401 |
@internalTechnology |
|
402 |
||
403 |
@param aReqNo: Number of the request |
|
404 |
@param aStatus: status of the request |
|
405 |
@param a1: returning value from plugin |
|
406 |
@param a2: 2nd returning value from plugin |
|
407 |
*/ |
|
408 |
{ |
|
134 | 409 |
OstTraceExt5(TRACE_BORDER, EFSRV_EPLUGINDOREQUEST3, "sess %x subs %x aReqNo %d a1 %x a2 %x", (TUint) Session().Handle(), (TUint) SubSessionHandle(), (TUint) aReqNo, (TUint) &a1, (TUint) &a2); |
0 | 410 |
|
411 |
aStatus=KRequestPending; |
|
412 |
SendReceive(EFsPluginDoRequest, TIpcArgs(aReqNo, &a1, &a2), aStatus); |
|
413 |
||
134 | 414 |
OstTrace0(TRACE_BORDER, EFSRV_EPLUGINDOREQUEST3RETURN, ""); |
0 | 415 |
} |
416 |
||
417 |
EXPORT_C TInt RPlugin::DoControl(TInt aFunction) const |
|
418 |
/** |
|
419 |
@internalTechnology |
|
420 |
||
421 |
Client requests a synchronous operation |
|
422 |
||
423 |
@param aFunction: The operation to be handled |
|
424 |
*/ |
|
425 |
{ |
|
134 | 426 |
OstTraceExt3(TRACE_BORDER, EFSRV_EPLUGINDOCONTROL1, "sess %x subs %x aFunction %d", (TUint) Session().Handle(), (TUint) SubSessionHandle(), (TUint) aFunction); |
0 | 427 |
|
428 |
TInt r = SendReceive(EFsPluginDoControl,TIpcArgs(aFunction,0,0)); |
|
429 |
||
134 | 430 |
OstTrace1(TRACE_BORDER, EFSRV_EPLUGINDOCONTROL1RETURN, "r %d", r); |
431 |
||
0 | 432 |
return r; |
433 |
} |
|
434 |
||
435 |
EXPORT_C TInt RPlugin::DoControl(TInt aFunction, TDes8& a1) const |
|
436 |
/** |
|
437 |
@internalTechnology |
|
438 |
||
439 |
Client requests a synchronous operation |
|
440 |
||
441 |
@param aFunction: The operation to be handled |
|
36
538db54a451d
Revision: 201003
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
0
diff
changeset
|
442 |
@param a1: returned buffer from plugin on completion of the request |
0 | 443 |
*/ |
444 |
{ |
|
134 | 445 |
OstTraceExt4(TRACE_BORDER, EFSRV_EPLUGINDOCONTROL2, "sess %x subs %x aFunction %d a1 %x", (TUint) Session().Handle(), (TUint) SubSessionHandle(), (TUint) aFunction, (TUint) &a1); |
0 | 446 |
|
447 |
TInt r = SendReceive(EFsPluginDoControl,TIpcArgs(aFunction,&a1,0)); |
|
448 |
||
134 | 449 |
OstTrace1(TRACE_BORDER, EFSRV_EPLUGINDOCONTROL2RETURN, "r %d", r); |
450 |
||
0 | 451 |
return r; |
452 |
} |
|
453 |
||
454 |
EXPORT_C TInt RPlugin::DoControl(TInt aFunction, TDes8& a1, TDes8& a2) const |
|
455 |
/** |
|
456 |
@internalTechnology |
|
457 |
||
458 |
Client requests a synchronous operation |
|
459 |
||
460 |
@param aFunction: The operation to be handled |
|
36
538db54a451d
Revision: 201003
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
0
diff
changeset
|
461 |
@param a1: returned buffer from plugin on completion of the request |
538db54a451d
Revision: 201003
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
0
diff
changeset
|
462 |
@param a2: 2nd returned buffer from plugin on completion of the request |
0 | 463 |
*/ |
464 |
{ |
|
134 | 465 |
OstTraceExt5(TRACE_BORDER, EFSRV_EPLUGINDOCONTROL3, "sess %x subs %x aFunction %d a1 %x a2 %x", (TUint) Session().Handle(), (TUint) SubSessionHandle(), (TUint) aFunction, (TUint) &a1, (TUint) &a2); |
0 | 466 |
|
467 |
TInt r = SendReceive(EFsPluginDoControl,TIpcArgs(aFunction,&a1,&a2)); |
|
468 |
||
134 | 469 |
OstTrace1(TRACE_BORDER, EFSRV_EPLUGINDOCONTROL3RETURN, "r %d", r); |
470 |
||
0 | 471 |
return r; |
472 |
} |
|
473 |
||
474 |
EXPORT_C void RPlugin::DoCancel(TUint aReqMask) const |
|
475 |
/** |
|
476 |
@internalTechnology |
|
477 |
||
478 |
Cancels a request |
|
479 |
||
480 |
@param aReqMask: the bit mask for the operation to be cancelled |
|
481 |
*/ |
|
482 |
{ |
|
134 | 483 |
OstTraceExt3(TRACE_BORDER, EFSRV_EPLUGINDOCANCEL, "sess %x subs %x aReqMask %x", (TUint) Session().Handle(), (TUint) SubSessionHandle(), (TUint) aReqMask); |
0 | 484 |
|
485 |
SendReceive(EFsPluginDoCancel,TIpcArgs(KMaxTInt,aReqMask,0)); |
|
486 |
||
134 | 487 |
OstTrace0(TRACE_BORDER, EFSRV_EPLUGINDOCANCELRETURN, ""); |
0 | 488 |
} |
489 |