set_callback

@accepts(RB.ChunkLoaderCallback, gpointer, GLib.DestroyNotify)
@returns(none)
def set_callback(callback, user_data, destroy_data)

Sets the loader data callback. This will be called with each chunk of data read, or with NULL to indicate the end of the file or that an error has occurred. To determine which of these is the case, call @rb_chunk_loader_get_error.

This must be called before @rb_chunk_loader_start.

callback :

the data/error callback

user_data :

data to pass to the callback

destroy_data :

function to call to destroy user_data