Exemple #1
0
/* Glorious hack: We seem to have to remind at least some libpurple plugins
   that we're ready because this info may get lost if we give it too early.
   So just do it ten times a second. :-/ */
static gboolean prplcb_xfer_write_request_cb( gpointer data, gint fd, b_input_condition cond )
{
	struct prpl_xfer_data *px = data;
	
	purple_xfer_ui_ready( px->xfer );
	
	return purple_xfer_get_type( px->xfer ) == PURPLE_XFER_RECEIVE;
}
static gboolean ui_got_data(gpointer data){
	PurpleXfer *xfer = (PurpleXfer*) data;
	purple_xfer_ui_ready(xfer);
	return FALSE;
}
void FiletransferRepeater::ui_ready_callback() {
	purple_xfer_ui_ready(m_xfer);
}