search on fdb changed to binary search; added object tools of type "server-side command"
[public/netxms.git] / include / nxtools.h
1 /*
2 ** NetXMS - Network Management System
3 ** Copyright (C) 2003-2011 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 ** File: nxtools.h
20 **
21 **/
22
23 #ifndef _nxtools_h
24 #define _nxtools_h
25
26
27 //
28 // Tool types
29 //
30
31 #define TOOL_TYPE_INTERNAL 0
32 #define TOOL_TYPE_ACTION 1
33 #define TOOL_TYPE_TABLE_SNMP 2
34 #define TOOL_TYPE_TABLE_AGENT 3
35 #define TOOL_TYPE_URL 4
36 #define TOOL_TYPE_COMMAND 5
37 #define TOOL_TYPE_SERVER_SCRIPT 6
38
39
40 //
41 // Object tool flags
42 //
43
44 #define TF_REQUIRES_SNMP ((DWORD)0x00000001)
45 #define TF_REQUIRES_AGENT ((DWORD)0x00000002)
46 #define TF_REQUIRES_OID_MATCH ((DWORD)0x00000004)
47 #define TF_ASK_CONFIRMATION ((DWORD)0x00000008)
48 #define TF_SNMP_INDEXED_BY_VALUE ((DWORD)0x00010000)
49
50
51 //
52 // Column formats
53 //
54
55 #define CFMT_STRING 0
56 #define CFMT_INTEGER 1
57 #define CFMT_FLOAT 2
58 #define CFMT_IP_ADDR 3
59 #define CFMT_MAC_ADDR 4
60 #define CFMT_IFINDEX 5
61
62
63 #endif