Ring Daemon
Loading...
Searching...
No Matches
buildinfo.cpp
Go to the documentation of this file.
1/*
2 * Copyright (C) 2004-2026 Savoir-faire Linux Inc.
3 *
4 * This program is free software: you can redistribute it and/or modify
5 * it under the terms of the GNU General Public License as published by
6 * the Free Software Foundation, either version 3 of the License, or
7 * (at your option) any later version.
8 *
9 * This program is distributed in the hope that it will be useful,
10 * but WITHOUT ANY WARRANTY; without even the implied warranty of
11 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
12 * GNU General Public License for more details.
13 *
14 * You should have received a copy of the GNU General Public License
15 * along with this program. If not, see <https://www.gnu.org/licenses/>.
16 */
17
18#ifdef HAVE_CONFIG_H
19#include "config.h"
20#endif
21
22#include "jami.h"
23#include "string_utils.h"
24
25#ifndef JAMI_REVISION
26#define JAMI_REVISION ""
27#endif
28
29#ifndef JAMI_DIRTY_REPO
30#define JAMI_DIRTY_REPO ""
31#endif
32
33#ifndef PACKAGE_VERSION
34#define PACKAGE_VERSION "unknown"
35#endif
36
37namespace libjami {
38
39const char*
46
47std::string_view
48platform() noexcept
49{
50 return jami::platform();
51}
52
53std::string_view
54arch() noexcept
55{
56 return jami::arch();
57}
58
59} // namespace libjami
#define JAMI_DIRTY_REPO
Definition buildinfo.cpp:30
#define PACKAGE_VERSION
Definition buildinfo.cpp:34
#define JAMI_REVISION
Definition buildinfo.cpp:26
constexpr std::string_view platform()
constexpr std::string_view arch()
const char * version() noexcept
Return the library version as string.
Definition buildinfo.cpp:40
std::string_view platform() noexcept
Return the target platform (OS) as a string.
Definition buildinfo.cpp:48
std::string_view arch() noexcept
Return the target architecture as a string.
Definition buildinfo.cpp:54