GSourceFuncs.dispatch

Called to dispatch the event source, after it has returned true in either its @prepare or its @check function, or if a ready time has been reached. The @dispatch function receives a callback function and user data. The callback function may be null if the source was never connected to a callback using glib.source.Source.setCallback. The @dispatch function should call the callback function with @user_data and whatever additional parameters are needed for this type of event source. The return value of the @dispatch function should be G_SOURCE_REMOVE if the source should be removed or G_SOURCE_CONTINUE to keep it.

struct GSourceFuncs
extern (C)
bool function(GSource* source, GSourceFunc callback, void* userData) dispatch;