fwupd/libfwupd/fwupd-release-private.h
Mario Limonciello 3143bad0f5 fu-tool: Save device state to @LOCALSTATEDIR@/lib/fwupd/state.json on actions
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.
2019-02-28 10:32:45 -06:00

23 lines
445 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-release.h"
G_BEGIN_DECLS
FwupdRelease *fwupd_release_from_variant (GVariant *data);
GVariant *fwupd_release_to_variant (FwupdRelease *release);
void fwupd_release_to_json (FwupdRelease *release,
JsonBuilder *builder);
G_END_DECLS