Main Page | Modules | Data Structures | File List | Data Fields | Globals | Related Pages

svn_diff_fns_t Struct Reference

A vtable for reading data from the three datasources. More...

#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.


Detailed Description

A vtable for reading data from the three datasources.

Definition at line 103 of file svn_diff.h.


Field Documentation

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.


The documentation for this struct was generated from the following file:
Generated on Mon Jun 19 20:42:20 2006 for Subversion by doxygen 1.3.5