My Project
Loading...
Searching...
No Matches
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 2
30#define LOMIRI_API_VERSION_MICRO 0
31
32#define LOMIRI_API_VERSION_STRING "0.2.0"
33
37namespace lomiri
38{
39
43namespace api
44{
45
68LOMIRI_API
70int major_version();
71
78LOMIRI_API
80int minor_version();
81
88LOMIRI_API
90int micro_version();
91
99LOMIRI_API
101const 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
int micro_version()
Returns the micro version number of the Lomiri API library.
Definition: Version.cpp:42
const char * str()
Returns the Lomiri API version as a string in the format <major>.<minor>.<micro>.
Definition: Version.cpp:48
int minor_version()
Returns the minor version number of the Lomiri API library.
Definition: Version.cpp:36
int major_version()
Returns the major version number of the Lomiri API library.
Definition: Version.cpp:30
Top-level namespace for all things Lomiri-related.
Definition: Version.h:38