DragonNest/Common/SVNLib/doc/structsvn__diff__fns__t.html
2024-12-19 09:48:26 +08:00

178 lines
10 KiB
HTML

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html><head><meta http-equiv="Content-Type" content="text/html;charset=UTF-8">
<title>Subversion: svn_diff_fns_t Struct Reference</title>
<link href="doxygen.css" rel="stylesheet" type="text/css">
<link href="tabs.css" rel="stylesheet" type="text/css">
</head><body>
<!-- Generated by Doxygen 1.5.6 -->
<div class="navigation" id="top">
<div class="tabs">
<ul>
<li><a href="index.html"><span>Main&nbsp;Page</span></a></li>
<li><a href="pages.html"><span>Related&nbsp;Pages</span></a></li>
<li><a href="modules.html"><span>Modules</span></a></li>
<li class="current"><a href="annotated.html"><span>Data&nbsp;Structures</span></a></li>
<li><a href="files.html"><span>Files</span></a></li>
<li>
<form action="search.php" method="get">
<table cellspacing="0" cellpadding="0" border="0">
<tr>
<td><label>&nbsp;<u>S</u>earch&nbsp;for&nbsp;</label></td>
<td><input type="text" name="query" value="" size="20" accesskey="s"/></td>
</tr>
</table>
</form>
</li>
</ul>
</div>
<div class="tabs">
<ul>
<li><a href="annotated.html"><span>Data&nbsp;Structures</span></a></li>
<li><a href="functions.html"><span>Data&nbsp;Fields</span></a></li>
</ul>
</div>
</div>
<div class="contents">
<h1>svn_diff_fns_t Struct Reference</h1><!-- doxytag: class="svn_diff_fns_t" -->A vtable for reading data from the three datasources.
<a href="#_details">More...</a>
<p>
<code>#include &lt;<a class="el" href="svn__diff_8h-source.html">svn_diff.h</a>&gt;</code>
<p>
<table border="0" cellpadding="0" cellspacing="0">
<tr><td></td></tr>
<tr><td colspan="2"><br><h2>Data Fields</h2></td></tr>
<tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="el" href="structsvn__error__t.html">svn_error_t</a> *(*&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="structsvn__diff__fns__t.html#9de7c378e176277b51dd438a3e9158f5">datasource_open</a> )(void *diff_baton, <a class="el" href="svn__diff_8h.html#8821c640a150d0ddead17596dabc26e1">svn_diff_datasource_e</a> datasource)</td></tr>
<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">Open the datasource of type <em>datasource</em>. <a href="#9de7c378e176277b51dd438a3e9158f5"></a><br></td></tr>
<tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="el" href="structsvn__error__t.html">svn_error_t</a> *(*&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="structsvn__diff__fns__t.html#58095cafe798d6f37793ddd03ba2a851">datasource_close</a> )(void *diff_baton, <a class="el" href="svn__diff_8h.html#8821c640a150d0ddead17596dabc26e1">svn_diff_datasource_e</a> datasource)</td></tr>
<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">Close the datasource of type <em>datasource</em>. <a href="#58095cafe798d6f37793ddd03ba2a851"></a><br></td></tr>
<tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="el" href="structsvn__error__t.html">svn_error_t</a> *(*&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="structsvn__diff__fns__t.html#c4e5d312b417802edf270cb5ca61b822">datasource_get_next_token</a> )(apr_uint32_t *hash, void **token, void *diff_baton, <a class="el" href="svn__diff_8h.html#8821c640a150d0ddead17596dabc26e1">svn_diff_datasource_e</a> datasource)</td></tr>
<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">Get the next "token" from the datasource of type <em>datasource</em>. <a href="#c4e5d312b417802edf270cb5ca61b822"></a><br></td></tr>
<tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="el" href="structsvn__error__t.html">svn_error_t</a> *(*&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="structsvn__diff__fns__t.html#6232ef80189579c47e622be8d26166e0">token_compare</a> )(void *diff_baton, void *ltoken, void *rtoken, int *compare)</td></tr>
<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">A function for ordering the tokens, resembling 'strcmp' in functionality. <a href="#6232ef80189579c47e622be8d26166e0"></a><br></td></tr>
<tr><td class="memItemLeft" nowrap align="right" valign="top">void(*&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="structsvn__diff__fns__t.html#80562558b08b804e92ef907e2e05ee3f">token_discard</a> )(void *diff_baton, void *token)</td></tr>
<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">Free <em>token</em> from memory, the diff algorithm is done with it. <a href="#80562558b08b804e92ef907e2e05ee3f"></a><br></td></tr>
<tr><td class="memItemLeft" nowrap align="right" valign="top">void(*&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="structsvn__diff__fns__t.html#8e666d5c46e91374629e69142909b2db">token_discard_all</a> )(void *diff_baton)</td></tr>
<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">Free *all* tokens from memory, they're no longer needed. <a href="#8e666d5c46e91374629e69142909b2db"></a><br></td></tr>
</table>
<hr><a name="_details"></a><h2>Detailed Description</h2>
A vtable for reading data from the three datasources.
<p>
<p>Definition at line <a class="el" href="svn__diff_8h-source.html#l00103">103</a> of file <a class="el" href="svn__diff_8h-source.html">svn_diff.h</a>.</p>
<hr><h2>Field Documentation</h2>
<a class="anchor" name="9de7c378e176277b51dd438a3e9158f5"></a><!-- doxytag: member="svn_diff_fns_t::datasource_open" ref="9de7c378e176277b51dd438a3e9158f5" args=")(void *diff_baton, svn_diff_datasource_e datasource)" -->
<div class="memitem">
<div class="memproto">
<table class="memname">
<tr>
<td class="memname"><a class="el" href="structsvn__error__t.html">svn_error_t</a>*(* <a class="el" href="structsvn__diff__fns__t.html#9de7c378e176277b51dd438a3e9158f5">svn_diff_fns_t::datasource_open</a>)(void *diff_baton, <a class="el" href="svn__diff_8h.html#8821c640a150d0ddead17596dabc26e1">svn_diff_datasource_e</a> datasource) </td>
</tr>
</table>
</div>
<div class="memdoc">
<p>
Open the datasource of type <em>datasource</em>.
<p>
</div>
</div><p>
<a class="anchor" name="58095cafe798d6f37793ddd03ba2a851"></a><!-- doxytag: member="svn_diff_fns_t::datasource_close" ref="58095cafe798d6f37793ddd03ba2a851" args=")(void *diff_baton, svn_diff_datasource_e datasource)" -->
<div class="memitem">
<div class="memproto">
<table class="memname">
<tr>
<td class="memname"><a class="el" href="structsvn__error__t.html">svn_error_t</a>*(* <a class="el" href="structsvn__diff__fns__t.html#58095cafe798d6f37793ddd03ba2a851">svn_diff_fns_t::datasource_close</a>)(void *diff_baton, <a class="el" href="svn__diff_8h.html#8821c640a150d0ddead17596dabc26e1">svn_diff_datasource_e</a> datasource) </td>
</tr>
</table>
</div>
<div class="memdoc">
<p>
Close the datasource of type <em>datasource</em>.
<p>
</div>
</div><p>
<a class="anchor" name="c4e5d312b417802edf270cb5ca61b822"></a><!-- doxytag: member="svn_diff_fns_t::datasource_get_next_token" ref="c4e5d312b417802edf270cb5ca61b822" args=")(apr_uint32_t *hash, void **token, void *diff_baton, svn_diff_datasource_e datasource)" -->
<div class="memitem">
<div class="memproto">
<table class="memname">
<tr>
<td class="memname"><a class="el" href="structsvn__error__t.html">svn_error_t</a>*(* <a class="el" href="structsvn__diff__fns__t.html#c4e5d312b417802edf270cb5ca61b822">svn_diff_fns_t::datasource_get_next_token</a>)(apr_uint32_t *hash, void **token, void *diff_baton, <a class="el" href="svn__diff_8h.html#8821c640a150d0ddead17596dabc26e1">svn_diff_datasource_e</a> datasource) </td>
</tr>
</table>
</div>
<div class="memdoc">
<p>
Get the next "token" from the datasource of type <em>datasource</em>.
<p>
Return a "token" in <em>*token</em>. Return a hash of "token" in <em>*hash</em>. Leave <em>token</em> and <em>hash</em> untouched when the datasource is exhausted.
</div>
</div><p>
<a class="anchor" name="6232ef80189579c47e622be8d26166e0"></a><!-- doxytag: member="svn_diff_fns_t::token_compare" ref="6232ef80189579c47e622be8d26166e0" args=")(void *diff_baton, void *ltoken, void *rtoken, int *compare)" -->
<div class="memitem">
<div class="memproto">
<table class="memname">
<tr>
<td class="memname"><a class="el" href="structsvn__error__t.html">svn_error_t</a>*(* <a class="el" href="structsvn__diff__fns__t.html#6232ef80189579c47e622be8d26166e0">svn_diff_fns_t::token_compare</a>)(void *diff_baton, void *ltoken, void *rtoken, int *compare) </td>
</tr>
</table>
</div>
<div class="memdoc">
<p>
A function for ordering the tokens, resembling 'strcmp' in functionality.
<p>
<em>compare</em> should contain the return value of the comparison: If <em>ltoken</em> and <em>rtoken</em> are "equal", return 0. If <em>ltoken</em> is "less than" <em>rtoken</em>, return a number &lt; 0. If <em>ltoken</em> is "greater than" <em>rtoken</em>, return a number &gt; 0.
</div>
</div><p>
<a class="anchor" name="80562558b08b804e92ef907e2e05ee3f"></a><!-- doxytag: member="svn_diff_fns_t::token_discard" ref="80562558b08b804e92ef907e2e05ee3f" args=")(void *diff_baton, void *token)" -->
<div class="memitem">
<div class="memproto">
<table class="memname">
<tr>
<td class="memname">void(* <a class="el" href="structsvn__diff__fns__t.html#80562558b08b804e92ef907e2e05ee3f">svn_diff_fns_t::token_discard</a>)(void *diff_baton, void *token) </td>
</tr>
</table>
</div>
<div class="memdoc">
<p>
Free <em>token</em> from memory, the diff algorithm is done with it.
<p>
</div>
</div><p>
<a class="anchor" name="8e666d5c46e91374629e69142909b2db"></a><!-- doxytag: member="svn_diff_fns_t::token_discard_all" ref="8e666d5c46e91374629e69142909b2db" args=")(void *diff_baton)" -->
<div class="memitem">
<div class="memproto">
<table class="memname">
<tr>
<td class="memname">void(* <a class="el" href="structsvn__diff__fns__t.html#8e666d5c46e91374629e69142909b2db">svn_diff_fns_t::token_discard_all</a>)(void *diff_baton) </td>
</tr>
</table>
</div>
<div class="memdoc">
<p>
Free *all* tokens from memory, they're no longer needed.
<p>
</div>
</div><p>
<hr>The documentation for this struct was generated from the following file:<ul>
<li><a class="el" href="svn__diff_8h-source.html">svn_diff.h</a></ul>
</div>
<hr size="1"><address style="text-align: right;"><small>Generated on Fri Oct 24 16:18:30 2008 for Subversion by&nbsp;
<a href="http://www.doxygen.org/index.html">
<img src="doxygen.png" alt="doxygen" align="middle" border="0"></a> 1.5.6 </small></address>
</body>
</html>