2 * libcollectdclient - src/libcollectdclient/lcc_features.h
3 * Copyright (C) 2009 Sebastian Harl
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 * Sebastian tokkee Harl <sh at tokkee.org>
22 #ifndef LIBCOLLECTD_LCC_FEATURES_H
23 #define LIBCOLLECTD_LCC_FEATURES_H 1
26 # define LCC_BEGIN_DECLS extern "C" {
27 # define LCC_END_DECLS }
29 # define LCC_BEGIN_DECLS
30 # define LCC_END_DECLS
33 #define LCC_API_VERSION 0
35 #define LCC_VERSION_MAJOR @LCC_VERSION_MAJOR@
36 #define LCC_VERSION_MINOR @LCC_VERSION_MINOR@
37 #define LCC_VERSION_PATCH @LCC_VERSION_PATCH@
39 #define LCC_VERSION_EXTRA "@LCC_VERSION_EXTRA@"
41 #define LCC_VERSION_STRING "@LCC_VERSION_STRING@"
43 #define LCC_VERSION_ENCODE(major, minor, patch) \
44 ((major) * 10000 + (minor) * 100 + (patch))
47 LCC_VERSION_ENCODE(LCC_VERSION_MAJOR, LCC_VERSION_MINOR, LCC_VERSION_PATCH)
51 unsigned int lcc_version (void);
53 const char *lcc_version_string (void);
55 const char *lcc_version_extra (void);
59 #endif /* ! LIBCOLLECTD_LCC_FEATURES_H */
61 /* vim: set sw=4 ts=4 tw=78 noexpandtab : */