mirror of
https://git.proxmox.com/git/fwupd
synced 2025-06-02 12:27:15 +00:00

Rather than wrapping every sync D-Bus call with a GTask helper (hundreds of additional lines of code and dozens of new entrypoints in libfwupd) I think it is best for client software wanting async operation just uses the D-Bus interface. I consider it part of the API as much as the shared library and I don't see it changing in a non-compatible way any time soon. Exposing these already-exported symbols allows client software to use the demarshalling functionality and to operate on the GObjects directly from an existing GDBus async return value.
28 lines
753 B
C
28 lines
753 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
|
|
|
|
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
|