mirror of
https://git.proxmox.com/git/fwupd
synced 2025-05-14 21:57:34 +00:00

This exports FuSecurityAttrs into libfwupdplugin so that we can pass the plugins this object rather than a 'bare' GPtrArray. This greatly simplifies the object ownership, and also allows us to check the object type before adding. In the future we could also check for duplicate appstream IDs or missing properties at insertion time. This change also changes the fu_plugin_add_security_attrs() to not return an error. This forces the plugin to handle the error, storing the failure in the attribute itself. Only the plugin know if a missing file it needs to read indicates a runtime problem or a simple failure to obtain a specific HSI level.
47 lines
1.4 KiB
C
47 lines
1.4 KiB
C
/*
|
|
* Copyright (C) 2015 Richard Hughes <richard@hughsie.com>
|
|
*
|
|
* SPDX-License-Identifier: LGPL-2.1+
|
|
*/
|
|
|
|
#pragma once
|
|
|
|
/**
|
|
* SECTION:fwupdplugin
|
|
* @short_description: Helper objects for plugins interacting with fwupd daemon
|
|
*/
|
|
|
|
#define __FWUPDPLUGIN_H_INSIDE__
|
|
|
|
#include <libfwupdplugin/fu-archive.h>
|
|
#include <libfwupdplugin/fu-chunk.h>
|
|
#include <libfwupdplugin/fu-common.h>
|
|
#include <libfwupdplugin/fu-common-cab.h>
|
|
#include <libfwupdplugin/fu-common-guid.h>
|
|
#include <libfwupdplugin/fu-common-version.h>
|
|
#include <libfwupdplugin/fu-device.h>
|
|
#include <libfwupdplugin/fu-device-locker.h>
|
|
#include <libfwupdplugin/fu-device-metadata.h>
|
|
#include <libfwupdplugin/fu-dfu-firmware.h>
|
|
#include <libfwupdplugin/fu-firmware.h>
|
|
#include <libfwupdplugin/fu-firmware-common.h>
|
|
#include <libfwupdplugin/fu-firmware-image.h>
|
|
#include <libfwupdplugin/fu-hwids.h>
|
|
#include <libfwupdplugin/fu-ihex-firmware.h>
|
|
#include <libfwupdplugin/fu-io-channel.h>
|
|
#include <libfwupdplugin/fu-plugin.h>
|
|
#include <libfwupdplugin/fu-plugin-vfuncs.h>
|
|
#include <libfwupdplugin/fu-quirks.h>
|
|
#include <libfwupdplugin/fu-security-attrs.h>
|
|
#include <libfwupdplugin/fu-smbios.h>
|
|
#include <libfwupdplugin/fu-srec-firmware.h>
|
|
#include <libfwupdplugin/fu-efivar.h>
|
|
#include <libfwupdplugin/fu-udev-device.h>
|
|
#include <libfwupdplugin/fu-usb-device.h>
|
|
|
|
#ifndef FWUPD_DISABLE_DEPRECATED
|
|
#include <libfwupdplugin/fu-deprecated.h>
|
|
#endif
|
|
|
|
#undef __FWUPDPLUGIN_H_INSIDE__
|