Struct
GLibSource
Description [src]
struct GSource {
/* No available fields */
}
The GSource
struct is an opaque data type
representing an event source.
Functions
g_source_remove_by_funcs_user_data
Removes a source from the default main loop context given the source functions and user data.
g_source_remove_by_user_data
Removes a source from the default main loop context given the user data for the callback.
Instance methods
g_source_dup_context
Gets a reference to the GMainContext
with which the source is associated.
unstable since: 2.86
g_source_get_current_time
This function ignores source
and is otherwise the same as
g_get_current_time()
.
deprecated: 2.28
g_source_modify_unix_fd
Updates the event mask to watch for the file descriptor identified by tag
.
since: 2.36
g_source_query_unix_fd
Queries the events reported for the file descriptor corresponding to tag
on source
during the last poll.
since: 2.36
g_source_remove_poll
Removes a file descriptor from the set of file descriptors polled for this source.
g_source_remove_unix_fd
Reverses the effect of a previous call to g_source_add_unix_fd()
.
since: 2.36
g_source_set_callback
Sets the callback function for a source. The callback for a source is called from the source’s dispatch function.
g_source_set_callback_indirect
Sets the callback function storing the data as a reference counted callback ‘object’.
g_source_set_ready_time
Sets a source to be dispatched when the given monotonic time is reached (or passed).
since: 2.36
g_source_set_static_name
A variant of g_source_set_name()
that does not
duplicate the name
, and can only be used with
string literals.
since: 2.70