Fix compiler warning due to missing function prototype.
[svn.git] / subversion / libsvn_fs_base / bdb / node-origins-table.h
blob4dba46a9984403b50c38f3be7e3596f07001e612
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
21 #include "svn_fs.h"
22 #include "svn_error.h"
23 #include "../trail.h"
24 #include "../fs.h"
26 #ifdef __cplusplus
27 extern "C" {
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,
35 DB_ENV *env,
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
41 POOL for allocations.
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,
46 svn_fs_t *fs,
47 const char *node_id,
48 trail_t *trail,
49 apr_pool_t *pool);
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,
55 const char *node_id,
56 const svn_fs_id_t *origin_id,
57 trail_t *trail,
58 apr_pool_t *pool);
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,
63 const char *node_id,
64 trail_t *trail,
65 apr_pool_t *pool);
67 #ifdef __cplusplus
69 #endif /* __cplusplus */
71 #endif /* SVN_LIBSVN_FS_NODE_ORIGINS_TABLE_H */