My Project
Version.h
1 //
2 // DO NOT EDIT Version.h (this file)! It is generated from Version.h.in.
3 //
4 
5 /*
6  * Copyright (C) 2013 Canonical Ltd
7  *
8  * This program is free software: you can redistribute it and/or modify
9  * it under the terms of the GNU Lesser General Public License version 3 as
10  * published by the Free Software Foundation.
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 Lesser General Public License for more details.
16  *
17  * You should have received a copy of the GNU Lesser General Public License
18  * along with this program. If not, see <http://www.gnu.org/licenses/>.
19  *
20  * Authored by: Michi Henning <michi.henning@canonical.com>
21  */
22 
23 #include <lomiri/SymbolExport.h>
24 
25 #ifndef LOMIRI_API_VERSION_H
26 #define LOMIRI_API_VERSION_H
27 
28 #define LOMIRI_API_VERSION_MAJOR 0
29 #define LOMIRI_API_VERSION_MINOR 1
30 #define LOMIRI_API_VERSION_MICRO 7
31 
32 #define LOMIRI_API_VERSION_STRING "0.1.7"
33 
37 namespace lomiri
38 {
39 
43 namespace api
44 {
45 
67 LOMIRI_API
70 int major_version();
71 
77 LOMIRI_API
80 int minor_version();
81 
87 LOMIRI_API
90 int micro_version();
91 
98 LOMIRI_API
101 const char* str(); // Returns "major.minor.micro"
102 
104 
105 // TODO: Add methods to report compiler version and compiler flags
106 
107 } // namespace api
108 
109 } // namespace lomiri
110 
111 #endif
lomiri::api::minor_version
int minor_version()
Returns the minor version number of the Lomiri API library.
Definition: Version.cpp:36
lomiri::api::micro_version
int micro_version()
Returns the micro version number of the Lomiri API library.
Definition: Version.cpp:42
lomiri::api::str
const char * str()
Returns the Lomiri API version as a string in the format <major>.<minor>.<micro>.
Definition: Version.cpp:48
lomiri::api::major_version
int major_version()
Returns the major version number of the Lomiri API library.
Definition: Version.cpp:30
lomiri
Top-level namespace for all things Lomiri-related.
Definition: Version.h:37