#include <svn_diff.h>
Data Fields | |
svn_error_t *(* | datasource_open )(void *diff_baton, svn_diff_datasource_e datasource) |
Open the datasource of type datasource. | |
svn_error_t *(* | datasource_close )(void *diff_baton, svn_diff_datasource_e datasource) |
Close the datasource of type datasource. | |
svn_error_t *(* | datasource_get_next_token )(apr_uint32_t *hash, void **token, void *diff_baton, svn_diff_datasource_e datasource) |
Get the next "token" from the datasource of type datasource. | |
svn_error_t *(* | token_compare )(void *diff_baton, void *ltoken, void *rtoken, int *compare) |
A function for ordering the tokens, resembling 'strcmp' in functionality. | |
void(* | token_discard )(void *diff_baton, void *token) |
Free token from memory, the diff algorithm is done with it. | |
void(* | token_discard_all )(void *diff_baton) |
Free *all* tokens from memory, they're no longer needed. |
Definition at line 103 of file svn_diff.h.
svn_error_t*(* svn_diff_fns_t::token_compare)(void *diff_baton, void *ltoken, void *rtoken, int *compare) |
A function for ordering the tokens, resembling 'strcmp' in functionality.
compare should contain the return value of the comparison: If ltoken and rtoken are "equal", return 0. If ltoken is "less than" rtoken, return a number < 0. If ltoken is "greater than" rtoken, return a number > 0.