3 * ====================================================================
4 * Licensed to the Apache Software Foundation (ASF) under one
5 * or more contributor license agreements. See the NOTICE file
6 * distributed with this work for additional information
7 * regarding copyright ownership. The ASF licenses this file
8 * to you under the Apache License, Version 2.0 (the
9 * "License"); you may not use this file except in compliance
10 * with the License. You may obtain a copy of the License at
12 * http://www.apache.org/licenses/LICENSE-2.0
14 * Unless required by applicable law or agreed to in writing,
15 * software distributed under the License is distributed on an
16 * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
17 * KIND, either express or implied. See the License for the
18 * specific language governing permissions and limitations
20 * ====================================================================
23 * @file svn_ra_svn_private.h
24 * @brief Functions used by the server - Internal routines
27 #ifndef SVN_RA_SVN_PRIVATE_H
28 #define SVN_RA_SVN_PRIVATE_H
30 #include "svn_ra_svn.h"
31 #include "svn_editor.h"
35 #endif /* __cplusplus */
39 * Set the shim callbacks to be used by @a conn to @a shim_callbacks.
42 svn_ra_svn__set_shim_callbacks(svn_ra_svn_conn_t *conn,
43 svn_delta_shim_callbacks_t *shim_callbacks);
46 * Return the memory pool used to allocate @a conn.
49 svn_ra_svn__get_pool(svn_ra_svn_conn_t *conn);
52 * @defgroup ra_svn_deprecated ra_svn low-level functions
56 /** Write a number over the net.
58 * Writes will be buffered until the next read or flush.
61 svn_ra_svn__write_number(svn_ra_svn_conn_t *conn,
65 /** Write a string over the net.
67 * Writes will be buffered until the next read or flush.
70 svn_ra_svn__write_string(svn_ra_svn_conn_t *conn,
72 const svn_string_t *str);
74 /** Write a cstring over the net.
76 * Writes will be buffered until the next read or flush.
79 svn_ra_svn__write_cstring(svn_ra_svn_conn_t *conn,
83 /** Write a word over the net.
85 * Writes will be buffered until the next read or flush.
88 svn_ra_svn__write_word(svn_ra_svn_conn_t *conn,
92 /** Write a boolean over the net.
94 * Writes will be buffered until the next read or flush.
97 svn_ra_svn__write_boolean(svn_ra_svn_conn_t *conn,
101 /** Write a list of properties over the net. @a props is allowed to be NULL,
102 * in which case an empty list will be written out.
107 svn_ra_svn__write_proplist(svn_ra_svn_conn_t *conn,
111 /** Begin a list. Writes will be buffered until the next read or flush. */
113 svn_ra_svn__start_list(svn_ra_svn_conn_t *conn,
116 /** End a list. Writes will be buffered until the next read or flush. */
118 svn_ra_svn__end_list(svn_ra_svn_conn_t *conn,
121 /** Flush the write buffer.
123 * Normally this shouldn't be necessary, since the write buffer is flushed
124 * when a read is attempted.
127 svn_ra_svn__flush(svn_ra_svn_conn_t *conn,
130 /** Write a tuple, using a printf-like interface.
132 * The format string @a fmt may contain:
135 Spec Argument type Item type
136 ---- -------------------- ---------
137 n apr_uint64_t Number
138 r svn_revnum_t Number
139 s const svn_string_t * String
140 c const char * String
142 b svn_boolean_t Word ("true" or "false")
145 ? Remaining elements optional
146 ! (at beginning or end) Suppress opening or closing of tuple
149 * Inside the optional part of a tuple, 'r' values may be @c
150 * SVN_INVALID_REVNUM, 'n' values may be
151 * SVN_RA_SVN_UNSPECIFIED_NUMBER, and 's', 'c', and 'w' values may be
152 * @c NULL; in these cases no data will be written. 'b' and '(' may
153 * not appear in the optional part of a tuple. Either all or none of
154 * the optional values should be valid.
156 * (If we ever have a need for an optional boolean value, we should
157 * invent a 'B' specifier which stores a boolean into an int, using -1
158 * for unspecified. Right now there is no need for such a thing.)
160 * Use the '!' format specifier to write partial tuples when you have
161 * to transmit an array or other unusual data. For example, to write
162 * a tuple containing a revision, an array of words, and a boolean:
164 SVN_ERR(svn_ra_svn_write_tuple(conn, pool, "r(!", rev));
165 for (i = 0; i < n; i++)
166 SVN_ERR(svn_ra_svn_write_word(conn, pool, words[i]));
167 SVN_ERR(svn_ra_svn_write_tuple(conn, pool, "!)b", flag)); @endcode
170 svn_ra_svn__write_tuple(svn_ra_svn_conn_t *conn,
172 const char *fmt, ...);
174 /** Read an item from the network into @a *item. */
176 svn_ra_svn__read_item(svn_ra_svn_conn_t *conn,
178 svn_ra_svn_item_t **item);
180 /** Scan data on @a conn until we find something which looks like the
181 * beginning of an svn server greeting (an open paren followed by a
182 * whitespace character). This function is appropriate for beginning
183 * a client connection opened in tunnel mode, since people's dotfiles
184 * sometimes write output to stdout. It may only be called at the
185 * beginning of a client connection.
188 svn_ra_svn__skip_leading_garbage(svn_ra_svn_conn_t *conn,
191 /** Parse an array of @c svn_sort__item_t structures as a tuple, using a
192 * printf-like interface. The format string @a fmt may contain:
195 Spec Argument type Item type
196 ---- -------------------- ---------
197 n apr_uint64_t * Number
198 r svn_revnum_t * Number
199 s svn_string_t ** String
200 c const char ** String
202 b svn_boolean_t * Word ("true" or "false")
203 B apr_uint64_t * Word ("true" or "false")
204 3 svn_tristate_t * Word ("true" or "false")
205 l apr_array_header_t ** List
208 ? Tuple is allowed to end here
211 * Note that a tuple is only allowed to end precisely at a '?', or at
212 * the end of the specification. So if @a fmt is "c?cc" and @a list
213 * contains two elements, an error will result.
215 * '3' is similar to 'b', but may be used in the optional tuple specification.
216 * It returns #svn_tristate_true, #svn_tristate_false or #svn_tristate_unknown.
218 * 'B' is similar to '3', but it returns @c TRUE, @c FALSE, or
219 * #SVN_RA_SVN_UNSPECIFIED_NUMBER. 'B' is deprecated; new code should
222 * If an optional part of a tuple contains no data, 'r' values will be
223 * set to @c SVN_INVALID_REVNUM; 'n' and 'B' values will be set to
224 * #SVN_RA_SVN_UNSPECIFIED_NUMBER; 's', 'c', 'w', and 'l' values
225 * will be set to @c NULL; and '3' values will be set to #svn_tristate_unknown
226 * 'b' may not appear inside an optional tuple specification; use '3' instead.
229 svn_ra_svn__parse_tuple(const apr_array_header_t *list,
231 const char *fmt, ...);
233 /** Read a tuple from the network and parse it as a tuple, using the
234 * format string notation from svn_ra_svn_parse_tuple().
237 svn_ra_svn__read_tuple(svn_ra_svn_conn_t *conn,
239 const char *fmt, ...);
241 /** Parse an array of @c svn_ra_svn_item_t structures as a list of
242 * properties, storing the properties in a hash table.
247 svn_ra_svn__parse_proplist(const apr_array_header_t *list,
251 /** Read a command response from the network and parse it as a tuple, using
252 * the format string notation from svn_ra_svn_parse_tuple().
255 svn_ra_svn__read_cmd_response(svn_ra_svn_conn_t *conn,
257 const char *fmt, ...);
259 /** Check the receive buffer and socket of @a conn whether there is some
260 * unprocessed incoming data without waiting for new data to come in.
261 * If data is found, set @a *has_command to TRUE. If the connection does
262 * not contain any more data and has been closed, set @a *terminated to
266 svn_ra_svn__has_command(svn_boolean_t *has_command,
267 svn_boolean_t *terminated,
268 svn_ra_svn_conn_t *conn,
271 /** Accept a single command from @a conn and handle them according
272 * to @a cmd_hash. Command handlers will be passed @a conn, @a pool,
273 * the parameters of the command, and @a baton. @a *terminate will be
274 * set if either @a error_on_disconnect is FALSE and the connection got
275 * closed, or if the command being handled has the "terminate" flag set
276 * in the command table.
279 svn_ra_svn__handle_command(svn_boolean_t *terminate,
280 apr_hash_t *cmd_hash,
282 svn_ra_svn_conn_t *conn,
283 svn_boolean_t error_on_disconnect,
286 /** Accept commands over the network and handle them according to @a
287 * commands. Command handlers will be passed @a conn, a subpool of @a
288 * pool (cleared after each command is handled), the parameters of the
289 * command, and @a baton. Commands will be accepted until a
290 * terminating command is received (a command with "terminate" set in
291 * the command table). If a command handler returns an error wrapped
292 * in SVN_RA_SVN_CMD_ERR (see the @c SVN_CMD_ERR macro), the error
293 * will be reported to the other side of the connection and the
294 * command loop will continue; any other kind of error (typically a
295 * network or protocol error) is passed through to the caller.
301 svn_ra_svn__handle_commands2(svn_ra_svn_conn_t *conn,
303 const svn_ra_svn_cmd_entry_t *commands,
305 svn_boolean_t error_on_disconnect);
307 /** Write a successful command response over the network, using the
308 * same format string notation as svn_ra_svn_write_tuple(). Do not use
309 * partial tuples with this function; if you need to use partial
310 * tuples, just write out the "success" and argument tuple by hand.
313 svn_ra_svn__write_cmd_response(svn_ra_svn_conn_t *conn,
315 const char *fmt, ...);
317 /** Write an unsuccessful command response over the network.
319 * @note This does not clear @a err. */
321 svn_ra_svn__write_cmd_failure(svn_ra_svn_conn_t *conn,
323 const svn_error_t *err);
330 * @defgroup svn_commands sending ra_svn commands
334 /** Sets the target revision of connection @a conn to @a rev. Use @a pool
338 svn_ra_svn__write_cmd_target_rev(svn_ra_svn_conn_t *conn,
342 /** Send a "open-root" command over connection @a conn. Open the
343 * repository root at revision @a rev and associate it with @a token.
344 * Use @a pool for allocations.
347 svn_ra_svn__write_cmd_open_root(svn_ra_svn_conn_t *conn,
352 /** Send a "delete-entry" command over connection @a conn. Delete the
353 * @a path at optional revision @a rev below @a parent_token.
354 * Use @a pool for allocations.
357 svn_ra_svn__write_cmd_delete_entry(svn_ra_svn_conn_t *conn,
361 const char *parent_token);
363 /** Send a "add-dir" command over connection @a conn. Add a new directory
364 * node named @a path under the directory identified by @a parent_token.
365 * Associate the new directory with the given @a token. * @a copy_path
366 * and @a copy_rev are optional and describe the copy source.
367 * Use @a pool for allocations.
370 svn_ra_svn__write_cmd_add_dir(svn_ra_svn_conn_t *conn,
373 const char *parent_token,
375 const char *copy_path,
376 svn_revnum_t copy_rev);
378 /** Send a "open-dir" command over connection @a conn. Associate to
379 * @a token the directory node named @a path under the directory
380 * identified by @a parent_token in revision @a rev.
381 * Use @a pool for allocations.
384 svn_ra_svn__write_cmd_open_dir(svn_ra_svn_conn_t *conn,
387 const char *parent_token,
391 /** Send a "change-dir-prop" command over connection @a conn. Set the
392 * property @a name to the optional @a value on the directory identified
393 * to @a token. Use @a pool for allocations.
396 svn_ra_svn__write_cmd_change_dir_prop(svn_ra_svn_conn_t *conn,
400 const svn_string_t *value);
402 /** Send a "close-dir" command over connection @a conn. Identify the node
403 * to close with @a token. The latter will then no longer be associated
404 * with that node. Use @a pool for allocations.
407 svn_ra_svn__write_cmd_close_dir(svn_ra_svn_conn_t *conn,
411 /** Send a "absent-dir" command over connection @a conn. Directory node
412 * named @a path under the directory identified by @a parent_token is
413 * absent. Use @a pool for allocations.
416 svn_ra_svn__write_cmd_absent_dir(svn_ra_svn_conn_t *conn,
419 const char *parent_token);
421 /** Send a "add-file" command over connection @a conn. Add a new file
422 * node named @a path under the directory identified by @a parent_token.
423 * Associate the new file with the given @a token. * @a copy_path and
424 * @a copy_rev are optional and describe the copy source.
425 * Use @a pool for allocations.
428 svn_ra_svn__write_cmd_add_file(svn_ra_svn_conn_t *conn,
431 const char *parent_token,
433 const char *copy_path,
434 svn_revnum_t copy_rev);
436 /** Send a "open-file" command over connection @a conn. Associate to
437 * @a token the file node named @a path under the directory identified by
438 * @a parent_token in revision @a rev.
439 * Use @a pool for allocations.
442 svn_ra_svn__write_cmd_open_file(svn_ra_svn_conn_t *conn,
445 const char *parent_token,
449 /** Send a "change-file-prop" command over connection @a conn. Set the
450 * property @a name to the optional @a value on the file identified to
451 * @a token. Use @a pool for allocations.
454 svn_ra_svn__write_cmd_change_file_prop(svn_ra_svn_conn_t *conn,
458 const svn_string_t *value);
460 /** Send a "close-dir" command over connection @a conn. Identify the node
461 * to close with @a token and provide an optional @a check_sum. The token
462 * will then no longer be associated with that node.
463 * Use @a pool for allocations.
466 svn_ra_svn__write_cmd_close_file(svn_ra_svn_conn_t *conn,
469 const char *text_checksum);
471 /** Send a "absent-file" command over connection @a conn. File node
472 * named @a path in the directory identified by @a parent_token is
473 * absent. Use @a pool for allocations.
476 svn_ra_svn__write_cmd_absent_file(svn_ra_svn_conn_t *conn,
479 const char *parent_token);
481 /** Send a "apply-textdelta" command over connection @a conn. Starts a
482 * series of text deltas to be applied to the file identified by @a token.
483 * Optionally, specify the file's current checksum in @a base_checksum.
484 * Use @a pool for allocations.
487 svn_ra_svn__write_cmd_apply_textdelta(svn_ra_svn_conn_t *conn,
490 const char *base_checksum);
492 /** Send a "textdelta-chunk" command over connection @a conn. Apply
493 * textdelta @a chunk to the file identified by @a token.
494 * Use @a pool for allocations.
497 svn_ra_svn__write_cmd_textdelta_chunk(svn_ra_svn_conn_t *conn,
500 const svn_string_t *chunk);
502 /** Send a "textdelta-end" command over connection @a conn. Ends the
503 * series of text deltas to be applied to the file identified by @a token.
504 * Use @a pool for allocations.
507 svn_ra_svn__write_cmd_textdelta_end(svn_ra_svn_conn_t *conn,
511 /** Send a "close-edit" command over connection @a conn. Ends the editor
512 * drive (successfully). Use @a pool for allocations.
515 svn_ra_svn__write_cmd_close_edit(svn_ra_svn_conn_t *conn,
518 /** Send a "abort-edit" command over connection @a conn. Prematurely ends
519 * the editor drive, e.g. due to some problem on the other side.
520 * Use @a pool for allocations.
523 svn_ra_svn__write_cmd_abort_edit(svn_ra_svn_conn_t *conn,
526 /** Send a "set-path" command over connection @a conn.
527 * Use @a pool for allocations.
529 * @see set_path() in #svn_ra_reporter3_t for a description.
532 svn_ra_svn__write_cmd_set_path(svn_ra_svn_conn_t *conn,
536 svn_boolean_t start_empty,
537 const char *lock_token,
540 /** Send a "delete-path" command over connection @a conn.
541 * Use @a pool for allocations.
543 * @see delete_path() in #svn_ra_reporter3_t for a description.
546 svn_ra_svn__write_cmd_delete_path(svn_ra_svn_conn_t *conn,
550 /** Send a "link-path" command over connection @a conn.
551 * Use @a pool for allocations.
553 * @see link_path() in #svn_ra_reporter3_t for a description.
556 svn_ra_svn__write_cmd_link_path(svn_ra_svn_conn_t *conn,
561 svn_boolean_t start_empty,
562 const char *lock_token,
565 /** Send a "finish-report" command over connection @a conn.
566 * Use @a pool for allocations.
568 * @see finish_report() in #svn_ra_reporter3_t for a description.
571 svn_ra_svn__write_cmd_finish_report(svn_ra_svn_conn_t *conn,
574 /** Send a "abort-report" command over connection @a conn.
575 * Use @a pool for allocations.
577 * @see abort_report() in #svn_ra_reporter3_t for a description.
580 svn_ra_svn__write_cmd_abort_report(svn_ra_svn_conn_t *conn,
583 /** Send a "reparent" command over connection @a conn.
584 * Use @a pool for allocations.
586 * @see #svn_ra_reparent for a description.
589 svn_ra_svn__write_cmd_reparent(svn_ra_svn_conn_t *conn,
593 /** Send a "get-latest-rev" command over connection @a conn.
594 * Use @a pool for allocations.
596 * @see #svn_ra_get_latest_revnum for a description.
599 svn_ra_svn__write_cmd_get_latest_rev(svn_ra_svn_conn_t *conn,
602 /** Send a "get-dated-rev" command over connection @a conn.
603 * Use @a pool for allocations.
605 * @see #svn_ra_get_dated_revision for a description.
608 svn_ra_svn__write_cmd_get_dated_rev(svn_ra_svn_conn_t *conn,
612 /** Send a "change-rev-prop2" command over connection @a conn.
613 * Use @a pool for allocations.
615 * If @a dont_care is false then check that the old value matches
616 * @a old_value. If @a dont_care is true then do not check the old
617 * value; in this case @a old_value must be NULL.
619 * @see #svn_ra_change_rev_prop2 for the rest of the description.
622 svn_ra_svn__write_cmd_change_rev_prop2(svn_ra_svn_conn_t *conn,
626 const svn_string_t *value,
627 svn_boolean_t dont_care,
628 const svn_string_t *old_value);
630 /** Send a "change-rev-prop" command over connection @a conn.
631 * Use @a pool for allocations.
633 * @see #svn_ra_change_rev_prop for a description.
636 svn_ra_svn__write_cmd_change_rev_prop(svn_ra_svn_conn_t *conn,
640 const svn_string_t *value);
642 /** Send a "rev-proplist" command over connection @a conn.
643 * Use @a pool for allocations.
645 * @see #svn_ra_rev_proplist for a description.
648 svn_ra_svn__write_cmd_rev_proplist(svn_ra_svn_conn_t *conn,
652 /** Send a "rev-prop" command over connection @a conn.
653 * Use @a pool for allocations.
655 * @see #svn_ra_rev_prop for a description.
658 svn_ra_svn__write_cmd_rev_prop(svn_ra_svn_conn_t *conn,
663 /** Send a "get-file" command over connection @a conn.
664 * Use @a pool for allocations.
666 * @see #svn_ra_get_file for a description.
669 svn_ra_svn__write_cmd_get_file(svn_ra_svn_conn_t *conn,
674 svn_boolean_t stream);
676 /** Send a "update" command over connection @a conn.
677 * Use @a pool for allocations.
679 * @see #svn_ra_do_update3 for a description.
682 svn_ra_svn__write_cmd_update(svn_ra_svn_conn_t *conn,
686 svn_boolean_t recurse,
688 svn_boolean_t send_copyfrom_args,
689 svn_boolean_t ignore_ancestry);
691 /** Send a "switch" command over connection @a conn.
692 * Use @a pool for allocations.
694 * @see #svn_ra_do_switch3 for a description.
697 svn_ra_svn__write_cmd_switch(svn_ra_svn_conn_t *conn,
701 svn_boolean_t recurse,
702 const char *switch_url,
704 svn_boolean_t send_copyfrom_args,
705 svn_boolean_t ignore_ancestry);
707 /** Send a "status" command over connection @a conn.
708 * Use @a pool for allocations.
710 * @see #svn_ra_do_status2 for a description.
713 svn_ra_svn__write_cmd_status(svn_ra_svn_conn_t *conn,
716 svn_boolean_t recurse,
720 /** Send a "diff" command over connection @a conn.
721 * Use @a pool for allocations.
723 * @see #svn_ra_do_diff3 for a description.
726 svn_ra_svn__write_cmd_diff(svn_ra_svn_conn_t *conn,
730 svn_boolean_t recurse,
731 svn_boolean_t ignore_ancestry,
732 const char *versus_url,
733 svn_boolean_t text_deltas,
736 /** Send a "check-path" command over connection @a conn.
737 * Use @a pool for allocations.
739 * @see #svn_ra_check_path for a description.
742 svn_ra_svn__write_cmd_check_path(svn_ra_svn_conn_t *conn,
747 /** Send a "stat" command over connection @a conn.
748 * Use @a pool for allocations.
750 * @see #svn_ra_stat for a description.
753 svn_ra_svn__write_cmd_stat(svn_ra_svn_conn_t *conn,
758 /** Send a "get-file-revs" command over connection @a conn.
759 * Use @a pool for allocations.
761 * @see #svn_ra_get_file_revs2 for a description.
764 svn_ra_svn__write_cmd_get_file_revs(svn_ra_svn_conn_t *conn,
769 svn_boolean_t include_merged_revisions);
771 /** Send a "lock" command over connection @a conn.
772 * Use @a pool for allocations.
774 * @see #svn_ra_lock for a description.
777 svn_ra_svn__write_cmd_lock(svn_ra_svn_conn_t *conn,
781 svn_boolean_t steal_lock,
782 svn_revnum_t revnum);
784 /** Send a "unlock" command over connection @a conn.
785 * Use @a pool for allocations.
787 * @see #svn_ra_unlock for a description.
790 svn_ra_svn__write_cmd_unlock(svn_ra_svn_conn_t *conn,
794 svn_boolean_t break_lock);
796 /** Send a "get-lock" command over connection @a conn.
797 * Use @a pool for allocations.
799 * @see #svn_ra_get_lock for a description.
802 svn_ra_svn__write_cmd_get_lock(svn_ra_svn_conn_t *conn,
806 /** Send a "get-locks" command over connection @a conn.
807 * Use @a pool for allocations.
809 * @see #svn_ra_get_locks2 for a description.
812 svn_ra_svn__write_cmd_get_locks(svn_ra_svn_conn_t *conn,
817 /** Send a "replay" command over connection @a conn.
818 * Use @a pool for allocations.
820 * @see #svn_ra_replay for a description.
823 svn_ra_svn__write_cmd_replay(svn_ra_svn_conn_t *conn,
826 svn_revnum_t low_water_mark,
827 svn_boolean_t send_deltas);
829 /** Send a "replay-range" command over connection @a conn.
830 * Use @a pool for allocations.
832 * @see #svn_ra_replay_range for a description.
835 svn_ra_svn__write_cmd_replay_range(svn_ra_svn_conn_t *conn,
837 svn_revnum_t start_revision,
838 svn_revnum_t end_revision,
839 svn_revnum_t low_water_mark,
840 svn_boolean_t send_deltas);
842 /** Send a "get-deleted-rev" command over connection @a conn.
843 * Use @a pool for allocations.
845 * @see #svn_ra_get_deleted_rev for a description.
848 svn_ra_svn__write_cmd_get_deleted_rev(svn_ra_svn_conn_t *conn,
851 svn_revnum_t peg_revision,
852 svn_revnum_t end_revision);
854 /** Send a "get-iprops" command over connection @a conn.
855 * Use @a pool for allocations.
857 * @see #svn_ra_get_inherited_props for a description.
860 svn_ra_svn__write_cmd_get_iprops(svn_ra_svn_conn_t *conn,
863 svn_revnum_t revision);
865 /** Send a "finish-replay" command over connection @a conn.
866 * Use @a pool for allocations.
869 svn_ra_svn__write_cmd_finish_replay(svn_ra_svn_conn_t *conn,
877 * @defgroup svn_send_data sending data structures over ra_svn
881 /** Send a changed path (as part of transmitting a log entry) over connection
882 * @a conn. Use @a pool for allocations.
884 * @see svn_log_changed_path2_t for a description of the other parameters.
887 svn_ra_svn__write_data_log_changed_path(svn_ra_svn_conn_t *conn,
891 const char *copyfrom_path,
892 svn_revnum_t copyfrom_rev,
893 svn_node_kind_t node_kind,
894 svn_boolean_t text_modified,
895 svn_boolean_t props_modified);
897 /** Send a the details of a log entry (as part of transmitting a log entry
898 * and without revprops and changed paths) over connection @a conn.
899 * Use @a pool for allocations.
901 * @a author, @a date and @a message have been extracted and removed from
902 * the revprops to follow. @a has_children is taken directly from the
903 * #svn_log_entry_t struct. @a revision is too, except when it equals
904 * #SVN_INVALID_REVNUM. In that case, @a revision must be 0 and
905 * @a invalid_revnum be set to TRUE. @a revprop_count is the number of
906 * revprops that will follow in the revprops list.
909 svn_ra_svn__write_data_log_entry(svn_ra_svn_conn_t *conn,
911 svn_revnum_t revision,
912 const svn_string_t *author,
913 const svn_string_t *date,
914 const svn_string_t *message,
915 svn_boolean_t has_children,
916 svn_boolean_t invalid_revnum,
917 unsigned revprop_count);
924 * @defgroup svn_read_data reading data structures from ra_svn
928 /** Take the data tuple ITEMS received over ra_svn and convert it to the
929 * a changed path (as part of receiving a log entry).
931 * @see svn_log_changed_path2_t for a description of the output parameters.
934 svn_ra_svn__read_data_log_changed_entry(const apr_array_header_t *items,
935 svn_string_t **cpath,
937 const char **copy_path,
938 svn_revnum_t *copy_rev,
939 const char **kind_str,
940 apr_uint64_t *text_mods,
941 apr_uint64_t *prop_mods);
948 #endif /* __cplusplus */
950 #endif /* SVN_RA_SVN_PRIVATE_H */