1 /* node-origins-table.h : internal interface to ops on `node-origins' table
3 * ====================================================================
4 * Copyright (c) 2007 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_NODE_ORIGINS_TABLE_H
19 #define SVN_LIBSVN_FS_NODE_ORIGINS_TABLE_H
22 #include "svn_error.h"
28 #endif /* __cplusplus */
31 /* Open a `node-origins' table in ENV. If CREATE is non-zero, create
32 one if it doesn't exist. Set *NODE_ORIGINS_P to the new table.
33 Return a Berkeley DB error code. */
34 int svn_fs_bdb__open_node_origins_table(DB
**node_origins_p
,
36 svn_boolean_t create
);
38 /* Set *ORIGIN_ID to the node revision ID from which the history of
39 all nodes in FS whose node ID is NODE_ID springs, as determined by
40 a look in the `node-origins' table. Do this as part of TRAIL. Use
43 If no such node revision ID is stored for NODE_ID, return
44 SVN_ERR_FS_NO_SUCH_NODE_ORIGIN. */
45 svn_error_t
*svn_fs_bdb__get_node_origin(const svn_fs_id_t
**origin_id
,
51 /* Store in the `node-origins' table a mapping of NODE_ID to original
52 node revision ID ORIGIN_ID for FS. Do this as part of TRAIL. Use
53 POOL for temporary allocations. */
54 svn_error_t
*svn_fs_bdb__set_node_origin(svn_fs_t
*fs
,
56 const svn_fs_id_t
*origin_id
,
60 /* Delete from the `node-origins' table the record for NODE_ID in FS.
61 Do this as part of TRAIL. Use POOL for temporary allocations. */
62 svn_error_t
*svn_fs_bdb__delete_node_origin(svn_fs_t
*fs
,
69 #endif /* __cplusplus */
71 #endif /* SVN_LIBSVN_FS_NODE_ORIGINS_TABLE_H */