fwupd/libfwupdplugin/fu-backend-private.h
Richard Hughes bfebede490 Add support for platform capability descriptors so devices can set quirks
This feature adds support for platform capability BOS descriptors which allows
the device itself to ship quirk data.

Use `sudo fwupdtool get-devices --save-backends=FILENAME` to save fake backend
devices to a file. This allows easy creation of self tests that do not require
physical hardware.
2022-09-13 12:07:35 +01:00

23 lines
421 B
C

/*
* Copyright (C) 2022 Richard Hughes <richard@hughsie.com>
*
* SPDX-License-Identifier: LGPL-2.1+
*/
#pragma once
#include "fu-backend.h"
gboolean
fu_backend_load(FuBackend *self,
JsonObject *json_object,
const gchar *tag,
FuBackendLoadFlags flags,
GError **error);
gboolean
fu_backend_save(FuBackend *self,
JsonBuilder *json_builder,
const gchar *tag,
FuBackendSaveFlags flags,
GError **error);