Mir
mir_version_number.h
Go to the documentation of this file.
1 /*
2  * Copyright © 2014 Canonical Ltd.
3  *
4  * This program is free software: you can redistribute it and/or modify it
5  * under the terms of the GNU Lesser General Public License version 2 or 3,
6  * as published by the Free Software Foundation.
7  *
8  * This program is distributed in the hope that it will be useful,
9  * but WITHOUT ANY WARRANTY; without even the implied warranty of
10  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
11  * GNU Lesser General Public License for more details.
12  *
13  * You should have received a copy of the GNU Lesser General Public License
14  * along with this program. If not, see <http://www.gnu.org/licenses/>.
15  *
16  */
17 
18 #ifndef MIR_VERSION_NUMBER_H_
19 #define MIR_VERSION_NUMBER_H_
20 
21 /**
22  * MIR_VERSION_NUMBER
23  * \param major [in] The major version (eg: 3 for version 3.2.33)
24  * \param minor [in] The minor version (eg: 2 for version 3.2.33)
25  * \param micro [in] The micro version (eg: 33 for version 3.2.33)
26  *
27  * Returns the combined version information as a single 32-bit value for
28  * logical comparisons. For example:
29  * \#if MIR_CLIENT_VERSION >= MIR_VERSION_NUMBER(2,3,4)
30  *
31  * This can be useful to conditionally build code depending on new features or
32  * specific bugfixes in the Mir client library.
33  */
34 #define MIR_VERSION_NUMBER(major,minor,micro)
35  (((major) << 22) + ((minor) << 12) + (micro))
36 
37 #endif /* MIR_VERSION_NUMBER_H_ */

Copyright © 2012-2022 Canonical Ltd.
Generated on Tue Sep 13 03:20:30 UTC 2022
This documentation is licensed under the GPL version 2 or 3.