60
|
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 "BaseCom.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 TCFCOMMVIRTUALSERIAL_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 |
// TCFCOMMVIRTUALSERIAL_API functions as being imported from a DLL, wheras this DLL sees symbols
|
|
23 |
// defined with this macro as being exported.
|
|
24 |
#ifdef TCFCOMMVIRTUALSERIAL_EXPORTS
|
|
25 |
#define TCFCOMMVIRTUALSERIAL_API __declspec(dllexport)
|
|
26 |
#else
|
|
27 |
#define TCFCOMMVIRTUALSERIAL_API __declspec(dllimport)
|
|
28 |
#endif
|
|
29 |
|
|
30 |
#ifdef __cplusplus
|
|
31 |
extern "C" {
|
|
32 |
#endif
|
|
33 |
|
|
34 |
TCFCOMMVIRTUALSERIAL_API const char* RegisterComm();
|
|
35 |
TCFCOMMVIRTUALSERIAL_API CBaseCom* CreateComm(ConnectData* connectSettings, DWORD connectionId, CBaseProtocol* protocol);
|
|
36 |
|
|
37 |
#ifdef __cplusplus
|
|
38 |
}
|
|
39 |
#endif
|