/usr/include/subversion-1/svn_compat.h is in libsvn-dev 1.6.17dfsg-3ubuntu3.
This file is owned by root:root, with mode 0o644.
The actual contents of the file can be viewed below.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 | /**
* @copyright
* ====================================================================
* Copyright (c) 2006-2008 CollabNet. All rights reserved.
*
* This software is licensed as described in the file COPYING, which
* you should have received as part of this distribution. The terms
* are also available at http://subversion.tigris.org/license-1.html.
* If newer versions of this license are posted there, you may use a
* newer version instead, at your option.
*
* This software consists of voluntary contributions made by many
* individuals. For exact contribution history, see the revision
* history and logs, available at http://subversion.tigris.org/.
* ====================================================================
* @endcopyright
*
* @file svn_compat.h
* @brief Utilities to help applications provide backwards-compatibility
*/
#ifndef SVN_COMPAT_H
#define SVN_COMPAT_H
#include <apr_pools.h>
#include <apr_hash.h>
#include <apr_tables.h>
#include "svn_types.h"
#ifdef __cplusplus
extern "C" {
#endif /* __cplusplus */
/** Return, in @a *callback2 and @a *callback2_baton a function/baton that
* will call @a callback/@a callback_baton, allocating the @a *callback2_baton
* in @a pool.
*
* @note This is used by compatibility wrappers, which exist in more than
* Subversion core library.
*
* @since New in 1.4.
*/
void
svn_compat_wrap_commit_callback(svn_commit_callback2_t *callback2,
void **callback2_baton,
svn_commit_callback_t callback,
void *callback_baton,
apr_pool_t *pool);
/** Clear svn:author, svn:date, and svn:log from @a revprops if not NULL.
* Use this if you must handle these three properties separately for
* compatibility reasons.
*
* @since New in 1.5.
*/
void
svn_compat_log_revprops_clear(apr_hash_t *revprops);
/** Return a list to pass to post-1.5 log-retrieval functions in order to
* retrieve the pre-1.5 set of revprops: svn:author, svn:date, and svn:log.
*
* @since New in 1.5.
*/
apr_array_header_t *
svn_compat_log_revprops_in(apr_pool_t *pool);
/** Return, in @a **author, @a **date, and @a **message, the values of the
* svn:author, svn:date, and svn:log revprops from @a revprops. If @a
* revprops is NULL, all return values are NULL. Any return value may be
* NULL if the corresponding property is not set in @a revprops.
*
* @since New in 1.5.
*/
void
svn_compat_log_revprops_out(const char **author, const char **date,
const char **message, apr_hash_t *revprops);
/** Return, in @a *receiver2 and @a *receiver2_baton a function/baton that
* will call @a receiver/@a receiver_baton, allocating the @a *receiver2_baton
* in @a pool.
*
* @note This is used by compatibility wrappers, which exist in more than
* Subversion core library.
*
* @since New in 1.5.
*/
void
svn_compat_wrap_log_receiver(svn_log_entry_receiver_t *receiver2,
void **receiver2_baton,
svn_log_message_receiver_t receiver,
void *receiver_baton,
apr_pool_t *pool);
#ifdef __cplusplus
}
#endif /* __cplusplus */
#endif /* SVN_COMPAT_H */
|