mirror of
https://git.proxmox.com/git/fwupd
synced 2025-05-21 16:54:55 +00:00

For instance, we can tell the user that UEFI UpdateCapsule is disabled in the system firmware, or that efivarfs is not mounted. This is much better than creating "dummy" devices which are really just hacks around the problem because no better API existed. THe dummy devices cause as many problems as they solve. Plugins have to set FWUPD_PLUGIN_FLAG_USER_WARNING if a warning should be shown to the user, and only one warning will be shown of each failure type. It is expected that GUI clients like gnome-software and gnome-firmware would use this API to notify the user the localized message for why firmware updates are not being shown. Fixes https://github.com/fwupd/fwupd/issues/2456
21 lines
353 B
C
21 lines
353 B
C
/*
|
|
* Copyright (C) 2020 Richard Hughes <richard@hughsie.com>
|
|
*
|
|
* SPDX-License-Identifier: LGPL-2.1+
|
|
*/
|
|
|
|
#pragma once
|
|
|
|
#include <json-glib/json-glib.h>
|
|
|
|
#include "fwupd-plugin.h"
|
|
|
|
G_BEGIN_DECLS
|
|
|
|
GVariant *fwupd_plugin_to_variant (FwupdPlugin *plugin);
|
|
void fwupd_plugin_to_json (FwupdPlugin *plugin,
|
|
JsonBuilder *builder);
|
|
|
|
G_END_DECLS
|
|
|