version number updated
[public/netxms.git] / include / netxms-version.h
1 /*
2 ** NetXMS - Network Management System
3 ** Copyright (C) 2003-2017 Victor Kirhenshtein
4 **
5 ** This program is free software; you can redistribute it and/or modify
6 ** it under the terms of the GNU Lesser General Public License as published by
7 ** the Free Software Foundation; either version 3 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 Lesser 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: netxms-version.h
20 **
21 **/
22
23 #ifndef _netxms_version_h_
24 #define _netxms_version_h_
25
26 #include "build.h"
27 #include <netxms-build-tag.h>
28
29 /**
30 * Version constants
31 */
32 #define NETXMS_VERSION_MAJOR 3
33 #define NETXMS_VERSION_MINOR 0
34 #define NETXMS_VERSION_STRING _T("3.0-M0")
35 #define NETXMS_VERSION_STRING_A "3.0-M0"
36
37 #ifdef UNICODE
38 #define IS_UNICODE_BUILD_STRING _T(" (UNICODE)")
39 #else
40 #define IS_UNICODE_BUILD_STRING _T(" (NON-UNICODE)")
41 #endif
42
43 /**
44 * Current client-server protocol versions
45 */
46 #define CLIENT_PROTOCOL_VERSION_BASE 48 /* Base protocol version - must match for all clients */
47 #define CLIENT_PROTOCOL_VERSION_ALARMS 2 /* Alarm management API */
48 #define CLIENT_PROTOCOL_VERSION_PUSH 1 /* Data push API */
49 #define CLIENT_PROTOCOL_VERSION_TRAP 1 /* Event (trap) sending API */
50 #define CLIENT_PROTOCOL_VERSION_MOBILE 1 /* All functionality relevant for mobile client */
51 #define CLIENT_PROTOCOL_VERSION_FULL 11 /* All functionality */
52
53 /**
54 * Protocol version positions
55 */
56 #define CPV_INDEX_BASE 0
57 #define CPV_INDEX_ALARMS 1
58 #define CPV_INDEX_PUSH 2
59 #define CPV_INDEX_TRAP 3
60 #define CPV_INDEX_MOBILE 4
61 #define CPV_INDEX_FULL 5
62
63 /**
64 * Current mobile device protocol version
65 */
66 #define MOBILE_DEVICE_PROTOCOL_VERSION 1
67
68 #endif