8981db9d119a167e486d2dd45899a177161c3d44
[public/netxms.git] / include / nxappc_internal.h
1 /*
2 ** NetXMS Application Connector Library
3 ** Copyright (C) 2015 Raden Solutions
4 **
5 ** Permission is hereby granted, free of charge, to any person obtaining
6 ** a copy of this software and associated documentation files
7 ** (the "Software"), to deal in the Software without restriction, including
8 ** without limitation the rights to use, copy, modify, merge, publish,
9 ** distribute, sublicense, and/or sell copies of the Software, and to permit
10 ** persons to whom the Software is furnished to do so, subject to the
11 ** following conditions:
12 **
13 ** The above copyright notice and this permission notice shall be included in
14 ** all copies or substantial portions of the Software.
15 **
16 ** THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
17 ** IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
18 ** FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL
19 ** THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR
20 ** OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE,
21 ** ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR
22 ** OTHER DEALINGS IN THE SOFTWARE.
23 **/
24
25 #ifndef _nxappc_internal_h_
26 #define _nxappc_internal_h_
27
28 /**
29 * Message start indicator
30 */
31 #define NXAPPC_MSG_START_INDICATOR "NXAPPC\x7F"
32 #define NXAPPC_MSG_START_INDICATOR_LEN 7
33
34 /**
35 * Command codes
36 */
37 #define NXAPPC_CMD_REGISTER_COUNTER 0x00
38 #define NXAPPC_CMD_RESET_COUNTER 0x01
39 #define NXAPPC_CMD_SET_COUNTER_LONG 0x02
40 #define NXAPPC_CMD_SET_COUNTER_DOUBLE 0x03
41 #define NXAPPC_CMD_UPDATE_COUNTER_LONG 0x04
42 #define NXAPPC_CMD_UPDATE_COUNTER_DOUBLE 0x05
43 #define NXAPPC_CMD_SEND_EVENT 0x06
44 #define NXAPPC_CMD_SEND_DATA 0x07
45
46 #endif