1 /* changes-table.h : internal interface to `changes' 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_CHANGES_TABLE_H
24 #define SVN_LIBSVN_FS_CHANGES_TABLE_H
27 #include "svn_private_config.h"
36 #endif /* __cplusplus */
39 /* Open a `changes' table in ENV. If CREATE is non-zero, create one
40 if it doesn't exist. Set *CHANGES_P to the new table. Return a
41 Berkeley DB error code. */
42 int svn_fs_bdb__open_changes_table(DB **changes_p,
44 svn_boolean_t create);
47 /* Add CHANGE as a record to the `changes' table in FS as part of
50 CHANGE->path is expected to be a canonicalized filesystem path (see
51 svn_fs__canonicalize_abspath).
53 Note that because the `changes' table uses duplicate keys, this
54 function will not overwrite prior additions that have the KEY
55 key, but simply adds this new record alongside previous ones. */
56 svn_error_t *svn_fs_bdb__changes_add(svn_fs_t *fs,
63 /* Remove all changes associated with KEY from the `changes' table in
64 FS, as part of TRAIL. */
65 svn_error_t *svn_fs_bdb__changes_delete(svn_fs_t *fs,
70 /* Return a hash *CHANGES_P, keyed on const char * paths, and
71 containing svn_fs_path_change2_t * values representing summarized
72 changed records associated with KEY in FS, as part of TRAIL.
73 Allocate the array and its items in POOL. */
74 svn_error_t *svn_fs_bdb__changes_fetch(apr_hash_t **changes_p,
80 /* Return an array *CHANGES_P of change_t * items representing
81 all the change records associated with KEY in FS, as part of TRAIL.
82 Allocate the array and its items in POOL. */
83 svn_error_t *svn_fs_bdb__changes_fetch_raw(apr_array_header_t **changes_p,
92 #endif /* __cplusplus */
94 #endif /* SVN_LIBSVN_FS_CHANGES_TABLE_H */