usbmgmt/usbmgr/host/fdf/production/server/public/fdfapi.h
changeset 0 c9bc50fca66e
child 15 f92a4f87e424
equal deleted inserted replaced
-1:000000000000 0:c9bc50fca66e
       
     1 /*
       
     2 * Copyright (c) 2007-2009 Nokia Corporation and/or its subsidiary(-ies).
       
     3 * All rights reserved.
       
     4 * This component and the accompanying materials are made available
       
     5 * under the terms of "Eclipse Public License v1.0"
       
     6 * which accompanies this distribution, and is available
       
     7 * at the URL "http://www.eclipse.org/legal/epl-v10.html".
       
     8 *
       
     9 * Initial Contributors:
       
    10 * Nokia Corporation - initial contribution.
       
    11 *
       
    12 * Contributors:
       
    13 *
       
    14 * Description:
       
    15 *
       
    16 */
       
    17 
       
    18 /**
       
    19  @file
       
    20  @internalComponent
       
    21 */
       
    22 
       
    23 #ifndef FDFAPI_H
       
    24 #define FDFAPI_H
       
    25 
       
    26 #include <e32base.h>
       
    27 
       
    28 #ifdef __OVER_DUMMYUSBDI__
       
    29 const TUint32 KUsbFdfTUint = 0x10282B50;
       
    30 _LIT(KUsbFdfImg, "fdf_over_dummyusbdi.exe");
       
    31 #else
       
    32 const TUint32 KUsbFdfTUint = 0x10282B48;
       
    33 _LIT(KUsbFdfImg, "fdf.exe");
       
    34 #endif
       
    35 
       
    36 const TUid KUsbFdfUid = {KUsbFdfTUint};
       
    37 
       
    38 _LIT(KUsbFdfServerName, "!FdfSrv");
       
    39 
       
    40 /** Version numbers. */
       
    41 const TInt8 KUsbFdfSrvMajorVersionNumber = 1;
       
    42 const TInt8 KUsbFdfSrvMinorVersionNumber = 1;
       
    43 const TInt16 KUsbFdfSrvBuildNumber = 0;
       
    44 
       
    45 /** IPC messages supported by the server. */
       
    46 enum
       
    47 	{
       
    48 	EUsbFdfSrvEnableDriverLoading										= 0,
       
    49 	EUsbFdfSrvDisableDriverLoading										= 1,
       
    50 	EUsbFdfSrvNotifyDeviceEvent											= 2,
       
    51 	EUsbFdfSrvNotifyDeviceEventCancel									= 3,
       
    52 	EUsbFdfSrvNotifyDevmonEvent											= 4,
       
    53 	EUsbFdfSrvNotifyDevmonEventCancel									= 5,
       
    54 	EUsbFdfSrvGetSingleSupportedLanguageOrNumberOfSupportedLanguages	= 6,
       
    55 	EUsbFdfSrvGetSupportedLanguages										= 7,
       
    56 	EUsbFdfSrvGetManufacturerStringDescriptor							= 8,
       
    57 	EUsbFdfSrvGetProductStringDescriptor								= 9,
       
    58 	EUsbFdfSrvGetOtgDescriptor                                          = 10,
       
    59 	EUsbFdfSrvDbgFailNext												= 11,
       
    60 	EUsbFdfSrvDbgAlloc													= 12,
       
    61 	};
       
    62 
       
    63 /** Panic codes which which the server panics an offending client. */
       
    64 enum
       
    65 	{
       
    66 	EBadIpc									= 0,
       
    67 	ENotifyDeviceEventAlreadyOutstanding	= 1,
       
    68 	ENotifyDevmonEventAlreadyOutstanding	= 2,
       
    69 	EBadNotifyDeviceEventData				= 3,
       
    70 	EBadNotifyDevmonEventData				= 4,
       
    71 	};
       
    72 
       
    73 #endif // FDFAPI_H