Method

FwupdPluginContextadd_timeout_seconds

since: 2.1.8

Declaration [src]

GSource*
fu_context_add_timeout_seconds (
  FuContext* self,
  guint interval,
  GSourceFunc function,
  gpointer data
)

Description [src]

Creates a new timeout source and attaches it to the main context.

Available since: 2.1.8

Parameters

interval

Type: guint

Timeout interval in seconds.

function

Type: GSourceFunc

Function to call.

data

Type: gpointer

Data to pass to function.

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

Return value

Type: GSource

The GSource, which must be removed with g_source_unref().

The caller of the method takes ownership of the returned data, and is responsible for freeing it.