fwupd/libfwupdplugin/fu-security-attr.h
Richard Hughes 77006b75eb Set the target value on the security attribute
Semantically it is the desire of the security attribute, not the bios
attribute, i.e. you could imagine that a specific attribute would have
to be *foo or bar or baz* for HSI-1 and *only foo* for HSI-2

Also make it easier to add possible BIOS attribute target values in
plugin code.
2022-08-01 07:12:18 +01:00

26 lines
635 B
C

/*
* Copyright (C) 2022 Richard Hughes <richard@hughsie.com>
*
* SPDX-License-Identifier: LGPL-2.1+
*/
#pragma once
#include <libfwupd/fwupd-security-attr.h>
#include "fu-context.h"
#define FU_TYPE_SECURITY_ATTR (fu_security_attr_get_type())
G_DECLARE_DERIVABLE_TYPE(FuSecurityAttr, fu_security_attr, FU, SECURITY_ATTR, FwupdSecurityAttr)
struct _FuSecurityAttrClass {
FwupdSecurityAttrClass parent_class;
};
FwupdSecurityAttr *
fu_security_attr_new(FuContext *ctx, const gchar *appstream_id);
void
fu_security_attr_add_bios_target_value(FwupdSecurityAttr *attr,
const gchar *id,
const gchar *needle);