You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@subversion.apache.org by st...@apache.org on 2015/01/06 16:08:05 UTC
svn commit: r1649820 - /subversion/trunk/subversion/libsvn_fs_x/fs_x.h
Author: stefan2
Date: Tue Jan 6 15:08:04 2015
New Revision: 1649820
URL: http://svn.apache.org/r1649820
Log:
Function signatures in FSX should use consistent formatting with the result
type and each parameter on a separate line. Fix this for fs_x.h
No functional change.
* subversion/libsvn_fs_x/fs_x.h
(svn_fs_x__read_format_file,
svn_fs_x__open,
svn_fs_x__upgrade,
svn_fs_x__youngest_rev,
svn_fs_x__revision_proplist,
svn_fs_x__file_length,
svn_fs_x__file_text_rep_equal,
svn_fs_x__prop_rep_equal,
svn_fs_x__file_checksum,
svn_fs_x__create,
svn_fs_x__set_uuid,
svn_fs_x__path_current,
svn_fs_x__revision_prop,
svn_fs_x__change_rev_prop,
svn_fs_x__ensure_dir_exists,
svn_fs_x__initialize_caches): Reformat signature.
Modified:
subversion/trunk/subversion/libsvn_fs_x/fs_x.h
Modified: subversion/trunk/subversion/libsvn_fs_x/fs_x.h
URL: http://svn.apache.org/viewvc/subversion/trunk/subversion/libsvn_fs_x/fs_x.h?rev=1649820&r1=1649819&r2=1649820&view=diff
==============================================================================
--- subversion/trunk/subversion/libsvn_fs_x/fs_x.h (original)
+++ subversion/trunk/subversion/libsvn_fs_x/fs_x.h Tue Jan 6 15:08:04 2015
@@ -28,33 +28,37 @@
/* Read the 'format' file of fsx filesystem FS and store its info in FS.
* Use SCRATCH_POOL for temporary allocations. */
svn_error_t *
-svn_fs_x__read_format_file(svn_fs_t *fs, apr_pool_t *scratch_pool);
+svn_fs_x__read_format_file(svn_fs_t *fs,
+ apr_pool_t *scratch_pool);
/* Open the fsx filesystem pointed to by PATH and associate it with
filesystem object FS. Use POOL for temporary allocations.
### Some parts of *FS must have been initialized beforehand; some parts
(including FS->path) are initialized by this function. */
-svn_error_t *svn_fs_x__open(svn_fs_t *fs,
- const char *path,
- apr_pool_t *pool);
+svn_error_t *
+svn_fs_x__open(svn_fs_t *fs,
+ const char *path,
+ apr_pool_t *pool);
/* Upgrade the fsx filesystem FS. Indicate progress via the optional
* NOTIFY_FUNC callback using NOTIFY_BATON. The optional CANCEL_FUNC
* will periodically be called with CANCEL_BATON to allow for preemption.
* Use POOL for temporary allocations. */
-svn_error_t *svn_fs_x__upgrade(svn_fs_t *fs,
- svn_fs_upgrade_notify_t notify_func,
- void *notify_baton,
- svn_cancel_func_t cancel_func,
- void *cancel_baton,
- apr_pool_t *pool);
+svn_error_t *
+svn_fs_x__upgrade(svn_fs_t *fs,
+ svn_fs_upgrade_notify_t notify_func,
+ void *notify_baton,
+ svn_cancel_func_t cancel_func,
+ void *cancel_baton,
+ apr_pool_t *pool);
/* Set *YOUNGEST to the youngest revision in filesystem FS. Do any
temporary allocation in POOL. */
-svn_error_t *svn_fs_x__youngest_rev(svn_revnum_t *youngest,
- svn_fs_t *fs,
- apr_pool_t *pool);
+svn_error_t *
+svn_fs_x__youngest_rev(svn_revnum_t *youngest,
+ svn_fs_t *fs,
+ apr_pool_t *pool);
/* Return SVN_ERR_FS_NO_SUCH_REVISION if the given revision REV is newer
than the current youngest revision in FS or is simply not a valid
@@ -73,32 +77,36 @@ svn_fs_x__revision_exists(svn_revnum_t r
/* Set *PROPLIST to be an apr_hash_t containing the property list of
revision REV as seen in filesystem FS. Use POOL for temporary
allocations. */
-svn_error_t *svn_fs_x__revision_proplist(apr_hash_t **proplist,
- svn_fs_t *fs,
- svn_revnum_t rev,
- apr_pool_t *pool);
+svn_error_t *
+svn_fs_x__revision_proplist(apr_hash_t **proplist,
+ svn_fs_t *fs,
+ svn_revnum_t rev,
+ apr_pool_t *pool);
/* Set *LENGTH to the be fulltext length of the node revision
specified by NODEREV. Use POOL for temporary allocations. */
-svn_error_t *svn_fs_x__file_length(svn_filesize_t *length,
- svn_fs_x__noderev_t *noderev,
- apr_pool_t *pool);
+svn_error_t *
+svn_fs_x__file_length(svn_filesize_t *length,
+ svn_fs_x__noderev_t *noderev,
+ apr_pool_t *pool);
/* Return TRUE if the representations in A and B have equal contents, else
return FALSE. */
-svn_boolean_t svn_fs_x__file_text_rep_equal(svn_fs_x__representation_t *a,
- svn_fs_x__representation_t *b);
+svn_boolean_t
+svn_fs_x__file_text_rep_equal(svn_fs_x__representation_t *a,
+ svn_fs_x__representation_t *b);
/* Set *EQUAL to TRUE if the property representations in A and B within FS
have equal contents, else set it to FALSE. If STRICT is not set, allow
for false negatives.
Use SCRATCH_POOL for temporary allocations. */
-svn_error_t *svn_fs_x__prop_rep_equal(svn_boolean_t *equal,
- svn_fs_t *fs,
- svn_fs_x__noderev_t *a,
- svn_fs_x__noderev_t *b,
- svn_boolean_t strict,
- apr_pool_t *scratch_pool);
+svn_error_t *
+svn_fs_x__prop_rep_equal(svn_boolean_t *equal,
+ svn_fs_t *fs,
+ svn_fs_x__noderev_t *a,
+ svn_fs_x__noderev_t *b,
+ svn_boolean_t strict,
+ apr_pool_t *scratch_pool);
/* Return a copy of the representation REP allocated from POOL. */
@@ -110,10 +118,11 @@ svn_fs_x__rep_copy(svn_fs_x__representat
/* Return the recorded checksum of type KIND for the text representation
of NODREV into CHECKSUM, allocating from POOL. If no stored checksum is
available, put all NULL into CHECKSUM. */
-svn_error_t *svn_fs_x__file_checksum(svn_checksum_t **checksum,
- svn_fs_x__noderev_t *noderev,
- svn_checksum_kind_t kind,
- apr_pool_t *pool);
+svn_error_t *
+svn_fs_x__file_checksum(svn_checksum_t **checksum,
+ svn_fs_x__noderev_t *noderev,
+ svn_checksum_kind_t kind,
+ apr_pool_t *pool);
/* Under the repository db PATH, create a FSFS repository with FORMAT,
* the given SHARD_SIZE. If not supported by the respective format,
@@ -137,17 +146,19 @@ svn_fs_x__create_file_tree(svn_fs_t *fs,
### Some parts of *FS must have been initialized beforehand; some parts
(including FS->path) are initialized by this function. */
-svn_error_t *svn_fs_x__create(svn_fs_t *fs,
- const char *path,
- apr_pool_t *pool);
+svn_error_t *
+svn_fs_x__create(svn_fs_t *fs,
+ const char *path,
+ apr_pool_t *pool);
/* Set the uuid of repository FS to UUID and the instance ID to INSTANCE_ID.
If any of them is NULL, use a newly generated UUID / ID instead.
Perform temporary allocations in POOL. */
-svn_error_t *svn_fs_x__set_uuid(svn_fs_t *fs,
- const char *uuid,
- const char *instance_id,
- apr_pool_t *pool);
+svn_error_t *
+svn_fs_x__set_uuid(svn_fs_t *fs,
+ const char *uuid,
+ const char *instance_id,
+ apr_pool_t *pool);
/* Set *PATH to the path of REV in FS, whether in a pack file or not.
Allocate *PATH in POOL.
@@ -165,7 +176,8 @@ svn_fs_x__path_rev_absolute(svn_fs_t *fs
/* Return the path to the 'current' file in FS.
Perform allocation in POOL. */
const char *
-svn_fs_x__path_current(svn_fs_t *fs, apr_pool_t *pool);
+svn_fs_x__path_current(svn_fs_t *fs,
+ apr_pool_t *pool);
/* Read the format number and maximum number of files per directory
from PATH and return them in *PFORMAT and *MAX_FILES_PER_DIR
@@ -183,27 +195,32 @@ svn_fs_x__write_format(svn_fs_t *fs,
/* Find the value of the property named PROPNAME in transaction TXN.
Return the contents in *VALUE_P. The contents will be allocated
from POOL. */
-svn_error_t *svn_fs_x__revision_prop(svn_string_t **value_p, svn_fs_t *fs,
- svn_revnum_t rev,
- const char *propname,
- apr_pool_t *pool);
+svn_error_t *
+svn_fs_x__revision_prop(svn_string_t **value_p,
+ svn_fs_t *fs,
+ svn_revnum_t rev,
+ const char *propname,
+ apr_pool_t *pool);
/* Change, add, or delete a property on a revision REV in filesystem
FS. NAME gives the name of the property, and value, if non-NULL,
gives the new contents of the property. If value is NULL, then the
property will be deleted. If OLD_VALUE_P is not NULL, do nothing unless the
preexisting value is *OLD_VALUE_P. Do any temporary allocation in POOL. */
-svn_error_t *svn_fs_x__change_rev_prop(svn_fs_t *fs, svn_revnum_t rev,
- const char *name,
- const svn_string_t *const *old_value_p,
- const svn_string_t *value,
- apr_pool_t *pool);
+svn_error_t *
+svn_fs_x__change_rev_prop(svn_fs_t *fs,
+ svn_revnum_t rev,
+ const char *name,
+ const svn_string_t *const *old_value_p,
+ const svn_string_t *value,
+ apr_pool_t *pool);
/* If directory PATH does not exist, create it and give it the same
permissions as FS_PATH.*/
-svn_error_t *svn_fs_x__ensure_dir_exists(const char *path,
- const char *fs_path,
- apr_pool_t *pool);
+svn_error_t *
+svn_fs_x__ensure_dir_exists(const char *path,
+ const char *fs_path,
+ apr_pool_t *pool);
/* Initialize all session-local caches in FS according to the global
cache settings. Use POOL for temporary allocations.
@@ -211,6 +228,7 @@ svn_error_t *svn_fs_x__ensure_dir_exists
Please note that it is permissible for this function to set some
or all of these caches to NULL, regardless of any setting. */
svn_error_t *
-svn_fs_x__initialize_caches(svn_fs_t *fs, apr_pool_t *pool);
+svn_fs_x__initialize_caches(svn_fs_t *fs,
+ apr_pool_t *pool);
#endif