javaextensions/wma/mms/pushplugin/src.s60/lookup.cpp
changeset 21 2a9601315dfc
equal deleted inserted replaced
18:e8e63152f320 21:2a9601315dfc
       
     1 /*
       
     2 * Copyright (c) 2008 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 #include "logger.h"
       
    20 #include "javasymbianoslayer.h"
       
    21 #include "serverconnectionfactory.h"
       
    22 
       
    23 using namespace java::push;
       
    24 
       
    25 ServerConnectionFactory& getServerConnectionFactory();
       
    26 
       
    27 EXPORT_C FuncPtr findDllMethod(const char* funcName)
       
    28 {
       
    29     JELOG2(EJavaPush);
       
    30     FuncPtr ptr = 0;
       
    31     if (funcName)
       
    32     {
       
    33         if (strcmp(funcName, "getServerConnectionFactory") == 0)
       
    34         {
       
    35             ptr = (FuncPtr)getServerConnectionFactory;
       
    36         }
       
    37     }
       
    38     else
       
    39     {
       
    40         ELOG(EJavaPush, "Mmspushplugin findDllMethod() funcName == null");
       
    41     }
       
    42     return ptr;
       
    43 }