1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
/**
* @headerfile version.h <rc/version.h>
*
* @brief macros and functions for getting the current version of librobotcontrol
*
* @author James Strawson
* @date 2/8/2018
*
* @addtogroup version
* @{
*/
#ifndef RC_VERSION_H
#define RC_VERSION_H
#ifdef __cplusplus
extern "C" {
#endif
#define RC_LIB_VERSION_MAJOR 1
#define RC_LIB_VERSION_MINOR 0
#define RC_LIB_VERSION_PATCH 5
#define RC_LIB_VERSION_HEX ((RC_LIB_VERSION_MAJOR << 16) | \
(RC_LIB_VERSION_MINOR << 8) | \
(RC_LIB_VERSION_PATCH))
/**
* @brief get an integer representation of the library version
*
* 8 bits are used for each component, with the patch number stored in the 8
* least significant bits. E.g. for version 1.2.3 this would be 0x010203.
*
* @return integer representation of the library version
*/
unsigned int rc_version(void);
/**
* @brief gets a string representation of the current library version.
*
* @return const char* string
*/
const char* rc_version_string(void);
/**
* @brief prints a string representation of the current library version to
* stdout with no trailing newline character.
*/
void rc_version_print(void);
#ifdef __cplusplus
}
#endif
#endif //RC_VERSION_H
/** @} end group version*/