2 * librouteros - src/routeros_version.h
3 * Copyright (C) 2009 Florian octo Forster
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.
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.
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
19 * Florian octo Forster <octo at verplant.org>
22 #ifndef ROUTEROS_VERSION_H
23 #define ROUTEROS_VERSION_H 1
29 #define ROS_VERSION_MAJOR @LIBROUTEROS_MAJOR@
30 #define ROS_VERSION_MINOR @LIBROUTEROS_MINOR@
31 #define ROS_VERSION_PATCH @LIBROUTEROS_PATCH@
33 #define ROS_VERSION_STRING "@LIBROUTEROS_MAJOR@.@LIBROUTEROS_MINOR@.@LIBROUTEROS_PATCH@"
35 #define ROS_VERSION_ENCODE(major, minor, patch) \
36 ((major) * 10000 + (minor) * 100 + (patch))
39 ROS_VERSION_ENCODE(ROS_VERSION_MAJOR, ROS_VERSION_MINOR, ROS_VERSION_PATCH)
41 int ros_version (void);
42 const char *ros_version_string (void);
48 #endif /* ROUTEROS_VERSION_H */