sl@0: /* sl@0: * Copyright (c) 2009 Nokia Corporation and/or its subsidiary(-ies). sl@0: * All rights reserved. sl@0: * This component and the accompanying materials are made available sl@0: * under the terms of the License "Eclipse Public License v1.0" sl@0: * which accompanies this distribution, and is available sl@0: * at the URL "http://www.eclipse.org/legal/epl-v10.html". sl@0: * sl@0: * Initial Contributors: sl@0: * Nokia Corporation - initial contribution. sl@0: * sl@0: * Contributors: sl@0: * sl@0: * Description: sl@0: * sl@0: */ sl@0: sl@0: #include "t_dllwsd_dll.h" sl@0: sl@0: sl@0: int x = 42; sl@0: int y; sl@0: sl@0: struct SGlobal sl@0: { sl@0: SGlobal() sl@0: { sl@0: iX = new TInt(x); sl@0: } sl@0: ~SGlobal() sl@0: { sl@0: delete iX; sl@0: } sl@0: TInt* iX; sl@0: }; sl@0: sl@0: SGlobal g; sl@0: sl@0: EXPORT_C TInt WsdFuncX() sl@0: { sl@0: ASSERT(*g.iX == x); sl@0: (*g.iX)++; sl@0: return x++; sl@0: } sl@0: sl@0: EXPORT_C TInt WsdFuncY() sl@0: { sl@0: return y++; sl@0: } sl@0: sl@0: EXPORT_C TBuf<60000>& WsdBuf() sl@0: { sl@0: static TBuf<60000> buf; sl@0: return buf; sl@0: } sl@0: sl@0: EXPORT_C TRequestStatus& WsdReq() sl@0: { sl@0: static TRequestStatus stat; sl@0: return stat; sl@0: } sl@0: