change log updated
[public/netxms.git] / include / netxms-version.h
CommitLineData
b900a78b
VK
1/*
2** NetXMS - Network Management System
99bb7eaf 3** Copyright (C) 2003-2017 Victor Kirhenshtein
b900a78b
VK
4**
5** This program is free software; you can redistribute it and/or modify
68f384ea
VK
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
b900a78b
VK
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**
68f384ea 15** You should have received a copy of the GNU Lesser General Public License
b900a78b
VK
16** along with this program; if not, write to the Free Software
17** Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
18**
a0856b0d 19** File: netxms-version.h
b900a78b
VK
20**
21**/
22
23#ifndef _netxms_version_h_
24#define _netxms_version_h_
25
bfdba2df 26#include "build.h"
f62b7eab 27#include <netxms-build-tag.h>
bfdba2df 28
534e1b83
VK
29/**
30 * Version constants
31 */
588fb98e
VK
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"
5b7b9f00 36
8e17001f
VK
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
534e1b83 43/**
e5390fb5 44 * Current client-server protocol versions
534e1b83 45 */
2649d20b 46#define CLIENT_PROTOCOL_VERSION_BASE 51 /* Base protocol version - must match for all clients */
196479c6 47#define CLIENT_PROTOCOL_VERSION_ALARMS 3 /* Alarm management API */
e5390fb5
VK
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 */
196479c6 51#define CLIENT_PROTOCOL_VERSION_FULL 12 /* All functionality */
e5390fb5
VK
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
5b7b9f00 62
534e1b83
VK
63/**
64 * Current mobile device protocol version
65 */
66#define MOBILE_DEVICE_PROTOCOL_VERSION 1
b900a78b
VK
67
68#endif