lafagnosticuifoundation/animation/src/SpriteAnimationDll.cpp
changeset 0 2f259fa3e83a
equal deleted inserted replaced
-1:000000000000 0:2f259fa3e83a
       
     1 // Copyright (c) 2004-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 "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 //
       
    15 
       
    16 #include "SpriteAnimationDll.h"
       
    17 #include "SpriteAnimationServer.h"
       
    18 
       
    19 // the only exported function in the DLL
       
    20 EXPORT_C CAnimDll* CreateCAnimDllL()
       
    21 	{
       
    22 	return new(ELeave) CSpriteAnimationDll;
       
    23 	}
       
    24 
       
    25 // global functions
       
    26 const TInt KPanicClientFromServer=1;
       
    27 
       
    28 GLDEF_C void Panic(TInt aReason)
       
    29 	{
       
    30 	_LIT(KPanicAnimationServer,"SpriteAnimation-server");
       
    31 	User::Panic(KPanicAnimationServer, aReason);
       
    32 	}
       
    33 
       
    34 GLDEF_C void PanicClientFromServer()
       
    35 	{
       
    36 	User::Leave(KPanicClientFromServer);
       
    37 	}
       
    38 
       
    39 // CSpriteAnimationDll
       
    40 CAnim* CSpriteAnimationDll::CreateInstanceL(TInt /*aType*/)
       
    41 	{
       
    42 	return CSpriteAnimationServer::NewL();
       
    43 	}
       
    44