noderevs.h (302408) | noderevs.h (362181) |
---|---|
1/* noderevs.h --- FSX node revision container 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/* noderevs.h --- FSX node revision container 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__NODEREVS_H 24#define SVN_LIBSVN_FS__NODEREVS_H | 23#ifndef SVN_LIBSVN_FS_X_NODEREVS_H 24#define SVN_LIBSVN_FS_X_NODEREVS_H |
25 26#include "svn_io.h" 27#include "fs.h" 28 29/* A collection of related noderevs tends to be widely redundant (similar 30 * paths, predecessor ID matching anothers ID, shared representations etc.) 31 * Also, the binary representation of a noderev can be much shorter than 32 * the ordinary textual variant. --- 38 unchanged lines hidden (view full) --- 71 72/* From CONTAINER, extract the noderev with the given IDX. Allocate 73 * the result in POOL and return it in *NODEREV_P. 74 */ 75svn_error_t * 76svn_fs_x__noderevs_get(svn_fs_x__noderev_t **noderev_p, 77 const svn_fs_x__noderevs_t *container, 78 apr_size_t idx, | 25 26#include "svn_io.h" 27#include "fs.h" 28 29/* A collection of related noderevs tends to be widely redundant (similar 30 * paths, predecessor ID matching anothers ID, shared representations etc.) 31 * Also, the binary representation of a noderev can be much shorter than 32 * the ordinary textual variant. --- 38 unchanged lines hidden (view full) --- 71 72/* From CONTAINER, extract the noderev with the given IDX. Allocate 73 * the result in POOL and return it in *NODEREV_P. 74 */ 75svn_error_t * 76svn_fs_x__noderevs_get(svn_fs_x__noderev_t **noderev_p, 77 const svn_fs_x__noderevs_t *container, 78 apr_size_t idx, |
79 apr_pool_t *pool); | 79 apr_pool_t *result_pool); |
80 81/* I/O interface. */ 82 83/* Write a serialized representation of CONTAINER to STREAM. 84 * Use SCRATCH_POOL for temporary allocations. 85 */ 86svn_error_t * 87svn_fs_x__write_noderevs_container(svn_stream_t *stream, --- 21 unchanged lines hidden (view full) --- 109 110/* Implements #svn_cache__deserialize_func_t for svn_fs_x__noderevs_t 111 * objects. 112 */ 113svn_error_t * 114svn_fs_x__deserialize_noderevs_container(void **out, 115 void *data, 116 apr_size_t data_len, | 80 81/* I/O interface. */ 82 83/* Write a serialized representation of CONTAINER to STREAM. 84 * Use SCRATCH_POOL for temporary allocations. 85 */ 86svn_error_t * 87svn_fs_x__write_noderevs_container(svn_stream_t *stream, --- 21 unchanged lines hidden (view full) --- 109 110/* Implements #svn_cache__deserialize_func_t for svn_fs_x__noderevs_t 111 * objects. 112 */ 113svn_error_t * 114svn_fs_x__deserialize_noderevs_container(void **out, 115 void *data, 116 apr_size_t data_len, |
117 apr_pool_t *pool); | 117 apr_pool_t *result_pool); |
118 119/* Implements svn_cache__partial_getter_func_t for svn_fs_x__noderevs_t, 120 * setting *OUT to the svn_fs_x__noderev_t selected by the apr_uint32_t index 121 * passed in as *BATON. This function is similar to svn_fs_x__noderevs_get 122 * but operates on the cache serialized representation of the container. 123 */ 124svn_error_t * 125svn_fs_x__noderevs_get_func(void **out, --- 17 unchanged lines hidden --- | 118 119/* Implements svn_cache__partial_getter_func_t for svn_fs_x__noderevs_t, 120 * setting *OUT to the svn_fs_x__noderev_t selected by the apr_uint32_t index 121 * passed in as *BATON. This function is similar to svn_fs_x__noderevs_get 122 * but operates on the cache serialized representation of the container. 123 */ 124svn_error_t * 125svn_fs_x__noderevs_get_func(void **out, --- 17 unchanged lines hidden --- |