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

void gw_obex_set_progress_callback ( GwObex ctx,
gw_obex_progress_cb_t  callback,
gpointer  data 
)

Set function to be called when progress for a put or get operation happens. Only used for the synchronous transfer functions.

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

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

                                                                                               {
    GW_OBEX_LOCK(ctx);
    ctx->pr_cb = callback;
    ctx->pr_data = data;
    GW_OBEX_UNLOCK(ctx);
}


Generated by  Doxygen 1.6.0   Back to index