1 /* tree.h : internal interface to tree node functions
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 #ifndef SVN_LIBSVN_FS_TREE_H
24 #define SVN_LIBSVN_FS_TREE_H
28 #endif /* __cplusplus */
30 #include "svn_props.h"
34 /* These functions implement some of the calls in the FS loader
35 library's fs and txn vtables. */
37 svn_error_t *svn_fs_base__revision_root(svn_fs_root_t **root_p, svn_fs_t *fs,
38 svn_revnum_t rev, apr_pool_t *pool);
40 svn_error_t *svn_fs_base__deltify(svn_fs_t *fs, svn_revnum_t rev,
43 svn_error_t *svn_fs_base__commit_txn(const char **conflict_p,
44 svn_revnum_t *new_rev, svn_fs_txn_t *txn,
47 svn_error_t *svn_fs_base__txn_root(svn_fs_root_t **root_p, svn_fs_txn_t *txn,
52 /* Inserting and retrieving miscellany records in the fs */
54 /* Set the value of miscellaneous records KEY to VAL in FS. To remove
55 a value altogether, pass NULL for VAL.
57 KEY and VAL should be NULL-terminated strings. */
59 svn_fs_base__miscellaneous_set(svn_fs_t *fs,
64 /* Retrieve the miscellany records for KEY into *VAL for FS, allocated
65 in POOL. If the fs doesn't support miscellany storage, or the value
66 does not exist, *VAL is set to NULL.
68 KEY should be a NULL-terminated string. */
70 svn_fs_base__miscellaneous_get(const char **val,
79 /* Helper func: in the context of TRAIL, return the KIND of PATH in
80 head revision. If PATH doesn't exist, set *KIND to svn_node_none.*/
81 svn_error_t *svn_fs_base__get_path_kind(svn_node_kind_t *kind,
86 /* Helper func: in the context of TRAIL, set *REV to the created-rev
87 of PATH in head revision. If PATH doesn't exist, set *REV to
88 SVN_INVALID_REVNUM. */
89 svn_error_t *svn_fs_base__get_path_created_rev(svn_revnum_t *rev,
97 #endif /* __cplusplus */
99 #endif /* SVN_LIBSVN_FS_TREE_H */