fwupd/libfwupdplugin/fu-bios-attrs-private.h
Mario Limonciello 2536bf462c Allow running get-bios-settings without root or PK
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.
2022-08-11 09:52:26 -05:00

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