mirror of
https://git.proxmox.com/git/fwupd
synced 2025-06-13 13:27:47 +00:00
56 lines
1.7 KiB
C
56 lines
1.7 KiB
C
/*
|
|
* Copyright (C) 2015 Richard Hughes <richard@hughsie.com>
|
|
*
|
|
* SPDX-License-Identifier: LGPL-2.1+
|
|
*/
|
|
|
|
#pragma once
|
|
|
|
#include <glib-object.h>
|
|
|
|
#include "fu-device.h"
|
|
|
|
#define FU_TYPE_PENDING (fu_history_get_type())
|
|
G_DECLARE_FINAL_TYPE(FuHistory, fu_history, FU, HISTORY, GObject)
|
|
|
|
FuHistory *
|
|
fu_history_new(void);
|
|
|
|
gboolean
|
|
fu_history_add_device(FuHistory *self, FuDevice *device, FwupdRelease *release, GError **error);
|
|
gboolean
|
|
fu_history_modify_device(FuHistory *self, FuDevice *device, GError **error);
|
|
gboolean
|
|
fu_history_set_device_metadata(FuHistory *self,
|
|
const gchar *device_id,
|
|
GHashTable *metadata,
|
|
GError **error);
|
|
gboolean
|
|
fu_history_remove_device(FuHistory *self, FuDevice *device, GError **error);
|
|
gboolean
|
|
fu_history_remove_all(FuHistory *self, GError **error);
|
|
FuDevice *
|
|
fu_history_get_device_by_id(FuHistory *self, const gchar *device_id, GError **error);
|
|
GPtrArray *
|
|
fu_history_get_devices(FuHistory *self, GError **error);
|
|
|
|
gboolean
|
|
fu_history_clear_approved_firmware(FuHistory *self, GError **error);
|
|
gboolean
|
|
fu_history_add_approved_firmware(FuHistory *self, const gchar *checksum, GError **error);
|
|
GPtrArray *
|
|
fu_history_get_approved_firmware(FuHistory *self, GError **error);
|
|
gboolean
|
|
fu_history_clear_blocked_firmware(FuHistory *self, GError **error);
|
|
gboolean
|
|
fu_history_add_blocked_firmware(FuHistory *self, const gchar *checksum, GError **error);
|
|
GPtrArray *
|
|
fu_history_get_blocked_firmware(FuHistory *self, GError **error);
|
|
gboolean
|
|
fu_history_add_security_attribute(FuHistory *self,
|
|
const gchar *security_attr_json,
|
|
const gchar *hsi_score,
|
|
GError **error);
|
|
GPtrArray *
|
|
fu_history_get_security_attrs(FuHistory *self, guint limit, GError **error);
|