fwupd/libfwupdplugin/fu-bios-settings-private.h
Mario Limonciello 04c2186edc Add support for loading default BIOS settings policy
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.
2022-08-24 12:59:42 -05:00

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