minor fixes
[public/netxms.git] / include / nxtools.h
CommitLineData
b7a391d7
VK
1/*
2** NetXMS - Network Management System
f69c6203 3** Copyright (C) 2003-2011 Victor Kirhenshtein
b7a391d7
VK
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**
f69c6203 19** File: nxtools.h
b7a391d7
VK
20**
21**/
22
23#ifndef _nxtools_h
24#define _nxtools_h
25
26
27//
28// Tool types
29//
30
795ebf32
VK
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
6fa099ea 37#define TOOL_TYPE_SERVER_COMMAND 6
795ebf32
VK
38
39
40//
a463d430 41// Object tool flags
795ebf32
VK
42//
43
1b282e44
VK
44#define TF_REQUIRES_SNMP ((DWORD)0x00000001)
45#define TF_REQUIRES_AGENT ((DWORD)0x00000002)
46#define TF_REQUIRES_OID_MATCH ((DWORD)0x00000004)
a463d430 47#define TF_ASK_CONFIRMATION ((DWORD)0x00000008)
795ebf32
VK
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
7e3ae259 60#define CFMT_IFINDEX 5
b7a391d7
VK
61
62
63#endif