linklayercontrol/networkinterfacemgr/src/IF_DLL.CPP
changeset 0 af10295192d8
equal deleted inserted replaced
-1:000000000000 0:af10295192d8
       
     1 // Copyright (c) 1997-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 // Interface Manager
       
    15 // 
       
    16 //
       
    17 
       
    18 /**
       
    19  @file
       
    20 */
       
    21 
       
    22 
       
    23 #include "IF_DEF.H"
       
    24 #include "NI_STD.H"
       
    25 #include "Ni_Log.h"
       
    26 
       
    27 void Panic(TNifManPanic aPanic)
       
    28 	{
       
    29 	_LIT(nifmanString,"NifMan");
       
    30 	LOG( NifmanLog::Printf(_L("%S Panic %d"), &nifmanString(), aPanic); )
       
    31 	
       
    32 	User::Panic(nifmanString,aPanic);
       
    33 	}
       
    34 
       
    35 void MBufExtPanic(TMBufExtPanic aPanic)
       
    36 	{
       
    37 	_LIT(mBufExtString,"MBufExt");
       
    38 	LOG( NifmanLog::Printf(_L("%S Panic %d"), &mBufExtString(), aPanic); )
       
    39 
       
    40 	User::Panic(mBufExtString, aPanic);
       
    41 	}
       
    42 
       
    43 void NetUtilPanic(TNetUtilPanic aPanic)
       
    44 	{
       
    45 	_LIT(netUtilString,"NetUtil");
       
    46 	LOG( NifmanLog::Printf(_L("%S Panic %d"), &netUtilString(), aPanic); )
       
    47 
       
    48 	User::Panic(netUtilString, aPanic);
       
    49 	}
       
    50 
       
    51 
       
    52 // Force export of non-mangled name
       
    53 extern "C" { IMPORT_C CSocketServExtBase *Install(); }
       
    54 EXPORT_C CSocketServExtBase *Install()
       
    55 	{
       
    56 	return new CNifMan;
       
    57 	}
       
    58