10ce3e4c75fb6c6c7a8eb6c609d003875817022d
[public/netxms.git] / src / libnxlp / main.cpp
1 /*
2 ** NetXMS - Network Management System
3 ** Log Parsing Library
4 ** Copyright (C) 2008 Victor Kirhenshtein
5 **
6 ** This program is free software; you can redistribute it and/or modify
7 ** it under the terms of the GNU General Public License as published by
8 ** the Free Software Foundation; either version 2 of the License, or
9 ** (at your option) any later version.
10 **
11 ** This program is distributed in the hope that it will be useful,
12 ** but WITHOUT ANY WARRANTY; without even the implied warranty of
13 ** MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
14 ** GNU General Public License for more details.
15 **
16 ** You should have received a copy of the GNU General Public License
17 ** along with this program; if not, write to the Free Software
18 ** Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
19 **
20 ** File: main.cpp
21 **
22 **/
23
24 #include "libnxlp.h"
25
26
27
28
29 //
30 // DLL entry point
31 //
32
33 #ifdef _WIN32
34
35 BOOL WINAPI DllMain(HINSTANCE hInstance, DWORD dwReason, LPVOID lpReserved)
36 {
37 if (dwReason == DLL_PROCESS_ATTACH)
38 DisableThreadLibraryCalls(hInstance);
39 return TRUE;
40 }
41
42 #endif /* _WIN32 */
43
44
45 //
46 // NetWare library entry point
47 //
48
49 #ifdef _NETWARE
50
51 int _init(void)
52 {
53 return 0;
54 }
55
56 int _fini(void)
57 {
58 return 0;
59 }
60
61 #endif