gnome_vfs_module_callback_set_default ()

Set the default callback for callback_name to
callback. callback will be called with callback_data on the
same thread as the gnome-vfs operation that invokes it. The default
value is shared for all threads, but setting it is thread-safe.

Use this function to set a temporary callback handler for a single
call or a few calls. You can use
gnome_vfs_module_callback_set_default() to set a callback function
that will establish a permanent global setting for all threads
instead.

Note: destroy_notify may be called on any thread - it is not
guaranteed to be called on the main thread.

callback_name :

name of the module callback to set temporarily.

callback :

function to call when the callback is invoked.

callback_data :

data to pass to callback.

destroy_notify :

function to call when callback_data is to be freed.

gnome_vfs_module_callback_pop ()

void gnome_vfs_module_callback_pop (const char *callback_name);

Remove the temporary handler for callback_name most recently set
with gnome_vfs_module_callback_push(). If another temporary
handler was previously set on the same thread, it becomes the
current handler. Otherwise, the default handler, if any, becomes
current.

The temporary handlers are treated as a first-in first-out
stack.

callback_name :

name of the module callback to remove a temporary handler for.

gnome_vfs_async_module_callback_set_default ()

Set the default async callback for callback_name to
callback. callback will be called with callback_data
from a callback on the main thread. It will be passed a response
function which should be called to signal completion of the callback.
The callback function itself may return in the meantime.

The default value is shared for all threads, but setting it is
thread-safe.

Use this function if you want to globally set a callback handler
for use with async operations.

gnome_vfs_async_module_callback_push ()

Set callback as a temprary async handler for
callback_name. callback will be called with callback_data
from a callback on the main thread. It will be passed a response
function which should be called to signal completion of the
callback. The callback function itself may return in the meantime.

Use this function to set a temporary async callback handler for a
single call or a few calls. You can use
gnome_vfs_async_module_callback_set_default() to set an async
callback function that will establish a permanent global setting
for all threads instead.

Note: destroy_notify may be called on any thread - it is not
guaranteed to be called on the main thread.

callback_name :

name of the module callback to set temporarily.

callback :

function to call when callback is invoked.

callback_data :

data to pass to callback.

destroy_notify :

function to call when callback_data is to be freed.

gnome_vfs_async_module_callback_pop ()

void gnome_vfs_async_module_callback_pop
(const char *callback_name);

Remove the temporary async handler for callback_name most recently
set with gnome_vfs_async_module_callback_push(). If another
temporary async handler was previously set on the same thread, it
becomes the current handler. Otherwise, the default async handler,
if any, becomes current.

The temporary async handlers are treated as a first-in first-out
stack.