libsigrok  unreleased development snapshot
sigrok hardware access and backend library
version.h
Go to the documentation of this file.
1 /* include/libsigrok/version.h. Generated from version.h.in by configure. */
2 /*
3  * This file is part of the libsigrok project.
4  *
5  * Copyright (C) 2010-2012 Bert Vermeulen <bert@biot.com>
6  *
7  * This program is free software: you can redistribute it and/or modify
8  * it under the terms of the GNU General Public License as published by
9  * the Free Software Foundation, either version 3 of the License, or
10  * (at your option) any later version.
11  *
12  * This program is distributed in the hope that it will be useful,
13  * but WITHOUT ANY WARRANTY; without even the implied warranty of
14  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
15  * GNU General Public License for more details.
16  *
17  * You should have received a copy of the GNU General Public License
18  * along with this program. If not, see <http://www.gnu.org/licenses/>.
19  */
20 
21 #ifndef LIBSIGROK_VERSION_H
22 #define LIBSIGROK_VERSION_H
23 
24 /*
25  * Only libsigrok library builds, and only parts of the library build,
26  * need to reference the git-version.h header file. Which contains the
27  * version suffix, which is relevant to local development, but is not
28  * applicable to release builds. Application builds need not bother with
29  * internal library version details, and always can get this information
30  * in text form for display purposes from the library at runtime.
31  */
32 #if defined WANT_LIBSIGROK_GIT_VERSION_H
33 # include <libsigrok/git-version.h>
34 #else
35 /* # undef SR_PACKAGE_VERSION_STRING_SUFFIX */
36 # define SR_PACKAGE_VERSION_STRING_SUFFIX ""
37 #endif
38 
39 /**
40  * @file
41  *
42  * Version number definitions and macros.
43  */
44 
45 /**
46  * @ingroup grp_versions
47  *
48  * @{
49  */
50 
51 /*
52  * Package version macros (can be used for conditional compilation).
53  */
54 
55 /** The libsigrok package 'major' version number. */
56 #define SR_PACKAGE_VERSION_MAJOR 0
57 
58 /** The libsigrok package 'minor' version number. */
59 #define SR_PACKAGE_VERSION_MINOR 6
60 
61 /** The libsigrok package 'micro' version number. */
62 #define SR_PACKAGE_VERSION_MICRO 0
63 
64 /** The libsigrok package version ("major.minor.micro") as string. */
65 #define SR_PACKAGE_VERSION_STRING_PREFIX "0.6.0-git"
66 
67 /** The libsigrok package version with git commit suffix. */
68 #define SR_PACKAGE_VERSION_STRING (SR_PACKAGE_VERSION_STRING_PREFIX SR_PACKAGE_VERSION_STRING_SUFFIX)
69 
70 /*
71  * Library/libtool version macros (can be used for conditional compilation).
72  */
73 
74 /** The libsigrok libtool 'current' version number. */
75 #define SR_LIB_VERSION_CURRENT 4
76 
77 /** The libsigrok libtool 'revision' version number. */
78 #define SR_LIB_VERSION_REVISION 0
79 
80 /** The libsigrok libtool 'age' version number. */
81 #define SR_LIB_VERSION_AGE 0
82 
83 /** The libsigrok libtool version ("current:revision:age") as string. */
84 #define SR_LIB_VERSION_STRING "4:0:0"
85 
86 /** @} */
87 
88 #endif