blob: 228ba90dbf73bb315c83252918f7f80b5b4e5315 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
|
/* -*- Mode: C; tab-width: 8; indent-tabs-mode: t; c-basic-offset: 8 -*-
*
* Copyright (C) 2018 Richard Hughes <richard@hughsie.com>
*
* Licensed under the GNU Lesser General Public License Version 2.1
*
* This library is free software; you can redistribute it and/or
* modify it under the terms of the GNU Lesser General Public
* License as published by the Free Software Foundation; either
* version 2.1 of the License, or (at your option) any later version.
*
* This library is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
* Lesser General Public License for more details.
*
* You should have received a copy of the GNU Lesser General Public
* License along with this library; if not, write to the Free Software
* Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
*/
/**
* SECTION:as-version
* @short_description: Helpers for the current runtime version.
* @include: appstream-glib.h
* @stability: Unstable
*
* The version number can be different between build-time and runtime.
*/
#include "config.h"
#include "as-version.h"
/**
* as_version_string:
*
* Gets the libappstream-glib installed runtime version.
*
* Returns: a version numer, e.g. "0.7.8"
*
* Since: 0.7.8
**/
const gchar *
as_version_string (void)
{
return G_STRINGIFY(AS_MAJOR_VERSION) "."
G_STRINGIFY(AS_MINOR_VERSION) "."
G_STRINGIFY(AS_MICRO_VERSION);
}
|