os/kernelhwsrv/userlibandfileserver/fileserver/shostmassstorage/client/rusbhostmsdevice.h
First public contribution.
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".
8 // Initial Contributors:
9 // Nokia Corporation - initial contribution.
15 // WARNING: This file contains some APIs which are internal and are subject
16 // to change without notice. Such APIs should therefore not be used
17 // outside the Kernel and Hardware Services package.
25 #ifndef RUSBHOSTMSDEVICE_H
26 #define RUSBHOSTMSDEVICE_H
31 struct TMassStorageUnitInfo
39 Creates a session over which a USB device mass storage interface can be added/removed
41 class RUsbHostMsDevice : public RSessionBase
44 IMPORT_C RUsbHostMsDevice();
45 IMPORT_C void Add(const THostMassStorageConfig& aConfig, TRequestStatus& aStatus);
46 IMPORT_C void Remove();
47 IMPORT_C TInt GetNumLun(TUint32& aNumLuns);
48 IMPORT_C TInt MountLun(TUint32 aLunId, TInt aDriveNum);
49 IMPORT_C TInt DismountLun(TInt aDriveNum);
52 TVersion Version() const;
55 #endif // RUSBHOSTMSDEVICE_H