mirror of
https://git.proxmox.com/git/fwupd
synced 2025-08-06 02:29:47 +00:00

This makes it possible to call GetDevices in an async D-Bus call, and easily construct an array of objects from the return value.
30 lines
874 B
C
30 lines
874 B
C
/*
|
|
* Copyright (C) 2017 Richard Hughes <richard@hughsie.com>
|
|
*
|
|
* SPDX-License-Identifier: LGPL-2.1+
|
|
*/
|
|
|
|
#pragma once
|
|
|
|
#include "fwupd-remote.h"
|
|
|
|
G_BEGIN_DECLS
|
|
|
|
FwupdRemote *fwupd_remote_from_variant (GVariant *value);
|
|
GPtrArray *fwupd_remote_array_from_variant (GVariant *value);
|
|
GVariant *fwupd_remote_to_variant (FwupdRemote *self);
|
|
gboolean fwupd_remote_load_from_filename (FwupdRemote *self,
|
|
const gchar *filename,
|
|
GCancellable *cancellable,
|
|
GError **error);
|
|
void fwupd_remote_set_priority (FwupdRemote *self,
|
|
gint priority);
|
|
void fwupd_remote_set_agreement (FwupdRemote *self,
|
|
const gchar *agreement);
|
|
void fwupd_remote_set_mtime (FwupdRemote *self,
|
|
guint64 mtime);
|
|
gchar **fwupd_remote_get_order_after (FwupdRemote *self);
|
|
gchar **fwupd_remote_get_order_before (FwupdRemote *self);
|
|
|
|
G_END_DECLS
|