blob: 362f42837872ee8472bdfde8f00de3deb4a464f9 [file] [log] [blame]
Richard Hughesb333e002021-04-01 10:40:02 +01001/*
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
13FuContext *fu_context_new (void);
14gboolean fu_context_load_hwinfo (FuContext *self,
15 GError **error);
16gboolean fu_context_load_quirks (FuContext *self,
17 FuQuirksLoadFlags flags,
18 GError **error);
19void fu_context_set_runtime_versions (FuContext *self,
20 GHashTable *runtime_versions);
21void fu_context_set_compile_versions (FuContext *self,
22 GHashTable *compile_versions);
23void fu_context_add_firmware_gtype (FuContext *self,
24 const gchar *id,
25 GType gtype);
26GPtrArray *fu_context_get_firmware_gtype_ids (FuContext *self);
27GType fu_context_get_firmware_gtype_by_id (FuContext *self,
28 const gchar *id);
29GPtrArray *fu_context_get_udev_subsystems (FuContext *self);