mirror of
https://git.proxmox.com/git/fwupd
synced 2025-04-28 20:42:48 +00:00

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.
26 lines
635 B
C
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);
|