Logo Search packages:      
Sourcecode: obexd version File versions  Download package

void gw_obex_set_cancel_callback ( GwObex ctx,
gw_obex_cancel_cb_t  callback,
gpointer  data 
)

Set function to be called to check if the current operation should be canceled. In the GNOME VFS case the callback function should be gnome_vfs_cancellation_check(). The callback function should return TRUE if the operation should be canceled and FALSE othervice.

Only used for the synchronous transfer functions.

Parameters:
ctx Pointer returned by gw_obex_setup()
callback Function to call
data Pointer to pass to the callback function

Definition at line 278 of file gw-obex.c.

                                                                                           {
    GW_OBEX_LOCK(ctx);
    ctx->cancel_cb = callback;
    ctx->cancel_data = data;
    GW_OBEX_UNLOCK(ctx);
}


Generated by  Doxygen 1.6.0   Back to index