mirror of
https://git.proxmox.com/git/fwupd
synced 2025-06-05 10:17:40 +00:00

A user can place a JSON file in /etc/fwupd/bios-settings.d/ with the default desired policy for the machine. fwupd will load this policy on startup to ensure BIOS settings are set as desired by the system administrator.
27 lines
666 B
C
27 lines
666 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-settings.h"
|
|
|
|
gboolean
|
|
fu_bios_settings_setup(FuBiosSettings *self, GError **error);
|
|
|
|
GPtrArray *
|
|
fu_bios_settings_get_all(FuBiosSettings *self);
|
|
|
|
GVariant *
|
|
fu_bios_settings_to_variant(FuBiosSettings *self, gboolean trusted);
|
|
gboolean
|
|
fu_bios_settings_from_json(FuBiosSettings *self, JsonNode *json_node, GError **error);
|
|
gboolean
|
|
fu_bios_settings_from_json_file(FuBiosSettings *self, const gchar *fn, GError **error);
|
|
GHashTable *
|
|
fu_bios_settings_to_hash_kv(FuBiosSettings *self);
|