mirror of
https://git.proxmox.com/git/fwupd
synced 2025-05-21 17:32:04 +00:00

Rather than force the GUI to interact with fwupd using threads, provide async versions so thay can be run without blocking the UI thread.
37 lines
1.0 KiB
C
37 lines
1.0 KiB
C
/*
|
|
* Copyright (C) 2016-2020 Richard Hughes <richard@hughsie.com>
|
|
*
|
|
* SPDX-License-Identifier: LGPL-2.1+
|
|
*/
|
|
|
|
#pragma once
|
|
|
|
#include "fwupd-client.h"
|
|
|
|
#ifdef HAVE_GIO_UNIX
|
|
#include <gio/gunixinputstream.h>
|
|
#endif
|
|
|
|
#ifdef HAVE_GIO_UNIX
|
|
void fwupd_client_get_details_stream_async (FwupdClient *self,
|
|
GUnixInputStream *istr,
|
|
GCancellable *cancellable,
|
|
GAsyncReadyCallback callback,
|
|
gpointer callback_data);
|
|
void fwupd_client_install_stream_async (FwupdClient *self,
|
|
const gchar *device_id,
|
|
GUnixInputStream *istr,
|
|
const gchar *filename_hint,
|
|
FwupdInstallFlags install_flags,
|
|
GCancellable *cancellable,
|
|
GAsyncReadyCallback callback,
|
|
gpointer callback_data);
|
|
void fwupd_client_update_metadata_stream_async(FwupdClient *self,
|
|
const gchar *remote_id,
|
|
GUnixInputStream *istr,
|
|
GUnixInputStream *istr_sig,
|
|
GCancellable *cancellable,
|
|
GAsyncReadyCallback callback,
|
|
gpointer callback_data);
|
|
#endif
|