mirror of
https://git.proxmox.com/git/fwupd
synced 2025-05-18 00:31:54 +00:00

This feature is turned on with the new fwupdtool option `--enable-json-state` The intended use case is for ChromeOS to be able to save information about devices on the system when `fwupdtool update` was run to display in the UX at a later time.
27 lines
613 B
C
27 lines
613 B
C
/*
|
|
* Copyright (C) 2017 Richard Hughes <richard@hughsie.com>
|
|
*
|
|
* SPDX-License-Identifier: LGPL-2.1+
|
|
*/
|
|
|
|
#pragma once
|
|
|
|
#include <glib-object.h>
|
|
#include <json-glib/json-glib.h>
|
|
|
|
#include "fwupd-device.h"
|
|
|
|
G_BEGIN_DECLS
|
|
|
|
FwupdDevice *fwupd_device_from_variant (GVariant *data);
|
|
GVariant *fwupd_device_to_variant (FwupdDevice *device);
|
|
GVariant *fwupd_device_to_variant_full (FwupdDevice *device,
|
|
FwupdDeviceFlags flags);
|
|
void fwupd_device_incorporate (FwupdDevice *self,
|
|
FwupdDevice *donor);
|
|
void fwupd_device_to_json (FwupdDevice *device,
|
|
JsonBuilder *builder);
|
|
|
|
G_END_DECLS
|
|
|