mirror of
https://git.proxmox.com/git/fwupd
synced 2025-05-05 12:14:45 +00:00

This prevents super-hard-to-debug crashes like we saw in #3197 where the user was mixing PPAs and official versions.
30 lines
572 B
C
30 lines
572 B
C
/*
|
|
* Copyright (C) 2021 Richard Hughes <richard@hughsie.com>
|
|
*
|
|
* SPDX-License-Identifier: LGPL-2.1+
|
|
*/
|
|
|
|
#include "config.h"
|
|
|
|
#include "fu-version.h"
|
|
|
|
/**
|
|
* fu_version_string:
|
|
*
|
|
* Gets the libfwupdplugin installed runtime version.
|
|
*
|
|
* This may be different to the *build-time* version if the daemon and library
|
|
* objects somehow get out of sync.
|
|
*
|
|
* Returns: version string
|
|
*
|
|
* Since: 1.6.1
|
|
**/
|
|
const gchar *
|
|
fu_version_string (void)
|
|
{
|
|
return G_STRINGIFY(FWUPD_MAJOR_VERSION) "."
|
|
G_STRINGIFY(FWUPD_MINOR_VERSION) "."
|
|
G_STRINGIFY(FWUPD_MICRO_VERSION);
|
|
}
|