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 | |
| 12 | G_BEGIN_DECLS |
| 13 | |
Richard Hughes | 2c0635a | 2018-09-04 14:52:46 +0100 | [diff] [blame] | 14 | GPtrArray *fu_device_get_parent_guids (FuDevice *self); |
| 15 | gboolean fu_device_has_parent_guid (FuDevice *self, |
Richard Hughes | 5e44729 | 2018-04-27 14:25:54 +0100 | [diff] [blame] | 16 | const gchar *guid); |
Richard Hughes | 841c180 | 2018-09-07 15:32:32 +0100 | [diff] [blame] | 17 | void fu_device_set_parent (FuDevice *self, |
| 18 | FuDevice *parent); |
Richard Hughes | 2c0635a | 2018-09-04 14:52:46 +0100 | [diff] [blame] | 19 | guint fu_device_get_order (FuDevice *self); |
| 20 | void fu_device_set_order (FuDevice *self, |
Richard Hughes | 9f86ade | 2018-05-10 21:11:22 +0100 | [diff] [blame] | 21 | guint order); |
Richard Hughes | 2c0635a | 2018-09-04 14:52:46 +0100 | [diff] [blame] | 22 | guint fu_device_get_priority (FuDevice *self); |
| 23 | void fu_device_set_priority (FuDevice *self, |
Richard Hughes | 81c427c | 2018-08-06 15:20:17 +0100 | [diff] [blame] | 24 | guint priority); |
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, |
| 28 | GError **error); |
Mario Limonciello | 7a3df4b | 2019-01-31 10:27:22 -0600 | [diff] [blame] | 29 | void fu_device_incorporate_from_component (FuDevice *device, |
| 30 | XbNode *component); |
Richard Hughes | 1bc4323 | 2019-02-05 19:07:42 +0000 | [diff] [blame] | 31 | void fu_device_convert_instance_ids (FuDevice *self); |
Richard Hughes | 5e44729 | 2018-04-27 14:25:54 +0100 | [diff] [blame] | 32 | |
Richard Hughes | 9dde04f | 2017-09-13 12:07:15 +0100 | [diff] [blame] | 33 | G_END_DECLS |