Mark many merge tests as skip-against-old-server.
[svn.git] / subversion / libsvn_fs_base / bdb / uuids-table.h
blob93a0dd1a2f46b59d484d2965df2065b6a90a216f
1 /* uuids-table.h : internal interface to `uuids' 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_UUIDS_TABLE_H
19 #define SVN_LIBSVN_FS_UUIDS_TABLE_H
21 #define APU_WANT_DB
22 #include <apu_want.h>
24 #include "svn_io.h"
25 #include "svn_fs.h"
27 #ifdef __cplusplus
28 extern "C" {
29 #endif /* __cplusplus */
32 /* Open a `uuids' table in @a env.
34 * Open a `uuids' table in @a env. If @a create is non-zero, create
35 * one if it doesn't exist. Set @a *uuids_p to the new table.
36 * Return a Berkeley DB error code.
38 int svn_fs_bdb__open_uuids_table(DB **uuids_p,
39 DB_ENV *env,
40 svn_boolean_t create);
42 /* Get the UUID at index @a idx in the uuids table within @a fs,
43 * storing the result in @a *uuid.
45 svn_error_t *svn_fs_bdb__get_uuid(svn_fs_t *fs,
46 int idx,
47 const char **uuid,
48 trail_t *trail,
49 apr_pool_t *pool);
51 /* Set the UUID at index @a idx in the uuids table within @a fs
52 * to @a uuid.
54 svn_error_t *svn_fs_bdb__set_uuid(svn_fs_t *fs,
55 int idx,
56 const char *uuid,
57 trail_t *trail,
58 apr_pool_t *pool);
60 #ifdef __cplusplus
62 #endif /* __cplusplus */
64 #endif /* SVN_LIBSVN_FS_UUIDS_TABLE_H */