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

268 lines
19 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_repos_parse_fns2_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_repos_parse_fns2_t Struct Reference<br>
<small>
[<a class="el" href="group__svn__repos__dump__load.html">Dumping and loading filesystem data</a>]</small>
</h1><!-- doxytag: class="svn_repos_parse_fns2_t" -->A vtable that is driven by <a class="el" href="group__svn__repos__dump__load.html#g9bf944dbcffb79e1afe8bda810e1b85a" title="Read and parse dumpfile-formatted stream, calling callbacks in parse_fns/parse_baton...">svn_repos_parse_dumpstream2()</a>.
<a href="#_details">More...</a>
<p>
<code>#include &lt;<a class="el" href="svn__repos_8h-source.html">svn_repos.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__repos__parse__fns2__t.html#d617eeff5bbe130a22fdf432fbd76188">new_revision_record</a> )(void **revision_baton, apr_hash_t *headers, void *parse_baton, apr_pool_t *pool)</td></tr>
<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">The parser has discovered a new revision record within the parsing session represented by <em>parse_baton</em>. <a href="#d617eeff5bbe130a22fdf432fbd76188"></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__repos__parse__fns2__t.html#d115de865662f374e5b8ea853a749d2f">uuid_record</a> )(const char *uuid, void *parse_baton, apr_pool_t *pool)</td></tr>
<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">The parser has discovered a new uuid record within the parsing session represented by <em>parse_baton</em>. <a href="#d115de865662f374e5b8ea853a749d2f"></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__repos__parse__fns2__t.html#af4ebf625152e5f9f8ab45eada90ce44">new_node_record</a> )(void **node_baton, apr_hash_t *headers, void *revision_baton, apr_pool_t *pool)</td></tr>
<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">The parser has discovered a new node record within the current revision represented by <em>revision_baton</em>. <a href="#af4ebf625152e5f9f8ab45eada90ce44"></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__repos__parse__fns2__t.html#77531fad440a16bbe2bc0ffab69f471a">set_revision_property</a> )(void *revision_baton, const char *name, const <a class="el" href="structsvn__string__t.html">svn_string_t</a> *value)</td></tr>
<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">For a given <em>revision_baton</em>, set a property <em>name</em> to <em>value</em>. <a href="#77531fad440a16bbe2bc0ffab69f471a"></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__repos__parse__fns2__t.html#7607891a8598ff7cfdc3076f8d937815">set_node_property</a> )(void *node_baton, const char *name, const <a class="el" href="structsvn__string__t.html">svn_string_t</a> *value)</td></tr>
<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">For a given <em>node_baton</em>, set a property <em>name</em> to <em>value</em>. <a href="#7607891a8598ff7cfdc3076f8d937815"></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__repos__parse__fns2__t.html#b0e233defd628b0e0eed605f8c01764c">delete_node_property</a> )(void *node_baton, const char *name)</td></tr>
<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">For a given <em>node_baton</em>, delete property <em>name</em>. <a href="#b0e233defd628b0e0eed605f8c01764c"></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__repos__parse__fns2__t.html#c2a107d120d111813380ae92044c7273">remove_node_props</a> )(void *node_baton)</td></tr>
<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">For a given <em>node_baton</em>, remove all properties. <a href="#c2a107d120d111813380ae92044c7273"></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__repos__parse__fns2__t.html#a4b91379f29eb665bdb6184bac71d632">set_fulltext</a> )(<a class="el" href="group__svn__io__byte__streams.html#g06d6291c397e63f895deb92a2c14e6af">svn_stream_t</a> **stream, void *node_baton)</td></tr>
<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">For a given <em>node_baton</em>, receive a writable <em>stream</em> capable of receiving the node's fulltext. <a href="#a4b91379f29eb665bdb6184bac71d632"></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__repos__parse__fns2__t.html#8fce3d6c2b8a379002e7812647826cdf">apply_textdelta</a> )(<a class="el" href="group__svn__delta__txt__delta.html#g1c0d461a3f244928d7f0339c1cbe3219">svn_txdelta_window_handler_t</a> *handler, void **handler_baton, void *node_baton)</td></tr>
<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">For a given <em>node_baton</em>, set <em>handler</em> and <em>handler_baton</em> to a window handler and baton capable of receiving a delta against the node's previous contents. <a href="#8fce3d6c2b8a379002e7812647826cdf"></a><br></td></tr>
<tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="anchor" name="23a54c9a6d63d62636cfe493d78bbe24"></a><!-- doxytag: member="svn_repos_parse_fns2_t::close_node" ref="23a54c9a6d63d62636cfe493d78bbe24" args=")(void *node_baton)" -->
<a class="el" href="structsvn__error__t.html">svn_error_t</a> *(*&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="structsvn__repos__parse__fns2__t.html#23a54c9a6d63d62636cfe493d78bbe24">close_node</a> )(void *node_baton)</td></tr>
<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">The parser has reached the end of the current node represented by <em>node_baton</em>, it can be freed. <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__repos__parse__fns2__t.html#26c539774ad5996e84c3c467694c891a">close_revision</a> )(void *revision_baton)</td></tr>
<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">The parser has reached the end of the current revision represented by <em>revision_baton</em>. <a href="#26c539774ad5996e84c3c467694c891a"></a><br></td></tr>
</table>
<hr><a name="_details"></a><h2>Detailed Description</h2>
A vtable that is driven by <a class="el" href="group__svn__repos__dump__load.html#g9bf944dbcffb79e1afe8bda810e1b85a" title="Read and parse dumpfile-formatted stream, calling callbacks in parse_fns/parse_baton...">svn_repos_parse_dumpstream2()</a>.
<p>
<dl class="since" compact><dt><b>Since:</b></dt><dd>New in 1.1. </dd></dl>
<p>Definition at line <a class="el" href="svn__repos_8h-source.html#l02151">2151</a> of file <a class="el" href="svn__repos_8h-source.html">svn_repos.h</a>.</p>
<hr><h2>Field Documentation</h2>
<a class="anchor" name="d617eeff5bbe130a22fdf432fbd76188"></a><!-- doxytag: member="svn_repos_parse_fns2_t::new_revision_record" ref="d617eeff5bbe130a22fdf432fbd76188" args=")(void **revision_baton, apr_hash_t *headers, void *parse_baton, apr_pool_t *pool)" -->
<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__repos__parse__fns2__t.html#d617eeff5bbe130a22fdf432fbd76188">svn_repos_parse_fns2_t::new_revision_record</a>)(void **revision_baton, apr_hash_t *headers, void *parse_baton, apr_pool_t *pool) </td>
</tr>
</table>
</div>
<div class="memdoc">
<p>
The parser has discovered a new revision record within the parsing session represented by <em>parse_baton</em>.
<p>
All the headers are placed in <em>headers</em> (allocated in <em>pool</em>), which maps <code>const char *</code> header-name ==&gt; <code>const char *</code> header-value. The <em>revision_baton</em> received back (also allocated in <em>pool</em>) represents the revision.
</div>
</div><p>
<a class="anchor" name="d115de865662f374e5b8ea853a749d2f"></a><!-- doxytag: member="svn_repos_parse_fns2_t::uuid_record" ref="d115de865662f374e5b8ea853a749d2f" args=")(const char *uuid, void *parse_baton, apr_pool_t *pool)" -->
<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__repos__parse__fns2__t.html#d115de865662f374e5b8ea853a749d2f">svn_repos_parse_fns2_t::uuid_record</a>)(const char *uuid, void *parse_baton, apr_pool_t *pool) </td>
</tr>
</table>
</div>
<div class="memdoc">
<p>
The parser has discovered a new uuid record within the parsing session represented by <em>parse_baton</em>.
<p>
The uuid's value is <em>uuid</em>, and it is allocated in <em>pool</em>.
</div>
</div><p>
<a class="anchor" name="af4ebf625152e5f9f8ab45eada90ce44"></a><!-- doxytag: member="svn_repos_parse_fns2_t::new_node_record" ref="af4ebf625152e5f9f8ab45eada90ce44" args=")(void **node_baton, apr_hash_t *headers, void *revision_baton, apr_pool_t *pool)" -->
<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__repos__parse__fns2__t.html#af4ebf625152e5f9f8ab45eada90ce44">svn_repos_parse_fns2_t::new_node_record</a>)(void **node_baton, apr_hash_t *headers, void *revision_baton, apr_pool_t *pool) </td>
</tr>
</table>
</div>
<div class="memdoc">
<p>
The parser has discovered a new node record within the current revision represented by <em>revision_baton</em>.
<p>
All the headers are placed in <em>headers</em> (as with <code>new_revision_record</code>), allocated in <em>pool</em>. The <em>node_baton</em> received back is allocated in <em>pool</em> and represents the node.
</div>
</div><p>
<a class="anchor" name="77531fad440a16bbe2bc0ffab69f471a"></a><!-- doxytag: member="svn_repos_parse_fns2_t::set_revision_property" ref="77531fad440a16bbe2bc0ffab69f471a" args=")(void *revision_baton, const char *name, const svn_string_t *value)" -->
<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__repos__parse__fns2__t.html#77531fad440a16bbe2bc0ffab69f471a">svn_repos_parse_fns2_t::set_revision_property</a>)(void *revision_baton, const char *name, const <a class="el" href="structsvn__string__t.html">svn_string_t</a> *value) </td>
</tr>
</table>
</div>
<div class="memdoc">
<p>
For a given <em>revision_baton</em>, set a property <em>name</em> to <em>value</em>.
<p>
</div>
</div><p>
<a class="anchor" name="7607891a8598ff7cfdc3076f8d937815"></a><!-- doxytag: member="svn_repos_parse_fns2_t::set_node_property" ref="7607891a8598ff7cfdc3076f8d937815" args=")(void *node_baton, const char *name, const svn_string_t *value)" -->
<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__repos__parse__fns2__t.html#7607891a8598ff7cfdc3076f8d937815">svn_repos_parse_fns2_t::set_node_property</a>)(void *node_baton, const char *name, const <a class="el" href="structsvn__string__t.html">svn_string_t</a> *value) </td>
</tr>
</table>
</div>
<div class="memdoc">
<p>
For a given <em>node_baton</em>, set a property <em>name</em> to <em>value</em>.
<p>
</div>
</div><p>
<a class="anchor" name="b0e233defd628b0e0eed605f8c01764c"></a><!-- doxytag: member="svn_repos_parse_fns2_t::delete_node_property" ref="b0e233defd628b0e0eed605f8c01764c" args=")(void *node_baton, const char *name)" -->
<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__repos__parse__fns2__t.html#b0e233defd628b0e0eed605f8c01764c">svn_repos_parse_fns2_t::delete_node_property</a>)(void *node_baton, const char *name) </td>
</tr>
</table>
</div>
<div class="memdoc">
<p>
For a given <em>node_baton</em>, delete property <em>name</em>.
<p>
</div>
</div><p>
<a class="anchor" name="c2a107d120d111813380ae92044c7273"></a><!-- doxytag: member="svn_repos_parse_fns2_t::remove_node_props" ref="c2a107d120d111813380ae92044c7273" args=")(void *node_baton)" -->
<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__repos__parse__fns2__t.html#c2a107d120d111813380ae92044c7273">svn_repos_parse_fns2_t::remove_node_props</a>)(void *node_baton) </td>
</tr>
</table>
</div>
<div class="memdoc">
<p>
For a given <em>node_baton</em>, remove all properties.
<p>
</div>
</div><p>
<a class="anchor" name="a4b91379f29eb665bdb6184bac71d632"></a><!-- doxytag: member="svn_repos_parse_fns2_t::set_fulltext" ref="a4b91379f29eb665bdb6184bac71d632" args=")(svn_stream_t **stream, void *node_baton)" -->
<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__repos__parse__fns2__t.html#a4b91379f29eb665bdb6184bac71d632">svn_repos_parse_fns2_t::set_fulltext</a>)(<a class="el" href="group__svn__io__byte__streams.html#g06d6291c397e63f895deb92a2c14e6af">svn_stream_t</a> **stream, void *node_baton) </td>
</tr>
</table>
</div>
<div class="memdoc">
<p>
For a given <em>node_baton</em>, receive a writable <em>stream</em> capable of receiving the node's fulltext.
<p>
After writing the fulltext, call the stream's close() function.<p>
If a <code>NULL</code> is returned instead of a stream, the vtable is indicating that no text is desired, and the parser will not attempt to send it.
</div>
</div><p>
<a class="anchor" name="8fce3d6c2b8a379002e7812647826cdf"></a><!-- doxytag: member="svn_repos_parse_fns2_t::apply_textdelta" ref="8fce3d6c2b8a379002e7812647826cdf" args=")(svn_txdelta_window_handler_t *handler, void **handler_baton, void *node_baton)" -->
<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__repos__parse__fns2__t.html#8fce3d6c2b8a379002e7812647826cdf">svn_repos_parse_fns2_t::apply_textdelta</a>)(<a class="el" href="group__svn__delta__txt__delta.html#g1c0d461a3f244928d7f0339c1cbe3219">svn_txdelta_window_handler_t</a> *handler, void **handler_baton, void *node_baton) </td>
</tr>
</table>
</div>
<div class="memdoc">
<p>
For a given <em>node_baton</em>, set <em>handler</em> and <em>handler_baton</em> to a window handler and baton capable of receiving a delta against the node's previous contents.
<p>
A NULL window will be sent to the handler after all the windows are sent.<p>
If a <code>NULL</code> is returned instead of a handler, the vtable is indicating that no delta is desired, and the parser will not attempt to send it.
</div>
</div><p>
<a class="anchor" name="26c539774ad5996e84c3c467694c891a"></a><!-- doxytag: member="svn_repos_parse_fns2_t::close_revision" ref="26c539774ad5996e84c3c467694c891a" args=")(void *revision_baton)" -->
<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__repos__parse__fns2__t.html#26c539774ad5996e84c3c467694c891a">svn_repos_parse_fns2_t::close_revision</a>)(void *revision_baton) </td>
</tr>
</table>
</div>
<div class="memdoc">
<p>
The parser has reached the end of the current revision represented by <em>revision_baton</em>.
<p>
In other words, there are no more changed nodes within the revision. The baton can be freed.
</div>
</div><p>
<hr>The documentation for this struct was generated from the following file:<ul>
<li><a class="el" href="svn__repos_8h-source.html">svn_repos.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>