- Added reminder comment to nxclapi.h
[public/netxms.git] / include / nxsl.h
1 /*
2 ** NetXMS - Network Management System
3 ** Copyright (C) 2005 Victor Kirhenshtein
4 **
5 ** This program is free software; you can redistribute it and/or modify
6 ** it under the terms of the GNU General Public License as published by
7 ** the Free Software Foundation; either version 2 of the License, or
8 ** (at your option) any later version.
9 **
10 ** This program is distributed in the hope that it will be useful,
11 ** but WITHOUT ANY WARRANTY; without even the implied warranty of
12 ** MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
13 ** GNU General Public License for more details.
14 **
15 ** You should have received a copy of the GNU General Public License
16 ** along with this program; if not, write to the Free Software
17 ** Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
18 **
19 ** $module: nxsl.h
20 **
21 **/
22
23 #ifndef _nxsl_h_
24 #define _nxsl_h_
25
26 #ifdef _WIN32
27 #ifdef LIBNXSL_EXPORTS
28 #define LIBNXSL_EXPORTABLE __declspec(dllexport)
29 #else
30 #define LIBNXSL_EXPORTABLE __declspec(dllimport)
31 #endif
32 #else /* _WIN32 */
33 #define LIBNXSL_EXPORTABLE
34 #endif
35
36
37 //
38 // Script handle
39 //
40
41 typedef void * NXSL_SCRIPT;
42
43
44 //
45 // Functions
46 //
47
48 #ifdef __cplusplus
49 extern "C" {
50 #endif
51
52 NXSL_SCRIPT LIBNXSL_EXPORTABLE NXSLCompileScript(TCHAR *pszSource,
53 TCHAR *pszError, int nBufSize);
54 int LIBNXSL_EXPORTABLE NXSLRunScript(NXSL_SCRIPT hScript);
55 void LIBNXSL_EXPORTABLE NXSLDestroyScript(NXSL_SCRIPT hScript);
56
57 #ifdef __cplusplus
58 }
59 #endif
60
61 #endif