1 /* rev-table.h : internal interface to revision table operations
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_REV_TABLE_H
24 #define SVN_LIBSVN_FS_REV_TABLE_H
27 #include "svn_private_config.h"
36 #endif /* __cplusplus */
39 /* Creating and opening the `revisions' table. */
41 /* Open a `revisions' table in ENV. If CREATE is non-zero, create one
42 if it doesn't exist. Set *REVS_P to the new table. Return a
43 Berkeley DB error code. */
44 int svn_fs_bdb__open_revisions_table(DB **revisions_p,
46 svn_boolean_t create);
50 /* Storing and retrieving filesystem revisions. */
53 /* Set *REVISION_P to point to the revision structure for the
54 filesystem revision REV in FS, as part of TRAIL. Perform all
55 allocations in POOL. */
56 svn_error_t *svn_fs_bdb__get_rev(revision_t **revision_p,
62 /* Store REVISION in FS as revision *REV as part of TRAIL. If *REV is
63 an invalid revision number, create a brand new revision and return
64 its revision number as *REV to the caller. Do any necessary
65 temporary allocation in POOL. */
66 svn_error_t *svn_fs_bdb__put_rev(svn_revnum_t *rev,
68 const revision_t *revision,
73 /* Set *YOUNGEST_P to the youngest revision in filesystem FS,
74 as part of TRAIL. Use POOL for all temporary allocation. */
75 svn_error_t *svn_fs_bdb__youngest_rev(svn_revnum_t *youngest_p,
83 #endif /* __cplusplus */
85 #endif /* SVN_LIBSVN_FS_REV_TABLE_H */