TortoiseGitMerge: Updated libsvn stuff
[TortoiseGit.git] / src / TortoiseMerge / svninclude / svn_ra_svn.h
blob90bb36fca0fd845e1a305eda64aa30c16c9865af
1 /**
2 * @copyright
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
19 * under the License.
20 * ====================================================================
21 * @endcopyright
23 * @file svn_ra_svn.h
24 * @brief libsvn_ra_svn functions used by the server
27 #ifndef SVN_RA_SVN_H
28 #define SVN_RA_SVN_H
30 #include <apr.h>
31 #include <apr_pools.h>
32 #include <apr_hash.h>
33 #include <apr_tables.h>
34 #include <apr_file_io.h> /* for apr_file_t */
35 #include <apr_network_io.h> /* for apr_socket_t */
37 #include "svn_types.h"
38 #include "svn_string.h"
39 #include "svn_config.h"
40 #include "svn_delta.h"
42 #ifdef __cplusplus
43 extern "C" {
44 #endif /* __cplusplus */
46 /** The well-known svn port number. */
47 #define SVN_RA_SVN_PORT 3690
49 /** Currently-defined capabilities. */
50 #define SVN_RA_SVN_CAP_EDIT_PIPELINE "edit-pipeline"
51 #define SVN_RA_SVN_CAP_SVNDIFF1 "svndiff1"
52 #define SVN_RA_SVN_CAP_ABSENT_ENTRIES "absent-entries"
53 /* maps to SVN_RA_CAPABILITY_COMMIT_REVPROPS: */
54 #define SVN_RA_SVN_CAP_COMMIT_REVPROPS "commit-revprops"
55 /* maps to SVN_RA_CAPABILITY_MERGEINFO: */
56 #define SVN_RA_SVN_CAP_MERGEINFO "mergeinfo"
57 /* maps to SVN_RA_CAPABILITY_DEPTH: */
58 #define SVN_RA_SVN_CAP_DEPTH "depth"
59 /* maps to SVN_RA_CAPABILITY_LOG_REVPROPS */
60 #define SVN_RA_SVN_CAP_LOG_REVPROPS "log-revprops"
61 /* maps to SVN_RA_CAPABILITY_PARTIAL_REPLAY */
62 #define SVN_RA_SVN_CAP_PARTIAL_REPLAY "partial-replay"
63 /* maps to SVN_RA_CAPABILITY_ATOMIC_REVPROPS */
64 #define SVN_RA_SVN_CAP_ATOMIC_REVPROPS "atomic-revprops"
65 /* maps to SVN_RA_CAPABILITY_INHERITED_PROPERTIES: */
66 #define SVN_RA_SVN_CAP_INHERITED_PROPS "inherited-props"
67 /* maps to SVN_RA_CAPABILITY_EPHEMERAL_TXNPROPS */
68 #define SVN_RA_SVN_CAP_EPHEMERAL_TXNPROPS "ephemeral-txnprops"
69 /* maps to SVN_RA_CAPABILITY_GET_FILE_REVS_REVERSE */
70 #define SVN_RA_SVN_CAP_GET_FILE_REVS_REVERSE "file-revs-reverse"
73 /** ra_svn passes @c svn_dirent_t fields over the wire as a list of
74 * words, these are the values used to represent each field.
76 * @defgroup ra_svn_dirent_fields Definitions of ra_svn dirent fields
77 * @{
80 /** The ra_svn way of saying @c SVN_DIRENT_KIND. */
81 #define SVN_RA_SVN_DIRENT_KIND "kind"
83 /** The ra_svn way of saying @c SVN_DIRENT_SIZE. */
84 #define SVN_RA_SVN_DIRENT_SIZE "size"
86 /** The ra_svn way of saying @c SVN_DIRENT_HAS_PROPS. */
87 #define SVN_RA_SVN_DIRENT_HAS_PROPS "has-props"
89 /** The ra_svn way of saying @c SVN_DIRENT_CREATED_REV. */
90 #define SVN_RA_SVN_DIRENT_CREATED_REV "created-rev"
92 /** The ra_svn way of saying @c SVN_DIRENT_TIME. */
93 #define SVN_RA_SVN_DIRENT_TIME "time"
95 /** The ra_svn way of saying @c SVN_DIRENT_LAST_AUTHOR. */
96 #define SVN_RA_SVN_DIRENT_LAST_AUTHOR "last-author"
98 /** @} */
100 /** A value used to indicate an optional number element in a tuple that was
101 * not received.
103 #define SVN_RA_SVN_UNSPECIFIED_NUMBER ~((apr_uint64_t) 0)
105 /** A specialized form of @c SVN_ERR to deal with errors which occur in an
106 * svn_ra_svn_command_handler().
108 * An error returned with this macro will be passed back to the other side
109 * of the connection. Use this macro when performing the requested operation;
110 * use the regular @c SVN_ERR when performing I/O with the client.
112 #define SVN_CMD_ERR(expr) \
113 do { \
114 svn_error_t *svn_err__temp = (expr); \
115 if (svn_err__temp) \
116 return svn_error_create(SVN_ERR_RA_SVN_CMD_ERR, \
117 svn_err__temp, NULL); \
118 } while (0)
120 /** an ra_svn connection. */
121 typedef struct svn_ra_svn_conn_st svn_ra_svn_conn_t;
123 /** Command handler, used by svn_ra_svn_handle_commands(). */
124 typedef svn_error_t *(*svn_ra_svn_command_handler)(svn_ra_svn_conn_t *conn,
125 apr_pool_t *pool,
126 apr_array_header_t *params,
127 void *baton);
129 /** Command table, used by svn_ra_svn_handle_commands().
131 typedef struct svn_ra_svn_cmd_entry_t
133 /** Name of the command */
134 const char *cmdname;
136 /** Handler for the command */
137 svn_ra_svn_command_handler handler;
139 /** Termination flag. If set, command-handling will cease after
140 * command is processed. */
141 svn_boolean_t terminate;
142 } svn_ra_svn_cmd_entry_t;
144 /** Memory representation of an on-the-wire data item. */
145 typedef struct svn_ra_svn_item_t
147 /** Variant indicator. */
148 enum {
149 SVN_RA_SVN_NUMBER,
150 SVN_RA_SVN_STRING,
151 SVN_RA_SVN_WORD,
152 SVN_RA_SVN_LIST
153 } kind;
154 /** Variant data. */
155 union {
156 apr_uint64_t number;
157 svn_string_t *string;
158 const char *word;
160 /** Contains @c svn_ra_svn_item_t's. */
161 apr_array_header_t *list;
162 } u;
163 } svn_ra_svn_item_t;
165 typedef svn_error_t *(*svn_ra_svn_edit_callback)(void *baton);
167 /** Initialize a connection structure for the given socket or
168 * input/output files.
170 * Either @a sock or @a in_file/@a out_file must be set, not both.
171 * @a compression_level specifies the desired network data compression
172 * level (zlib) from 0 (no compression) to 9 (best but slowest).
174 * If @a zero_copy_limit is not 0, cached file contents smaller than the
175 * given limit may be sent directly to the network socket. Otherwise,
176 * it will be copied into a temporary buffer before being forwarded to
177 * the network stack. Since the zero-copy code path has to enforce strict
178 * time-outs, the receiver must be able to process @a zero_copy_limit
179 * bytes within one second. Even temporary failure to do so may cause
180 * the server to cancel the respective operation with a time-out error.
182 * To reduce the overhead of checking for cancellation requests from the
183 * data receiver, set @a error_check_interval to some non-zero value.
184 * It defines the number of bytes that must have been sent since the last
185 * check before the next check will be made.
187 * Allocate the result in @a pool.
189 * @since New in 1.8
191 svn_ra_svn_conn_t *svn_ra_svn_create_conn3(apr_socket_t *sock,
192 apr_file_t *in_file,
193 apr_file_t *out_file,
194 int compression_level,
195 apr_size_t zero_copy_limit,
196 apr_size_t error_check_interval,
197 apr_pool_t *pool);
199 /** Similar to svn_ra_svn_create_conn3() but disables the zero copy code
200 * path and sets the error checking interval to 0.
202 * @since New in 1.7.
204 * @deprecated Provided for backward compatibility with the 1.7 API.
206 SVN_DEPRECATED
207 svn_ra_svn_conn_t *
208 svn_ra_svn_create_conn2(apr_socket_t *sock,
209 apr_file_t *in_file,
210 apr_file_t *out_file,
211 int compression_level,
212 apr_pool_t *pool);
214 /** Similar to svn_ra_svn_create_conn2() but uses the default
215 * compression level (#SVN_DELTA_COMPRESSION_LEVEL_DEFAULT) for network
216 * transmissions.
218 * @deprecated Provided for backward compatibility with the 1.6 API.
220 SVN_DEPRECATED
221 svn_ra_svn_conn_t *
222 svn_ra_svn_create_conn(apr_socket_t *sock,
223 apr_file_t *in_file,
224 apr_file_t *out_file,
225 apr_pool_t *pool);
227 /** Add the capabilities in @a list to @a conn's capabilities.
228 * @a list contains svn_ra_svn_item_t entries (which should be of type
229 * SVN_RA_SVN_WORD; a malformed data error will result if any are not).
231 * This is idempotent: if a given capability was already set for
232 * @a conn, it remains set.
234 svn_error_t *
235 svn_ra_svn_set_capabilities(svn_ra_svn_conn_t *conn,
236 const apr_array_header_t *list);
238 /** Return @c TRUE if @a conn has the capability @a capability, or
239 * @c FALSE if it does not. */
240 svn_boolean_t
241 svn_ra_svn_has_capability(svn_ra_svn_conn_t *conn,
242 const char *capability);
244 /** Return the data compression level to use for network transmissions.
246 * @since New in 1.7.
249 svn_ra_svn_compression_level(svn_ra_svn_conn_t *conn);
251 /** Return the zero-copy data block limit to use for network
252 * transmissions.
254 * @see http://en.wikipedia.org/wiki/Zero-copy
256 * @since New in 1.8.
258 apr_size_t
259 svn_ra_svn_zero_copy_limit(svn_ra_svn_conn_t *conn);
261 /** Returns the remote address of the connection as a string, if known,
262 * or NULL if inapplicable. */
263 const char *
264 svn_ra_svn_conn_remote_host(svn_ra_svn_conn_t *conn);
266 /** Set @a *editor and @a *edit_baton to an editor which will pass editing
267 * operations over the network, using @a conn and @a pool.
269 * Upon successful completion of the edit, the editor will invoke @a callback
270 * with @a callback_baton as an argument.
272 void
273 svn_ra_svn_get_editor(const svn_delta_editor_t **editor,
274 void **edit_baton,
275 svn_ra_svn_conn_t *conn,
276 apr_pool_t *pool,
277 svn_ra_svn_edit_callback callback,
278 void *callback_baton);
280 /** Receive edit commands over the network and use them to drive @a editor
281 * with @a edit_baton. On return, @a *aborted will be set if the edit was
282 * aborted. The drive can be terminated with a finish-replay command only
283 * if @a for_replay is TRUE.
285 * @since New in 1.4.
287 svn_error_t *
288 svn_ra_svn_drive_editor2(svn_ra_svn_conn_t *conn,
289 apr_pool_t *pool,
290 const svn_delta_editor_t *editor,
291 void *edit_baton,
292 svn_boolean_t *aborted,
293 svn_boolean_t for_replay);
295 /** Like svn_ra_svn_drive_editor2, but with @a for_replay always FALSE.
297 * @deprecated Provided for backward compatibility with the 1.3 API.
299 SVN_DEPRECATED
300 svn_error_t *
301 svn_ra_svn_drive_editor(svn_ra_svn_conn_t *conn,
302 apr_pool_t *pool,
303 const svn_delta_editor_t *editor,
304 void *edit_baton,
305 svn_boolean_t *aborted);
307 /** This function is only intended for use by svnserve.
309 * Perform CRAM-MD5 password authentication. On success, return
310 * SVN_NO_ERROR with *user set to the username and *success set to
311 * TRUE. On an error which can be reported to the client, report the
312 * error and return SVN_NO_ERROR with *success set to FALSE. On
313 * communications failure, return an error.
315 svn_error_t *
316 svn_ra_svn_cram_server(svn_ra_svn_conn_t *conn,
317 apr_pool_t *pool,
318 svn_config_t *pwdb,
319 const char **user,
320 svn_boolean_t *success);
323 * Get libsvn_ra_svn version information.
324 * @since New in 1.1.
326 const svn_version_t *
327 svn_ra_svn_version(void);
330 * @defgroup ra_svn_deprecated ra_svn low-level functions
331 * @{
334 /** Write a number over the net.
336 * Writes will be buffered until the next read or flush.
338 * @deprecated Provided for backward compatibility with the 1.7 API.
339 * RA_SVN low-level functions are no longer considered public.
341 SVN_DEPRECATED
342 svn_error_t *
343 svn_ra_svn_write_number(svn_ra_svn_conn_t *conn,
344 apr_pool_t *pool,
345 apr_uint64_t number);
347 /** Write a string over the net.
349 * Writes will be buffered until the next read or flush.
351 * @deprecated Provided for backward compatibility with the 1.7 API.
352 * RA_SVN low-level functions are no longer considered public.
354 SVN_DEPRECATED
355 svn_error_t *
356 svn_ra_svn_write_string(svn_ra_svn_conn_t *conn,
357 apr_pool_t *pool,
358 const svn_string_t *str);
360 /** Write a cstring over the net.
362 * Writes will be buffered until the next read or flush.
364 * @deprecated Provided for backward compatibility with the 1.7 API.
365 * RA_SVN low-level functions are no longer considered public.
367 SVN_DEPRECATED
368 svn_error_t *
369 svn_ra_svn_write_cstring(svn_ra_svn_conn_t *conn,
370 apr_pool_t *pool,
371 const char *s);
373 /** Write a word over the net.
375 * Writes will be buffered until the next read or flush.
377 * @deprecated Provided for backward compatibility with the 1.7 API.
378 * RA_SVN low-level functions are no longer considered public.
380 SVN_DEPRECATED
381 svn_error_t *
382 svn_ra_svn_write_word(svn_ra_svn_conn_t *conn,
383 apr_pool_t *pool,
384 const char *word);
386 /** Write a list of properties over the net. @a props is allowed to be NULL,
387 * in which case an empty list will be written out.
389 * @since New in 1.5.
391 * @deprecated Provided for backward compatibility with the 1.7 API.
392 * RA_SVN low-level functions are no longer considered public.
394 SVN_DEPRECATED
395 svn_error_t *
396 svn_ra_svn_write_proplist(svn_ra_svn_conn_t *conn,
397 apr_pool_t *pool,
398 apr_hash_t *props);
400 /** Begin a list. Writes will be buffered until the next read or flush.
402 * @deprecated Provided for backward compatibility with the 1.7 API.
403 * RA_SVN low-level functions are no longer considered public.
405 SVN_DEPRECATED
406 svn_error_t *
407 svn_ra_svn_start_list(svn_ra_svn_conn_t *conn,
408 apr_pool_t *pool);
410 /** End a list. Writes will be buffered until the next read or flush.
412 * @deprecated Provided for backward compatibility with the 1.7 API.
413 * RA_SVN low-level functions are no longer considered public.
415 SVN_DEPRECATED
416 svn_error_t *
417 svn_ra_svn_end_list(svn_ra_svn_conn_t *conn,
418 apr_pool_t *pool);
420 /** Flush the write buffer.
422 * Normally this shouldn't be necessary, since the write buffer is flushed
423 * when a read is attempted.
425 * @deprecated Provided for backward compatibility with the 1.7 API.
426 * RA_SVN low-level functions are no longer considered public.
428 SVN_DEPRECATED
429 svn_error_t *
430 svn_ra_svn_flush(svn_ra_svn_conn_t *conn,
431 apr_pool_t *pool);
433 /** Write a tuple, using a printf-like interface.
435 * The format string @a fmt may contain:
437 *@verbatim
438 Spec Argument type Item type
439 ---- -------------------- ---------
440 n apr_uint64_t Number
441 r svn_revnum_t Number
442 s const svn_string_t * String
443 c const char * String
444 w const char * Word
445 b svn_boolean_t Word ("true" or "false")
446 ( Begin tuple
447 ) End tuple
448 ? Remaining elements optional
449 ! (at beginning or end) Suppress opening or closing of tuple
450 @endverbatim
452 * Inside the optional part of a tuple, 'r' values may be @c
453 * SVN_INVALID_REVNUM, 'n' values may be
454 * SVN_RA_SVN_UNSPECIFIED_NUMBER, and 's', 'c', and 'w' values may be
455 * @c NULL; in these cases no data will be written. 'b' and '(' may
456 * not appear in the optional part of a tuple. Either all or none of
457 * the optional values should be valid.
459 * (If we ever have a need for an optional boolean value, we should
460 * invent a 'B' specifier which stores a boolean into an int, using -1
461 * for unspecified. Right now there is no need for such a thing.)
463 * Use the '!' format specifier to write partial tuples when you have
464 * to transmit an array or other unusual data. For example, to write
465 * a tuple containing a revision, an array of words, and a boolean:
466 * @code
467 SVN_ERR(svn_ra_svn_write_tuple(conn, pool, "r(!", rev));
468 for (i = 0; i < n; i++)
469 SVN_ERR(svn_ra_svn_write_word(conn, pool, words[i]));
470 SVN_ERR(svn_ra_svn_write_tuple(conn, pool, "!)b", flag)); @endcode
472 * @deprecated Provided for backward compatibility with the 1.7 API.
473 * RA_SVN low-level functions are no longer considered public.
475 SVN_DEPRECATED
476 svn_error_t *
477 svn_ra_svn_write_tuple(svn_ra_svn_conn_t *conn,
478 apr_pool_t *pool,
479 const char *fmt, ...);
481 /** Read an item from the network into @a *item.
483 * @deprecated Provided for backward compatibility with the 1.7 API.
484 * RA_SVN low-level functions are no longer considered public.
486 SVN_DEPRECATED
487 svn_error_t *
488 svn_ra_svn_read_item(svn_ra_svn_conn_t *conn,
489 apr_pool_t *pool,
490 svn_ra_svn_item_t **item);
492 /** Scan data on @a conn until we find something which looks like the
493 * beginning of an svn server greeting (an open paren followed by a
494 * whitespace character). This function is appropriate for beginning
495 * a client connection opened in tunnel mode, since people's dotfiles
496 * sometimes write output to stdout. It may only be called at the
497 * beginning of a client connection.
499 * @deprecated Provided for backward compatibility with the 1.7 API.
500 * RA_SVN low-level functions are no longer considered public.
502 SVN_DEPRECATED
503 svn_error_t *
504 svn_ra_svn_skip_leading_garbage(svn_ra_svn_conn_t *conn,
505 apr_pool_t *pool);
507 /** Parse an array of @c svn_sort__item_t structures as a tuple, using a
508 * printf-like interface. The format string @a fmt may contain:
510 *@verbatim
511 Spec Argument type Item type
512 ---- -------------------- ---------
513 n apr_uint64_t * Number
514 r svn_revnum_t * Number
515 s svn_string_t ** String
516 c const char ** String
517 w const char ** Word
518 b svn_boolean_t * Word ("true" or "false")
519 B apr_uint64_t * Word ("true" or "false")
520 l apr_array_header_t ** List
521 ( Begin tuple
522 ) End tuple
523 ? Tuple is allowed to end here
524 @endverbatim
526 * Note that a tuple is only allowed to end precisely at a '?', or at
527 * the end of the specification. So if @a fmt is "c?cc" and @a list
528 * contains two elements, an error will result.
530 * 'B' is similar to 'b', but may be used in the optional tuple specification.
531 * It returns TRUE, FALSE, or SVN_RA_SVN_UNSPECIFIED_NUMBER.
533 * If an optional part of a tuple contains no data, 'r' values will be
534 * set to @c SVN_INVALID_REVNUM, 'n' and 'B' values will be set to
535 * SVN_RA_SVN_UNSPECIFIED_NUMBER, and 's', 'c', 'w', and 'l' values
536 * will be set to @c NULL. 'b' may not appear inside an optional
537 * tuple specification; use 'B' instead.
539 * @deprecated Provided for backward compatibility with the 1.7 API.
540 * RA_SVN low-level functions are no longer considered public.
542 SVN_DEPRECATED
543 svn_error_t *
544 svn_ra_svn_parse_tuple(const apr_array_header_t *list,
545 apr_pool_t *pool,
546 const char *fmt, ...);
548 /** Read a tuple from the network and parse it as a tuple, using the
549 * format string notation from svn_ra_svn_parse_tuple().
551 * @deprecated Provided for backward compatibility with the 1.7 API.
552 * RA_SVN low-level functions are no longer considered public.
554 SVN_DEPRECATED
555 svn_error_t *
556 svn_ra_svn_read_tuple(svn_ra_svn_conn_t *conn,
557 apr_pool_t *pool,
558 const char *fmt, ...);
560 /** Parse an array of @c svn_ra_svn_item_t structures as a list of
561 * properties, storing the properties in a hash table.
563 * @since New in 1.5.
565 * @deprecated Provided for backward compatibility with the 1.7 API.
566 * RA_SVN low-level functions are no longer considered public.
568 SVN_DEPRECATED
569 svn_error_t *
570 svn_ra_svn_parse_proplist(const apr_array_header_t *list,
571 apr_pool_t *pool,
572 apr_hash_t **props);
574 /** Read a command response from the network and parse it as a tuple, using
575 * the format string notation from svn_ra_svn_parse_tuple().
577 * @deprecated Provided for backward compatibility with the 1.7 API.
578 * RA_SVN low-level functions are no longer considered public.
580 SVN_DEPRECATED
581 svn_error_t *
582 svn_ra_svn_read_cmd_response(svn_ra_svn_conn_t *conn,
583 apr_pool_t *pool,
584 const char *fmt, ...);
586 /** Accept commands over the network and handle them according to @a
587 * commands. Command handlers will be passed @a conn, a subpool of @a
588 * pool (cleared after each command is handled), the parameters of the
589 * command, and @a baton. Commands will be accepted until a
590 * terminating command is received (a command with "terminate" set in
591 * the command table). If a command handler returns an error wrapped
592 * in SVN_RA_SVN_CMD_ERR (see the @c SVN_CMD_ERR macro), the error
593 * will be reported to the other side of the connection and the
594 * command loop will continue; any other kind of error (typically a
595 * network or protocol error) is passed through to the caller.
597 * @since New in 1.6.
599 * @deprecated Provided for backward compatibility with the 1.7 API.
600 * RA_SVN low-level functions are no longer considered public.
602 SVN_DEPRECATED
603 svn_error_t *
604 svn_ra_svn_handle_commands2(svn_ra_svn_conn_t *conn,
605 apr_pool_t *pool,
606 const svn_ra_svn_cmd_entry_t *commands,
607 void *baton,
608 svn_boolean_t error_on_disconnect);
610 /** Similar to svn_ra_svn_handle_commands2 but @a error_on_disconnect
611 * is always @c FALSE.
613 * @deprecated Provided for backward compatibility with the 1.5 API.
615 SVN_DEPRECATED
616 svn_error_t *
617 svn_ra_svn_handle_commands(svn_ra_svn_conn_t *conn,
618 apr_pool_t *pool,
619 const svn_ra_svn_cmd_entry_t *commands,
620 void *baton);
622 /** Write a command over the network, using the same format string notation
623 * as svn_ra_svn_write_tuple().
625 * @deprecated Provided for backward compatibility with the 1.7 API.
626 * RA_SVN low-level functions are no longer considered public.
628 SVN_DEPRECATED
629 svn_error_t *
630 svn_ra_svn_write_cmd(svn_ra_svn_conn_t *conn,
631 apr_pool_t *pool,
632 const char *cmdname,
633 const char *fmt, ...);
635 /** Write a successful command response over the network, using the
636 * same format string notation as svn_ra_svn_write_tuple(). Do not use
637 * partial tuples with this function; if you need to use partial
638 * tuples, just write out the "success" and argument tuple by hand.
640 * @deprecated Provided for backward compatibility with the 1.7 API.
641 * RA_SVN low-level functions are no longer considered public.
643 SVN_DEPRECATED
644 svn_error_t *
645 svn_ra_svn_write_cmd_response(svn_ra_svn_conn_t *conn,
646 apr_pool_t *pool,
647 const char *fmt, ...);
649 /** Write an unsuccessful command response over the network.
651 * @deprecated Provided for backward compatibility with the 1.7 API.
652 * RA_SVN low-level functions are no longer considered public.
654 SVN_DEPRECATED
655 svn_error_t *
656 svn_ra_svn_write_cmd_failure(svn_ra_svn_conn_t *conn,
657 apr_pool_t *pool,
658 svn_error_t *err);
661 * @}
664 #ifdef __cplusplus
666 #endif /* __cplusplus */
668 #endif /* SVN_RA_SVN_H */