Method

FwupdClientconnect_async

Declaration [src]

void
fwupd_client_connect_async (
  FwupdClient* self,
  GCancellable* cancellable,
  GAsyncReadyCallback callback,
  gpointer callback_data
)

Description [src]

Sets up the client ready for use. This is probably the first method you call when wanting to use libfwupd in an asynchronous manner.

Other methods such as fwupd_client_get_devices_async() should only be called after fwupd_client_connect_finish() has been called without an error.

Available since:1.5.0

Parameters

cancellable GCancellable
 

Optional GCancellable.

 The argument can be NULL.
 The data is owned by the caller of the function.
callback GAsyncReadyCallback
 

The function to run on completion.

callback_data gpointer
 

The data to pass to callback.