rep-cache.h (302408) | rep-cache.h (362181) |
---|---|
1/* rep-cache.h : interface to rep cache db functions 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 --- 26 unchanged lines hidden (view full) --- 35#define REP_CACHE_DB_NAME "rep-cache.db" 36 37/* Open and create, if needed, the rep cache database associated with FS. 38 Use SCRATCH_POOL for temporary allocations. */ 39svn_error_t * 40svn_fs_x__open_rep_cache(svn_fs_t *fs, 41 apr_pool_t *scratch_pool); 42 | 1/* rep-cache.h : interface to rep cache db functions 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 --- 26 unchanged lines hidden (view full) --- 35#define REP_CACHE_DB_NAME "rep-cache.db" 36 37/* Open and create, if needed, the rep cache database associated with FS. 38 Use SCRATCH_POOL for temporary allocations. */ 39svn_error_t * 40svn_fs_x__open_rep_cache(svn_fs_t *fs, 41 apr_pool_t *scratch_pool); 42 |
43/* Close the rep cache database associated with FS. */ 44svn_error_t * 45svn_fs_x__close_rep_cache(svn_fs_t *fs); 46 |
|
43/* Set *EXISTS to TRUE iff the rep-cache DB file exists. */ 44svn_error_t * 45svn_fs_x__exists_rep_cache(svn_boolean_t *exists, 46 svn_fs_t *fs, 47 apr_pool_t *scratch_pool); 48 49/* Iterate all representations currently in FS's cache. */ 50svn_error_t * --- 5 unchanged lines hidden (view full) --- 56 svn_fs_t *fs, 57 apr_pool_t *scratch_pool), 58 void *walker_baton, 59 svn_cancel_func_t cancel_func, 60 void *cancel_baton, 61 apr_pool_t *scratch_pool); 62 63/* Return the representation REP in FS which has fulltext CHECKSUM. | 47/* Set *EXISTS to TRUE iff the rep-cache DB file exists. */ 48svn_error_t * 49svn_fs_x__exists_rep_cache(svn_boolean_t *exists, 50 svn_fs_t *fs, 51 apr_pool_t *scratch_pool); 52 53/* Iterate all representations currently in FS's cache. */ 54svn_error_t * --- 5 unchanged lines hidden (view full) --- 60 svn_fs_t *fs, 61 apr_pool_t *scratch_pool), 62 void *walker_baton, 63 svn_cancel_func_t cancel_func, 64 void *cancel_baton, 65 apr_pool_t *scratch_pool); 66 67/* Return the representation REP in FS which has fulltext CHECKSUM. |
64 REP is allocated in RESULT_POOL. If the rep cache database has not been 65 opened, just set *REP to NULL. Returns SVN_ERR_FS_CORRUPT if a reference 66 beyond HEAD is detected. Uses SCRATCH_POOL for temporary allocations. */ | 68 *REP_P is allocated in RESULT_POOL. If the rep cache database has not 69 been opened, just set *REP_P to NULL. Returns SVN_ERR_FS_CORRUPT if 70 a reference beyond HEAD is detected. Uses SCRATCH_POOL for temporary 71 allocations.*/ |
67svn_error_t * | 72svn_error_t * |
68svn_fs_x__get_rep_reference(svn_fs_x__representation_t **rep, | 73svn_fs_x__get_rep_reference(svn_fs_x__representation_t **rep_p, |
69 svn_fs_t *fs, 70 svn_checksum_t *checksum, 71 apr_pool_t *result_pool, 72 apr_pool_t *scratch_pool); 73 74/* Set the representation REP in FS, using REP->CHECKSUM. 75 Use SCRATCH_POOL for temporary allocations. Returns SVN_ERR_FS_CORRUPT 76 if an existing reference beyond HEAD is detected. --- 29 unchanged lines hidden --- | 74 svn_fs_t *fs, 75 svn_checksum_t *checksum, 76 apr_pool_t *result_pool, 77 apr_pool_t *scratch_pool); 78 79/* Set the representation REP in FS, using REP->CHECKSUM. 80 Use SCRATCH_POOL for temporary allocations. Returns SVN_ERR_FS_CORRUPT 81 if an existing reference beyond HEAD is detected. --- 29 unchanged lines hidden --- |