static svn_error_t * invoke_commit_cb(svn_commit_callback2_t commit_cb, void *commit_baton, svn_fs_t *fs, svn_revnum_t revision, const char *post_commit_errstr, apr_pool_t *scratch_pool) { /* FS interface returns non-const values. */ /* const */ svn_string_t *date; /* const */ svn_string_t *author; svn_commit_info_t *commit_info; if (commit_cb == NULL) return SVN_NO_ERROR; SVN_ERR(svn_fs_revision_prop(&date, fs, revision, SVN_PROP_REVISION_DATE, scratch_pool)); SVN_ERR(svn_fs_revision_prop(&author, fs, revision, SVN_PROP_REVISION_AUTHOR, scratch_pool)); commit_info = svn_create_commit_info(scratch_pool); /* fill up the svn_commit_info structure */ commit_info->revision = revision; commit_info->date = date ? date->data : NULL; commit_info->author = author ? author->data : NULL; commit_info->post_commit_err = post_commit_errstr; /* commit_info->repos_root is not set by the repos layer, only by RA layers */ return svn_error_trace(commit_cb(commit_info, commit_baton, scratch_pool)); }
void i_configure_ev_bapply( GtkWidget * button_apply , gpointer configwin ) { GtkWidget *button_ok = g_object_get_data( G_OBJECT(button_apply) , "bok" ); g_object_set_data( G_OBJECT(button_ok) , "bapply_pressed" , GUINT_TO_POINTER(1) ); commit_cb (button_ok, NULL); }