Type Alias GSocketSourceFunc

Source
pub type GSocketSourceFunc = Option<unsafe extern "C" fn(socket: *mut GSocket, condition: GIOCondition, data: gpointer) -> gboolean>;
Expand description

GSocketSourceFunc: @socket: the #GSocket @condition: the current condition at the source fired. @data: data passed in by the user.

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

Returns: it should return %FALSE if the source should be removed.

Since: 2.22

Aliased Type§

enum GSocketSourceFunc {
    None,
    Some(unsafe extern "C" fn(*mut _GSocket, u32, *mut c_void) -> i32),
}

Variants§

§1.0.0

None

No value.

§1.0.0

Some(unsafe extern "C" fn(*mut _GSocket, u32, *mut c_void) -> i32)

Some value of type T.