Mark many merge tests as skip-against-old-server.
[svn.git] / subversion / libsvn_fs_base / bdb / rev-table.h
blobebfa2541c3801afd1a63bd013470a44b8239e347
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
21 #define APU_WANT_DB
22 #include <apu_want.h>
24 #include "svn_fs.h"
26 #include "../fs.h"
27 #include "../trail.h"
29 #ifdef __cplusplus
30 extern "C" {
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,
40 DB_ENV *env,
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,
52 svn_fs_t *fs,
53 svn_revnum_t rev,
54 trail_t *trail,
55 apr_pool_t *pool);
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,
62 svn_fs_t *fs,
63 const revision_t *revision,
64 trail_t *trail,
65 apr_pool_t *pool);
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,
71 svn_fs_t *fs,
72 trail_t *trail,
73 apr_pool_t *pool);
76 #ifdef __cplusplus
78 #endif /* __cplusplus */
80 #endif /* SVN_LIBSVN_FS_REV_TABLE_H */