Richard Hughes | 02c90d8 | 2018-08-09 12:13:03 +0100 | [diff] [blame] | 1 | /* |
Richard Hughes | 9dde04f | 2017-09-13 12:07:15 +0100 | [diff] [blame] | 2 | * Copyright (C) 2017 Richard Hughes <richard@hughsie.com> |
| 3 | * |
Mario Limonciello | 51308e6 | 2018-05-28 20:05:46 -0500 | [diff] [blame] | 4 | * SPDX-License-Identifier: LGPL-2.1+ |
Richard Hughes | 9dde04f | 2017-09-13 12:07:15 +0100 | [diff] [blame] | 5 | */ |
| 6 | |
Richard Hughes | bfd946e | 2019-02-09 08:21:40 +0000 | [diff] [blame] | 7 | #pragma once |
Richard Hughes | 9dde04f | 2017-09-13 12:07:15 +0100 | [diff] [blame] | 8 | |
| 9 | #include <fu-device.h> |
Mario Limonciello | 7a3df4b | 2019-01-31 10:27:22 -0600 | [diff] [blame] | 10 | #include <xmlb.h> |
Richard Hughes | 9dde04f | 2017-09-13 12:07:15 +0100 | [diff] [blame] | 11 | |
Richard Hughes | 51a869a | 2019-10-07 11:23:42 +0100 | [diff] [blame] | 12 | #define fu_device_set_plugin(d,v) fwupd_device_set_plugin(FWUPD_DEVICE(d),v) |
| 13 | |
Richard Hughes | cf10029 | 2021-01-04 10:36:37 +0000 | [diff] [blame] | 14 | const gchar *fu_device_internal_flag_to_string (FuDeviceInternalFlags flag); |
| 15 | FuDeviceInternalFlags fu_device_internal_flag_from_string (const gchar *flag); |
| 16 | |
Richard Hughes | 2c0635a | 2018-09-04 14:52:46 +0100 | [diff] [blame] | 17 | GPtrArray *fu_device_get_parent_guids (FuDevice *self); |
| 18 | gboolean fu_device_has_parent_guid (FuDevice *self, |
Richard Hughes | 5e44729 | 2018-04-27 14:25:54 +0100 | [diff] [blame] | 19 | const gchar *guid); |
Richard Hughes | 841c180 | 2018-09-07 15:32:32 +0100 | [diff] [blame] | 20 | void fu_device_set_parent (FuDevice *self, |
| 21 | FuDevice *parent); |
Richard Hughes | b7fbb07 | 2020-09-13 15:08:16 +0100 | [diff] [blame] | 22 | gint fu_device_get_order (FuDevice *self); |
Richard Hughes | 2c0635a | 2018-09-04 14:52:46 +0100 | [diff] [blame] | 23 | void fu_device_set_order (FuDevice *self, |
Richard Hughes | b7fbb07 | 2020-09-13 15:08:16 +0100 | [diff] [blame] | 24 | gint order); |
Richard Hughes | 2c0635a | 2018-09-04 14:52:46 +0100 | [diff] [blame] | 25 | void fu_device_set_alternate (FuDevice *self, |
Richard Hughes | e48351e | 2018-06-22 12:32:39 +0100 | [diff] [blame] | 26 | FuDevice *alternate); |
Richard Hughes | c125ec0 | 2018-09-05 19:35:17 +0100 | [diff] [blame] | 27 | gboolean fu_device_ensure_id (FuDevice *self, |
Richard Hughes | a2abc42 | 2020-12-22 09:38:59 +0000 | [diff] [blame] | 28 | GError **error) |
| 29 | G_GNUC_WARN_UNUSED_RESULT; |
Mario Limonciello | 7a3df4b | 2019-01-31 10:27:22 -0600 | [diff] [blame] | 30 | void fu_device_incorporate_from_component (FuDevice *device, |
| 31 | XbNode *component); |
Richard Hughes | 1bc4323 | 2019-02-05 19:07:42 +0000 | [diff] [blame] | 32 | void fu_device_convert_instance_ids (FuDevice *self); |
Richard Hughes | d8a8d5e | 2019-10-08 13:05:02 +0100 | [diff] [blame] | 33 | gchar *fu_device_get_guids_as_str (FuDevice *self); |
Richard Hughes | 51a869a | 2019-10-07 11:23:42 +0100 | [diff] [blame] | 34 | GPtrArray *fu_device_get_possible_plugins (FuDevice *self); |
Richard Hughes | 6d257cb | 2020-10-27 09:41:43 +0000 | [diff] [blame] | 35 | void fu_device_add_possible_plugin (FuDevice *self, |
| 36 | const gchar *plugin); |