1 /* rev-table.h : internal interface to revision table operations
3 * ====================================================================
4 * Copyright (c) 2000-2004 CollabNet. All rights reserved.
6 * This software is licensed as described in the file COPYING, which
7 * you should have received as part of this distribution. The terms
8 * are also available at http://subversion.tigris.org/license-1.html.
9 * If newer versions of this license are posted there, you may use a
10 * newer version instead, at your option.
12 * This software consists of voluntary contributions made by many
13 * individuals. For exact contribution history, see the revision
14 * history and logs, available at http://subversion.tigris.org/.
15 * ====================================================================
18 #ifndef SVN_LIBSVN_FS_REV_TABLE_H
19 #define SVN_LIBSVN_FS_REV_TABLE_H
31 #endif /* __cplusplus */
34 /* Creating and opening the `revisions' table. */
36 /* Open a `revisions' table in ENV. If CREATE is non-zero, create one
37 if it doesn't exist. Set *REVS_P to the new table. Return a
38 Berkeley DB error code. */
39 int svn_fs_bdb__open_revisions_table(DB
**revisions_p
,
41 svn_boolean_t create
);
45 /* Storing and retrieving filesystem revisions. */
48 /* Set *REVISION_P to point to the revision structure for the
49 filesystem revision REV in FS, as part of TRAIL. Perform all
50 allocations in POOL. */
51 svn_error_t
*svn_fs_bdb__get_rev(revision_t
**revision_p
,
57 /* Store REVISION in FS as revision *REV as part of TRAIL. If *REV is
58 an invalid revision number, create a brand new revision and return
59 its revision number as *REV to the caller. Do any necessary
60 temporary allocation in POOL. */
61 svn_error_t
*svn_fs_bdb__put_rev(svn_revnum_t
*rev
,
63 const revision_t
*revision
,
68 /* Set *YOUNGEST_P to the youngest revision in filesystem FS,
69 as part of TRAIL. Use POOL for all temporary allocation. */
70 svn_error_t
*svn_fs_bdb__youngest_rev(svn_revnum_t
*youngest_p
,
78 #endif /* __cplusplus */
80 #endif /* SVN_LIBSVN_FS_REV_TABLE_H */