GLib.Source.prototype.set_callback_indirect

function set_callback_indirect(callback_data: void, callback_funcs: GLib.SourceCallbackFuncs): void {
    // Gjs wrapper for g_source_set_callback_indirect()
}
  

Sets the callback function storing the data as a refcounted callback "object". This is used internally. Note that calling GLib.Source.prototype.set_callback_indirect assumes an initial reference count on callback_data, and thus callback_funcs->unref will eventually be called once more than callback_funcs->ref.

callback_data

pointer to callback data "object"

callback_funcs

functions for reference counting callback_data and getting the callback and data