1 /* reps-table.h : internal interface to `representations' table
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_REPS_TABLE_H
19 #define SVN_LIBSVN_FS_REPS_TABLE_H
31 #endif /* __cplusplus */
34 /*** Creating the `representations' table. ***/
36 /* Open a `representations' table in ENV. If CREATE is non-zero,
37 create one if it doesn't exist. Set *REPS_P to the new table.
38 Return a Berkeley DB error code. */
39 int svn_fs_bdb__open_reps_table(DB
**reps_p
,
41 svn_boolean_t create
);
45 /*** Storing and retrieving reps. ***/
47 /* Set *REP_P to point to the representation for the key KEY in
48 FS, as part of TRAIL. Perform all allocations in POOL.
50 If KEY is not a representation in FS, the error
51 SVN_ERR_FS_NO_SUCH_REPRESENTATION is returned. */
52 svn_error_t
*svn_fs_bdb__read_rep(representation_t
**rep_p
,
59 /* Store REP as the representation for KEY in FS, as part of
60 TRAIL. Do any necessary temporary allocation in POOL. */
61 svn_error_t
*svn_fs_bdb__write_rep(svn_fs_t
*fs
,
63 const representation_t
*rep
,
68 /* Store REP as a new representation in FS, and the new rep's key in
69 *KEY, as part of trail. The new key is allocated in POOL. */
70 svn_error_t
*svn_fs_bdb__write_new_rep(const char **key
,
72 const representation_t
*rep
,
76 /* Delete representation KEY from FS, as part of TRAIL.
77 WARNING: This does not ensure that no one references this
78 representation! Callers should ensure that themselves. */
79 svn_error_t
*svn_fs_bdb__delete_rep(svn_fs_t
*fs
,
87 #endif /* __cplusplus */
89 #endif /* SVN_LIBSVN_FS_REPS_TABLE_H */