pub type GPollableSourceFunc = Option<unsafe extern "C" fn(pollable_stream: *mut GObject, data: gpointer) -> gboolean>;
Expand description
GPollableSourceFunc: @pollable_stream: the #GPollableInputStream or #GPollableOutputStream @data: data passed in by the user.
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().
Returns: it should return %FALSE if the source should be removed.
Since: 2.28
Aliased Type§
enum GPollableSourceFunc {
None,
Some(unsafe extern "C" fn(*mut _GObject, *mut c_void) -> i32),
}