fwupd/libfwupdplugin/fu-security-attrs.h
Richard Hughes fb0a938f6c Cache the FuSecurityAttrs in the daemon
At the moment at startup we're calculating the attrs so we can export the HSI
string property on the D-Bus interface. Running `fwupdtool security` actually
gets all the security attributes at least twice!
2020-07-03 20:47:28 +01:00

20 lines
495 B
C

/*
* Copyright (C) 2020 Richard Hughes <richard@hughsie.com>
*
* SPDX-License-Identifier: LGPL-2.1+
*/
#pragma once
#include <glib-object.h>
#include "fwupd-security-attr-private.h"
#define FU_TYPE_SECURITY_ATTRS (fu_security_attrs_get_type ())
G_DECLARE_FINAL_TYPE (FuSecurityAttrs, fu_security_attrs, FU, SECURITY_ATTRS, GObject)
void fu_security_attrs_append (FuSecurityAttrs *self,
FwupdSecurityAttr *attr);
void fu_security_attrs_remove_all (FuSecurityAttrs *self);