Code

Updated templates for GPLv2 OR 2-clause BSD license.
[template.git] / src / fb_features.h.in
1 /*
2  * foobar - src/fb_features.h
3  * Copyright (C) 2010 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  *OR:
18  * All rights reserved.
19  *
20  * Redistribution and use in source and binary forms, with or without
21  * modification, are permitted provided that the following conditions
22  * are met:
23  * 1. Redistributions of source code must retain the above copyright
24  *    notice, this list of conditions and the following disclaimer.
25  * 2. Redistributions in binary form must reproduce the above copyright
26  *    notice, this list of conditions and the following disclaimer in the
27  *    documentation and/or other materials provided with the distribution.
28  *
29  * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
30  * ``AS IS'' AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED
31  * TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR
32  * PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDERS OR
33  * CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL,
34  * EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO,
35  * PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS;
36  * OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY,
37  * WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR
38  * OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF
39  * ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
40  */
42 /*
43  * A short description of this module...
44  */
46 #ifndef FB_FEATURES_H
47 #define FB_FEATURES_H 1
49 #define FB_VERSION_MAJOR @FB_VERSION_MAJOR@
50 #define FB_VERSION_MINOR @FB_VERSION_MINOR@
51 #define FB_VERSION_PATCH @FB_VERSION_PATCH@
53 #define FB_VERSION_EXTRA "@FB_VERSION_EXTRA@"
55 #define FB_VERSION_STRING "@FB_VERSION_STRING@"
57 #define FB_VERSION_ENCODE(major, minor, patch) \
58         ((major) * 10000 + (minor) * 100 + (patch))
60 #define FB_VERSION FB_VERSION_ENCODE(FB_VERSION_MAJOR, FB_VERSION_MINOR, \
61                 FB_VERSION_PATCH)
63 #ifdef __cplusplus
64 extern "C" {
65 #endif
67 unsigned int
68 fb_version(void);
70 const char *
71 fb_version_string(void);
73 const char *
74 fb_version_extra(void);
76 #ifdef __cplusplus
77 } /* extern "C" */
78 #endif
80 #endif /* ! FB_FEATURES_H */
82 /* vim: set tw=78 sw=4 ts=4 noexpandtab : */