mirror of
https://git.proxmox.com/git/fwupd
synced 2025-08-04 11:53:05 +00:00

The only information that is secret is the `current_value`. Augment the d-bus call to determine whether the caller needs this information. * If `fwupdmgr` is launched as root it will be provided. * If `fwupdmgr` is launched with `--authenticate` it will be requested and PK will be engaged.
23 lines
478 B
C
23 lines
478 B
C
/*
|
|
* Copyright (C) 2022 Mario Limonciello <mario.limonciello@amd.com>
|
|
*
|
|
* SPDX-License-Identifier: LGPL-2.1+
|
|
*/
|
|
|
|
#pragma once
|
|
|
|
#include <json-glib/json-glib.h>
|
|
|
|
#include "fu-bios-attrs.h"
|
|
|
|
gboolean
|
|
fu_bios_attrs_setup(FuBiosAttrs *self, GError **error);
|
|
|
|
GPtrArray *
|
|
fu_bios_attrs_get_all(FuBiosAttrs *self);
|
|
|
|
GVariant *
|
|
fu_bios_attrs_to_variant(FuBiosAttrs *self, gboolean trusted);
|
|
gboolean
|
|
fu_bios_attrs_from_json(FuBiosAttrs *self, JsonNode *json_node, GError **error);
|