Function

GioPollableSourceFunc

Declaration

gboolean
(* GPollableSourceFunc) (
  GObject* pollable_stream,
  gpointer user_data
)

Description [src]

This is the function type of the callback used for the GSource returned by g_pollable_input_stream_create_source() and g_pollable_output_stream_create_source().

Available since:2.28

Parameters

pollable_stream GObject
 

The GPollableInputStream or GPollableOutputStream.

 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.