Richard Hughes | b333e00 | 2021-04-01 10:40:02 +0100 | [diff] [blame] | 1 | /* |
| 2 | * Copyright (C) 2021 Richard Hughes <richard@hughsie.com> |
| 3 | * |
| 4 | * SPDX-License-Identifier: LGPL-2.1+ |
| 5 | */ |
| 6 | |
| 7 | #pragma once |
| 8 | |
| 9 | #include "fu-context.h" |
| 10 | #include "fu-hwids.h" |
| 11 | #include "fu-quirks.h" |
| 12 | |
| 13 | FuContext *fu_context_new (void); |
| 14 | gboolean fu_context_load_hwinfo (FuContext *self, |
| 15 | GError **error); |
| 16 | gboolean fu_context_load_quirks (FuContext *self, |
| 17 | FuQuirksLoadFlags flags, |
| 18 | GError **error); |
| 19 | void fu_context_set_runtime_versions (FuContext *self, |
| 20 | GHashTable *runtime_versions); |
| 21 | void fu_context_set_compile_versions (FuContext *self, |
| 22 | GHashTable *compile_versions); |
| 23 | void fu_context_add_firmware_gtype (FuContext *self, |
| 24 | const gchar *id, |
| 25 | GType gtype); |
| 26 | GPtrArray *fu_context_get_firmware_gtype_ids (FuContext *self); |
| 27 | GType fu_context_get_firmware_gtype_by_id (FuContext *self, |
| 28 | const gchar *id); |
| 29 | GPtrArray *fu_context_get_udev_subsystems (FuContext *self); |