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.

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.

    ctx->dc_cb = callback;
    ctx->dc_data = data;

Generated by  Doxygen 1.6.0   Back to index