Add compiletime and runtime versioning information.
[routeros-api.git] / src / routeros_version.h.in
1 #ifndef ROUTEROS_VERSION_H
2 #define ROUTEROS_VERSION_H 1
3
4 #ifdef __cplusplus
5 extern "C" {
6 #endif
7
8 #define ROS_VERSION_MAJOR @LIBROUTEROS_MAJOR@
9 #define ROS_VERSION_MINOR @LIBROUTEROS_MINOR@
10 #define ROS_VERSION_PATCH @LIBROUTEROS_PATCH@
11
12 #define ROS_VERSION_STRING "@LIBROUTEROS_MAJOR@.@LIBROUTEROS_MINOR@.@LIBROUTEROS_PATCH@"
13
14 #define ROS_VERSION_ENCODE(major, minor, patch) \
15         ((major) * 10000 + (minor) * 100 + (patch))
16
17 #define ROS_VERSION \
18         ROS_VERSION_ENCODE(ROS_VERSION_MAJOR, ROS_VERSION_MINOR, ROS_VERSION_PATCH)
19
20 int ros_version (void);
21 const char *ros_version_string (void);
22
23 #ifdef __cplusplus
24 }
25 #endif
26
27 #endif /* ROUTEROS_VERSION_H */