mirror of
https://git.proxmox.com/git/fwupd
synced 2025-08-05 00:38:35 +00:00

In the future we'll want to use this flag to signify if the release is an upgrade, downgrade, below the version-lowest, or if it is locked in some way.
33 lines
983 B
C
33 lines
983 B
C
/*
|
|
* Copyright (C) 2015-2018 Richard Hughes <richard@hughsie.com>
|
|
*
|
|
* SPDX-License-Identifier: LGPL-2.1+
|
|
*/
|
|
|
|
#pragma once
|
|
|
|
#include <glib-object.h>
|
|
#include <xmlb.h>
|
|
|
|
#include "fu-device.h"
|
|
|
|
G_BEGIN_DECLS
|
|
|
|
#define FU_TYPE_TASK (fu_install_task_get_type ())
|
|
G_DECLARE_FINAL_TYPE (FuInstallTask, fu_install_task, FU, INSTALL_TASK, GObject)
|
|
|
|
FuInstallTask *fu_install_task_new (FuDevice *device,
|
|
XbNode *component);
|
|
FuDevice *fu_install_task_get_device (FuInstallTask *self);
|
|
XbNode *fu_install_task_get_component (FuInstallTask *self);
|
|
FwupdReleaseFlags fu_install_task_get_trust_flags (FuInstallTask *self);
|
|
gboolean fu_install_task_get_is_downgrade (FuInstallTask *self);
|
|
gboolean fu_install_task_check_requirements (FuInstallTask *self,
|
|
FwupdInstallFlags flags,
|
|
GError **error);
|
|
const gchar *fu_install_task_get_action_id (FuInstallTask *self);
|
|
gint fu_install_task_compare (FuInstallTask *task1,
|
|
FuInstallTask *task2);
|
|
|
|
G_END_DECLS
|