Utility method for
implementations. Creates a new
GSource that expects a callback of
GPollableSourceFunc. The new source does not actually do
anything on its own; use
g_source_add_child_source() to add other
sources to it to cause it to trigger.
Available since: 2.28
The stream associated with the new source.
The data is owned by the caller of the function.
|The caller of the function takes ownership of the data, and is responsible for freeing it.|