Deleted Added
full compact
cached_data.h (302408) cached_data.h (362181)
1/* cached_data.h --- cached (read) access to FSX data
2 *
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

--- 6 unchanged lines hidden (view full) ---

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
19 * under the License.
20 * ====================================================================
21 */
22
1/* cached_data.h --- cached (read) access to FSX data
2 *
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

--- 6 unchanged lines hidden (view full) ---

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
19 * under the License.
20 * ====================================================================
21 */
22
23#ifndef SVN_LIBSVN_FS__CACHED_DATA_H
24#define SVN_LIBSVN_FS__CACHED_DATA_H
23#ifndef SVN_LIBSVN_FS_X_CACHED_DATA_H
24#define SVN_LIBSVN_FS_X_CACHED_DATA_H
25
26#include "svn_pools.h"
27#include "svn_fs.h"
28
29#include "fs.h"
30#include "index.h"
31
32

--- 29 unchanged lines hidden (view full) ---

62 accessed. Do any allocations in SCRATCH_POOL. */
63svn_error_t *
64svn_fs_x__rep_chain_length(int *chain_length,
65 int *shard_count,
66 svn_fs_x__representation_t *rep,
67 svn_fs_t *fs,
68 apr_pool_t *scratch_pool);
69
25
26#include "svn_pools.h"
27#include "svn_fs.h"
28
29#include "fs.h"
30#include "index.h"
31
32

--- 29 unchanged lines hidden (view full) ---

62 accessed. Do any allocations in SCRATCH_POOL. */
63svn_error_t *
64svn_fs_x__rep_chain_length(int *chain_length,
65 int *shard_count,
66 svn_fs_x__representation_t *rep,
67 svn_fs_t *fs,
68 apr_pool_t *scratch_pool);
69
70/* Set *CONTENTS to be a readable svn_stream_t that receives the text
70/* Set *CONTENTS_P to be a readable svn_stream_t that receives the text
71 representation REP as seen in filesystem FS. If CACHE_FULLTEXT is
72 not set, bypass fulltext cache lookup for this rep and don't put the
73 reconstructed fulltext into cache.
74 Allocate *CONTENT_P in RESULT_POOL. */
75svn_error_t *
76svn_fs_x__get_contents(svn_stream_t **contents_p,
77 svn_fs_t *fs,
78 svn_fs_x__representation_t *rep,
79 svn_boolean_t cache_fulltext,
80 apr_pool_t *result_pool);
81
71 representation REP as seen in filesystem FS. If CACHE_FULLTEXT is
72 not set, bypass fulltext cache lookup for this rep and don't put the
73 reconstructed fulltext into cache.
74 Allocate *CONTENT_P in RESULT_POOL. */
75svn_error_t *
76svn_fs_x__get_contents(svn_stream_t **contents_p,
77 svn_fs_t *fs,
78 svn_fs_x__representation_t *rep,
79 svn_boolean_t cache_fulltext,
80 apr_pool_t *result_pool);
81
82/* Set *CONTENTS_P to be a readable svn_stream_t that receives the text
83 representation REP as seen in filesystem FS. Read the latest element
84 of the delta chain from FILE at offset OFFSET.
85 Use POOL for allocations. */
86svn_error_t *
87svn_fs_x__get_contents_from_file(svn_stream_t **contents_p,
88 svn_fs_t *fs,
89 svn_fs_x__representation_t *rep,
90 apr_file_t *file,
91 apr_off_t offset,
92 apr_pool_t *pool);
93
82/* Determine on-disk and expanded sizes of the representation identified
83 * by ENTRY in FS and return the result in PACKED_LEN and EXPANDED_LEN,
84 * respectively. FILE must point to the start of the representation and
85 * STREAM must be a stream defined on top of FILE.
86 * Use SCRATCH_POOL for temporary allocations.
87 */
88svn_error_t *
89svn_fs_x__get_representation_length(svn_filesize_t *packed_len,

--- 73 unchanged lines hidden (view full) ---

163 in RESULT_POOL and use SCRATCH_POOL for temporary allocations. */
164svn_error_t *
165svn_fs_x__get_proplist(apr_hash_t **proplist,
166 svn_fs_t *fs,
167 svn_fs_x__noderev_t *noderev,
168 apr_pool_t *result_pool,
169 apr_pool_t *scratch_pool);
170
94/* Determine on-disk and expanded sizes of the representation identified
95 * by ENTRY in FS and return the result in PACKED_LEN and EXPANDED_LEN,
96 * respectively. FILE must point to the start of the representation and
97 * STREAM must be a stream defined on top of FILE.
98 * Use SCRATCH_POOL for temporary allocations.
99 */
100svn_error_t *
101svn_fs_x__get_representation_length(svn_filesize_t *packed_len,

--- 73 unchanged lines hidden (view full) ---

175 in RESULT_POOL and use SCRATCH_POOL for temporary allocations. */
176svn_error_t *
177svn_fs_x__get_proplist(apr_hash_t **proplist,
178 svn_fs_t *fs,
179 svn_fs_x__noderev_t *noderev,
180 apr_pool_t *result_pool,
181 apr_pool_t *scratch_pool);
182
171/* Fetch the list of change in revision REV in FS and return it in *CHANGES.
172 * Allocate the result in POOL.
183/* Create a changes retrieval context object in *RESULT_POOL and return it
184 * in *CONTEXT. It will allow svn_fs_x__get_changes to fetch consecutive
185 * blocks (one per invocation) from REV's changed paths list in FS.
186 * Use SCRATCH_POOL for temporary allocations. */
187svn_error_t *
188svn_fs_x__create_changes_context(svn_fs_x__changes_context_t **context,
189 svn_fs_t *fs,
190 svn_revnum_t rev,
191 apr_pool_t *result_pool,
192 apr_pool_t *scratch_pool);
193
194/* Fetch the block of changes from the CONTEXT and return it in *CHANGES.
195 * Allocate the result in RESULT_POOL and use SCRATCH_POOL for temporaries.
173 */
174svn_error_t *
175svn_fs_x__get_changes(apr_array_header_t **changes,
196 */
197svn_error_t *
198svn_fs_x__get_changes(apr_array_header_t **changes,
176 svn_fs_t *fs,
177 svn_revnum_t rev,
178 apr_pool_t *pool);
199 svn_fs_x__changes_context_t *context,
200 apr_pool_t *result_pool,
201 apr_pool_t *scratch_pool);
179
180#endif
202
203#endif