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

void gw_obex_set_disconnect_callback ( GwObex ctx,
gw_obex_disconnect_cb_t  callback,
gpointer  data 
)

Set function to be called when a disconnection happens. You may (and probably should) call gw_obex_close() if this function is called.

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

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

                                                                                                   {
    GW_OBEX_LOCK(ctx);
    ctx->dc_cb = callback;
    ctx->dc_data = data;
    GW_OBEX_UNLOCK(ctx);
}


Generated by  Doxygen 1.6.0   Back to index