Code

3844c656b04aba8ffee6b56704211cca0e9cf99e
[template.git] / src / fb_features.h.in
1 /*
2  * foobar - src/fb_features.h
3  * Copyright (C) 2009 Sebastian Harl <sh@tokkee.org>
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  */
19 /*
20  * A short description of this module...
21  */
23 #ifndef FB_FEATURES_H
24 #define FB_FEATURES_H 1
26 #define FB_VERSION_MAJOR @FB_VERSION_MAJOR@
27 #define FB_VERSION_MINOR @FB_VERSION_MINOR@
28 #define FB_VERSION_PATCH @FB_VERSION_PATCH@
30 #define FB_VERSION_EXTRA "@FB_VERSION_EXTRA@"
32 #define FB_VERSION_STRING "@FB_VERSION_STRING@"
34 #define FB_VERSION_ENCODE(major, minor, patch) \
35         ((major) * 10000 + (minor) * 100 + (patch))
37 #define FB_VERSION FB_VERSION_ENCODE(FB_VERSION_MAJOR, FB_VERSION_MINOR, \
38                 FB_VERSION_PATCH)
40 #ifdef __cplusplus
41 extern "C" {
42 #endif
44 unsigned int
45 fb_version(void);
47 const char *
48 fb_version_string(void);
50 const char *
51 fb_version_extra(void);
53 #ifdef __cplusplus
54 } /* extern "C" */
55 #endif
57 #endif /* ! FB_FEATURES_H */
59 /* vim: set tw=78 sw=4 ts=4 noexpandtab : */