/
githubmirror
/
libxmlb
Обзор
Документация
Войти
/
githubmirror
/
libxmlb
Код
Запросы
0
Пакеты
0
Релизы
0
Аналитика
Безопасность
main
src/xb-version.h.in
64 строки
1 KB
Richard Hughes
trivial: Use the non-deprecated SPDX license ID
27 апр 2024, 19:03
27 апр 2024, 19:03
3b8222d
Код
Авторство
О чём код?
/* * Copyright 2015 Richard Hughes <richard@hughsie.com> * * SPDX-License-Identifier: LGPL-2.1-or-later */ /** * SECTION:xb-version * @short_description: Obtains the version for the installed libxmlb * * These compile time macros allow the user to enable parts of client code * depending on the version of libxmlb installed. */ #pragma once #include <glib.h> /** * XMLB_MAJOR_VERSION: * * The compile-time major version */ #ifndef XMLB_MAJOR_VERSION #define XMLB_MAJOR_VERSION (@XMLB_MAJOR_VERSION@) #endif /** * XMLB_MINOR_VERSION: * * The compile-time minor version */ #ifndef XMLB_MINOR_VERSION #define XMLB_MINOR_VERSION (@XMLB_MINOR_VERSION@) #endif /** * XMLB_MICRO_VERSION: * * The compile-time micro version */ #ifndef XMLB_MICRO_VERSION #define XMLB_MICRO_VERSION (@XMLB_MICRO_VERSION@) #endif /** * LIBXMLB_CHECK_VERSION: * @major: Major version number * @minor: Minor version number * @micro: Micro version number * * Check whether a libxmlb version equal to or greater than * major.minor.micro. */ #define LIBXMLB_CHECK_VERSION(major,minor,micro) \ (XMLB_MAJOR_VERSION > (major) || \ (XMLB_MAJOR_VERSION == (major) && XMLB_MINOR_VERSION > (minor)) || \ (XMLB_MAJOR_VERSION == (major) && XMLB_MINOR_VERSION == (minor) && \ XMLB_MICRO_VERSION >= (micro))) G_BEGIN_DECLS const gchar *xb_version_string (void); G_END_DECLS