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_X_TREE_H
24 #define SVN_LIBSVN_FS_X_TREE_H
31 #endif /* __cplusplus */
35 /* Return the transaction ID to a given transaction ROOT. */
37 svn_fs_x__root_txn_id(svn_fs_root_t *root);
39 /* Return the change set to a given ROOT. */
40 svn_fs_x__change_set_t
41 svn_fs_x__root_change_set(svn_fs_root_t *root);
43 /* Set *ROOT_P to the root directory of revision REV in filesystem FS.
44 Allocate the structure in POOL. */
46 svn_fs_x__revision_root(svn_fs_root_t **root_p,
51 /* Does nothing, but included for Subversion 1.0.x compatibility. */
53 svn_fs_x__deltify(svn_fs_t *fs,
55 apr_pool_t *scratch_pool);
57 /* Commit the transaction TXN as a new revision. Return the new
58 revision in *NEW_REV. If the transaction conflicts with other
59 changes return SVN_ERR_FS_CONFLICT and set *CONFLICT_P to a string
60 that details the cause of the conflict. */
62 svn_fs_x__commit_txn(const char **conflict_p,
63 svn_revnum_t *new_rev,
67 /* Set ROOT_P to the root directory of transaction TXN. Allocate the
70 svn_fs_x__txn_root(svn_fs_root_t **root_p,
75 /* Set KIND_P to the node kind of the node at PATH in ROOT.
76 Use SCRATCH_POOL for temporary allocations. */
78 svn_fs_x__check_path(svn_node_kind_t *kind_p,
81 apr_pool_t *scratch_pool);
83 /* Set *REVISION to the revision in which PATH under ROOT was created.
84 Use SCRATCH_POOL for any temporary allocations. If PATH is in an
85 uncommitted transaction, *REVISION will be set to
86 SVN_INVALID_REVNUM. */
88 svn_fs_x__node_created_rev(svn_revnum_t *revision,
91 apr_pool_t *scratch_pool);
93 /* Verify metadata for ROOT.
94 ### Currently only implemented for revision roots. */
96 svn_fs_x__verify_root(svn_fs_root_t *root,
97 apr_pool_t *scratch_pool);
100 svn_fs_x__info_format(int *fs_format,
101 svn_version_t **supports_version,
103 apr_pool_t *result_pool,
104 apr_pool_t *scratch_pool);
108 svn_fs_x__info_config_files(apr_array_header_t **files,
110 apr_pool_t *result_pool,
111 apr_pool_t *scratch_pool);
115 #endif /* __cplusplus */
117 #endif /* SVN_LIBSVN_FS_X_TREE_H */