1 /* miscellaneous-table.h : internal interface to ops on `miscellaneous' table
3 * ====================================================================
4 * Licensed to the Apache Software Foundation (ASF) under one
5 * or more contributor license agreements. See the NOTICE file
6 * distributed with this work for additional information
7 * regarding copyright ownership. The ASF licenses this file
8 * to you under the Apache License, Version 2.0 (the
9 * "License"); you may not use this file except in compliance
10 * with the License. You may obtain a copy of the License at
12 * http://www.apache.org/licenses/LICENSE-2.0
14 * Unless required by applicable law or agreed to in writing,
15 * software distributed under the License is distributed on an
16 * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
17 * KIND, either express or implied. See the License for the
18 * specific language governing permissions and limitations
20 * ====================================================================
23 #ifndef SVN_LIBSVN_FS_MISCELLANEOUS_TABLE_H
24 #define SVN_LIBSVN_FS_MISCELLANEOUS_TABLE_H
27 #include "svn_error.h"
33 #endif /* __cplusplus */
36 /* Open a `miscellaneous' table in ENV. If CREATE is non-zero, create
37 one if it doesn't exist. Set *MISCELLANEOUS_P to the new table.
38 Return a Berkeley DB error code. */
40 svn_fs_bdb__open_miscellaneous_table(DB **miscellaneous_p,
42 svn_boolean_t create);
45 /* Add data to the `miscellaneous' table in FS, as part of TRAIL.
47 KEY and VAL should be NULL-terminated strings. If VAL is NULL,
48 the key is removed from the table. */
50 svn_fs_bdb__miscellaneous_set(svn_fs_t *fs,
57 /* Set *VAL to the value of data cooresponding to KEY in the
58 `miscellaneous' table of FS, or to NULL if that key isn't found. */
60 svn_fs_bdb__miscellaneous_get(const char **val,
69 #endif /* __cplusplus */
71 #endif /* SVN_LIBSVN_FS_MISCELLANEOUS_TABLE_H */