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