Method

FwupdClientadd_connect_func

since: 2.1.8

Declaration [src]

void
fwupd_client_add_connect_func (
  FwupdClient* self,
  FwupdClientConnectFunc func,
  gpointer user_data,
  GDestroyNotify user_data_destroy
)

Description [src]

Adds a function to run after the connection has been completed. For example, checking that the client version matches the daemon version.

Available since: 2.1.8

Parameters

func

Type: FwupdClientConnectFunc

A FwupdClientConnectFunc.

user_data

Type: gpointer

Userdata to use with both func and user_data_destroy.

The argument can be NULL.
The data is owned by the caller of the method.
user_data_destroy

Type: GDestroyNotify

Function to destroy user_data when self is finalized.

The argument can be NULL.