diff -r 000000000000 -r c9bc50fca66e usbmgmt/usbmgr/host/fdf/production/server/public/fdfapi.h --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/usbmgmt/usbmgr/host/fdf/production/server/public/fdfapi.h Tue Feb 02 02:02:59 2010 +0200 @@ -0,0 +1,73 @@ +/* +* Copyright (c) 2007-2009 Nokia Corporation and/or its subsidiary(-ies). +* All rights reserved. +* This component and the accompanying materials are made available +* under the terms of "Eclipse Public License v1.0" +* which accompanies this distribution, and is available +* at the URL "http://www.eclipse.org/legal/epl-v10.html". +* +* Initial Contributors: +* Nokia Corporation - initial contribution. +* +* Contributors: +* +* Description: +* +*/ + +/** + @file + @internalComponent +*/ + +#ifndef FDFAPI_H +#define FDFAPI_H + +#include + +#ifdef __OVER_DUMMYUSBDI__ +const TUint32 KUsbFdfTUint = 0x10282B50; +_LIT(KUsbFdfImg, "fdf_over_dummyusbdi.exe"); +#else +const TUint32 KUsbFdfTUint = 0x10282B48; +_LIT(KUsbFdfImg, "fdf.exe"); +#endif + +const TUid KUsbFdfUid = {KUsbFdfTUint}; + +_LIT(KUsbFdfServerName, "!FdfSrv"); + +/** Version numbers. */ +const TInt8 KUsbFdfSrvMajorVersionNumber = 1; +const TInt8 KUsbFdfSrvMinorVersionNumber = 1; +const TInt16 KUsbFdfSrvBuildNumber = 0; + +/** IPC messages supported by the server. */ +enum + { + EUsbFdfSrvEnableDriverLoading = 0, + EUsbFdfSrvDisableDriverLoading = 1, + EUsbFdfSrvNotifyDeviceEvent = 2, + EUsbFdfSrvNotifyDeviceEventCancel = 3, + EUsbFdfSrvNotifyDevmonEvent = 4, + EUsbFdfSrvNotifyDevmonEventCancel = 5, + EUsbFdfSrvGetSingleSupportedLanguageOrNumberOfSupportedLanguages = 6, + EUsbFdfSrvGetSupportedLanguages = 7, + EUsbFdfSrvGetManufacturerStringDescriptor = 8, + EUsbFdfSrvGetProductStringDescriptor = 9, + EUsbFdfSrvGetOtgDescriptor = 10, + EUsbFdfSrvDbgFailNext = 11, + EUsbFdfSrvDbgAlloc = 12, + }; + +/** Panic codes which which the server panics an offending client. */ +enum + { + EBadIpc = 0, + ENotifyDeviceEventAlreadyOutstanding = 1, + ENotifyDevmonEventAlreadyOutstanding = 2, + EBadNotifyDeviceEventData = 3, + EBadNotifyDevmonEventData = 4, + }; + +#endif // FDFAPI_H