userlibandfileserver/fileserver/shostmassstorage/shared/msgservice.h
changeset 9 96e5fb8b040d
equal deleted inserted replaced
-1:000000000000 9:96e5fb8b040d
       
     1 // Copyright (c) 2008-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 // Shared message service definitions 
       
    15 // 
       
    16 //
       
    17 
       
    18 /**
       
    19  @file
       
    20  @internalTechnology
       
    21 */
       
    22 
       
    23 #ifndef __HOSTUSBMSMSGSERVICE_H__
       
    24 #define __HOSTUSBMSMSGSERVICE_H__
       
    25 
       
    26 /**
       
    27 Package structure for a Read or Write request
       
    28 */
       
    29 struct TReadWrite
       
    30     {
       
    31     /** position */
       
    32 	TInt64 iPos;
       
    33     /** Length */
       
    34 	TInt iLen;
       
    35     };
       
    36 
       
    37 
       
    38 const TInt KUsbHostMsSrvMajorVersionNumber = 1;
       
    39 const TInt KUsbHostMsSrvMinorVersionNumber = 0;
       
    40 const TInt KUsbHostMsSrvBuildVersionNumber = 0;
       
    41 
       
    42 _LIT(KUsbHostMsServerName, "usbhostmssrv");
       
    43 
       
    44 /** Types of requests Host USB mass storage file extention and MM can make */
       
    45 enum TUsbHostMsReqType
       
    46 	{
       
    47 	EUsbHostMsRegisterInterface,	// Adds the mass storage device to the server
       
    48 	EUsbHostMsInitialiseInterface,	// Initialises the interface with the transport and setsup async call for GetMaxLun
       
    49 	EUsbHostMsUnRegisterInterface,	// Removes the mass storage device from the server
       
    50 	EUsbHostMsFinalCleanup,	// Called after unregistering the interface to cleanup any final bits in the session
       
    51 	EUsbHostMsGetNumLun,	// Gets the maximum lun for found in the MS device
       
    52 	EUsbHostMsRegisterLun,	// Opens a subsession and registers the LunId
       
    53 	EUsbHostMsUnRegisterLun,// Closes the subsession
       
    54 	EUsbHostMsShutdown,		// Shuts down the server
       
    55 	EUsbHostMsNotifyChange,	// Registers with MSC to get any media change notifications
       
    56 	EUsbHostMsSuspendLun,	// Requests MSC to suspend the logical unit and registers with MSC to invoke when resumed
       
    57 	EUsbHostMsCapacity,		// Get the logical unit or device capacity
       
    58 	EUsbHostMsRead,			// Do a read on the logical unit or device
       
    59 	EUsbHostMsWrite,		// Do a write to the logical unit or device
       
    60     EUsbHostMsErase,        // Erase an area on the logical unit or device
       
    61     EUsbHostMsForceRemount, // Force a remount of the drive
       
    62 	EUsbHostMsCancelChangeNotifier, // Cancel the media change notifier
       
    63 	EUsbHostMsLast		    // This should always be at the end of the enum
       
    64 	};
       
    65 
       
    66 #endif //__HOSTUSBMSMSGSERVICE_H__