fwupd/libfwupdplugin/fu-version.c
Richard Hughes c77b4f03a2 Check the versions of libfwupd and libfwupdplugin at startup
This prevents super-hard-to-debug crashes like we saw in #3197 where the user
was mixing PPAs and official versions.
2021-04-30 15:00:04 +01:00

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);
}