Merge branch 'sh/postgresql-writer'
[collectd.git] / src / libcollectdclient / collectd / lcc_features.h.in
1 /**
2  * libcollectdclient - src/libcollectdclient/lcc_features.h
3  * Copyright (C) 2009  Sebastian Harl
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  *   Sebastian tokkee Harl <sh at tokkee.org>
20  **/
21
22 #ifndef LIBCOLLECTD_LCC_FEATURES_H
23 #define LIBCOLLECTD_LCC_FEATURES_H 1
24
25 #ifdef __cplusplus
26 # define LCC_BEGIN_DECLS extern "C" {
27 # define LCC_END_DECLS   }
28 #else
29 # define LCC_BEGIN_DECLS
30 # define LCC_END_DECLS
31 #endif
32
33 #define LCC_API_VERSION 0
34
35 #define LCC_VERSION_MAJOR @LCC_VERSION_MAJOR@
36 #define LCC_VERSION_MINOR @LCC_VERSION_MINOR@
37 #define LCC_VERSION_PATCH @LCC_VERSION_PATCH@
38
39 #define LCC_VERSION_EXTRA "@LCC_VERSION_EXTRA@"
40
41 #define LCC_VERSION_STRING "@LCC_VERSION_STRING@"
42
43 #define LCC_VERSION_ENCODE(major, minor, patch) \
44         ((major) * 10000 + (minor) * 100 + (patch))
45
46 #define LCC_VERSION \
47         LCC_VERSION_ENCODE(LCC_VERSION_MAJOR, LCC_VERSION_MINOR, LCC_VERSION_PATCH)
48
49 LCC_BEGIN_DECLS
50
51 unsigned int lcc_version (void);
52
53 const char *lcc_version_string (void);
54
55 const char *lcc_version_extra (void);
56
57 LCC_END_DECLS
58
59 #endif /* ! LIBCOLLECTD_LCC_FEATURES_H */
60
61 /* vim: set sw=4 ts=4 tw=78 noexpandtab : */
62