Function

GioCancellableSourceFunc

Declaration

gboolean
(* GCancellableSourceFunc) (
  GCancellable* cancellable,
  gpointer user_data
)

Description [src]

This is the function type of the callback used for the GSource returned by g_cancellable_source_new().

Available since:2.28

Parameters

cancellable GCancellable
 

The GCancellable.

 The argument can be NULL.
 The data is owned by the caller of the function.
user_data gpointer
 

Data passed in by the user.

Return value

Returns: gboolean
 

It should return FALSE if the source should be removed.