Creates a new
GSource structure. The size is specified to
allow creating structures derived from
GSource that contain
additional data. The size passed in must be at least
The source will not initially be associated with any
and must be added to one with
g_source_attach() before it will be executed.
Structure containing functions that implement the sources behavior.
The data is owned by the caller of the function.
Size of the
GSourcestructure to create.
|The caller of the function takes ownership of the data, and is responsible for freeing it.|