connectivity/com.nokia.tcf/native/TCFNative/TCFProtOST/TCFProtOST.h
changeset 60 9d2210c8eed2
equal deleted inserted replaced
59:c892c53c664e 60:9d2210c8eed2
       
     1 /*
       
     2 * Copyright (c) 2009 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 the License "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 #include "BaseProtocol.h"
       
    18 // The following ifdef block is the standard way of creating macros which make exporting 
       
    19 // from a DLL simpler. All files within this DLL are compiled with the TCFPROTOST_EXPORTS
       
    20 // symbol defined on the command line. this symbol should not be defined on any project
       
    21 // that uses this DLL. This way any other project whose source files include this file see 
       
    22 // TCFPROTOST_API functions as being imported from a DLL, wheras this DLL sees symbols
       
    23 // defined with this macro as being exported.
       
    24 #ifdef TCFPROTOST_EXPORTS
       
    25 #define TCFPROTOST_API __declspec(dllexport)
       
    26 #else
       
    27 #define TCFPROTOST_API __declspec(dllimport)
       
    28 #endif
       
    29 
       
    30 #ifdef __cplusplus
       
    31 extern "C" {
       
    32 #endif
       
    33 
       
    34 TCFPROTOST_API const char* RegisterProtocol();
       
    35 TCFPROTOST_API CBaseProtocol* CreateProtocol();
       
    36 
       
    37 #ifdef __cplusplus
       
    38 }
       
    39 #endif
       
    40