Source files: s/libmikrotik/librouteros/
[routeros-api.git] / src / routeros_version.h.in
1 /**
2  * librouteros - src/routeros_version.h
3  * Copyright (C) 2009  Florian octo Forster
4  *
5  * This program is free software; you can redistribute it and/or modify it
6  * under the terms of the GNU General Public License as published by the
7  * Free Software Foundation; only version 2 of the License is applicable.
8  *
9  * This program is distributed in the hope that it will be useful, but
10  * WITHOUT ANY WARRANTY; without even the implied warranty of
11  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
12  * General Public License for more details.
13  *
14  * You should have received a copy of the GNU General Public License along
15  * with this program; if not, write to the Free Software Foundation, Inc.,
16  * 51 Franklin St, Fifth Floor, Boston, MA  02110-1301 USA
17  *
18  * Authors:
19  *   Florian octo Forster <octo at verplant.org>
20  **/
21
22 #ifndef ROUTEROS_VERSION_H
23 #define ROUTEROS_VERSION_H 1
24
25 #ifdef __cplusplus
26 extern "C" {
27 #endif
28
29 #define ROS_VERSION_MAJOR @LIBROUTEROS_MAJOR@
30 #define ROS_VERSION_MINOR @LIBROUTEROS_MINOR@
31 #define ROS_VERSION_PATCH @LIBROUTEROS_PATCH@
32
33 #define ROS_VERSION_STRING "@LIBROUTEROS_MAJOR@.@LIBROUTEROS_MINOR@.@LIBROUTEROS_PATCH@"
34
35 #define ROS_VERSION_ENCODE(major, minor, patch) \
36         ((major) * 10000 + (minor) * 100 + (patch))
37
38 #define ROS_VERSION \
39         ROS_VERSION_ENCODE(ROS_VERSION_MAJOR, ROS_VERSION_MINOR, ROS_VERSION_PATCH)
40
41 int ros_version (void);
42 const char *ros_version_string (void);
43
44 #ifdef __cplusplus
45 }
46 #endif
47
48 #endif /* ROUTEROS_VERSION_H */