deprecated.c revision 299742
1/* 2 * deprecated.c: holding file for all deprecated APIs. 3 * "we can't lose 'em, but we can shun 'em!" 4 * 5 * ==================================================================== 6 * Licensed to the Apache Software Foundation (ASF) under one 7 * or more contributor license agreements. See the NOTICE file 8 * distributed with this work for additional information 9 * regarding copyright ownership. The ASF licenses this file 10 * to you under the Apache License, Version 2.0 (the 11 * "License"); you may not use this file except in compliance 12 * with the License. You may obtain a copy of the License at 13 * 14 * http://www.apache.org/licenses/LICENSE-2.0 15 * 16 * Unless required by applicable law or agreed to in writing, 17 * software distributed under the License is distributed on an 18 * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY 19 * KIND, either express or implied. See the License for the 20 * specific language governing permissions and limitations 21 * under the License. 22 * ==================================================================== 23 */ 24 25/* We define this here to remove any further warnings about the usage of 26 deprecated functions in this file. */ 27#define SVN_DEPRECATED 28 29#include "svn_fs.h" 30 31 32/*** From fs-loader.c ***/ 33svn_error_t * 34svn_fs_upgrade(const char *path, apr_pool_t *pool) 35{ 36 return svn_error_trace(svn_fs_upgrade2(path, NULL, NULL, NULL, NULL, pool)); 37} 38 39svn_error_t * 40svn_fs_hotcopy2(const char *src_path, const char *dest_path, 41 svn_boolean_t clean, svn_boolean_t incremental, 42 svn_cancel_func_t cancel_func, void *cancel_baton, 43 apr_pool_t *scratch_pool) 44{ 45 return svn_error_trace(svn_fs_hotcopy3(src_path, dest_path, clean, 46 incremental, NULL, NULL, 47 cancel_func, cancel_baton, 48 scratch_pool)); 49} 50 51svn_error_t * 52svn_fs_hotcopy(const char *src_path, const char *dest_path, 53 svn_boolean_t clean, apr_pool_t *pool) 54{ 55 return svn_error_trace(svn_fs_hotcopy2(src_path, dest_path, clean, 56 FALSE, NULL, NULL, pool)); 57} 58 59svn_error_t * 60svn_fs_begin_txn(svn_fs_txn_t **txn_p, svn_fs_t *fs, svn_revnum_t rev, 61 apr_pool_t *pool) 62{ 63 return svn_error_trace(svn_fs_begin_txn2(txn_p, fs, rev, 0, pool)); 64} 65 66svn_error_t * 67svn_fs_change_rev_prop(svn_fs_t *fs, svn_revnum_t rev, const char *name, 68 const svn_string_t *value, apr_pool_t *pool) 69{ 70 return svn_error_trace( 71 svn_fs_change_rev_prop2(fs, rev, name, NULL, value, pool)); 72} 73 74svn_error_t * 75svn_fs_get_locks(svn_fs_t *fs, const char *path, 76 svn_fs_get_locks_callback_t get_locks_func, 77 void *get_locks_baton, apr_pool_t *pool) 78{ 79 return svn_error_trace(svn_fs_get_locks2(fs, path, svn_depth_infinity, 80 get_locks_func, get_locks_baton, 81 pool)); 82} 83 84/*** From access.c ***/ 85svn_error_t * 86svn_fs_access_add_lock_token(svn_fs_access_t *access_ctx, 87 const char *token) 88{ 89 return svn_fs_access_add_lock_token2(access_ctx, (const char *) 1, token); 90} 91