FreeBSD/contrib/subversion/subversion/libsvn_fs_x/lock.c
/* A function that calls GET_LOCKS_FUNC/GET_LOCKS_BATON for
   all locks in and under PATH in FS.
   HAVE_WRITE_LOCK should be true if the caller (directly or indirectly)
   has the FS write lock. */
A function that calls GET_LOCKS_FUNC/GET_LOCKS_BATON for
all locks in and under PATH in FS.
HAVE_WRITE_LOCK should be true if the caller (directly or indirectly)
has the FS write lock.
A function that calls GET_LOCKS_FUNC / GET_LOCKS_BATON for all locks in and under PATH in FS . HAVE_WRITE_LOCK should be true if the caller ( directly or indirectly ) has the FS write lock .
static svn_error_t *
walk_locks(svn_fs_t *fs,
           const char *digest_path,
           svn_fs_get_locks_callback_t get_locks_func,
           void *get_locks_baton,
           svn_boolean_t have_write_lock,
           apr_pool_t *pool)
{
  walk_locks_baton_t wlb;
  wlb.get_locks_func = get_locks_func;
  wlb.get_locks_baton = get_locks_baton;
  wlb.fs = fs;
  SVN_ERR(walk_digest_files(fs->path, digest_path, locks_walker, &wlb,
                            have_write_lock, pool));
  return SVN_NO_ERROR;
}
static svn_error_t * walk_locks ( svn_fs_t * fs , const char * digest_path , svn_fs_get_locks_callback_t get_locks_func , void * get_locks_baton , svn_boolean_t have_write_lock , apr_pool_t * pool ) { walk_locks_baton_t wlb ; wlb . get_locks_func = get_locks_func ; wlb . get_locks_baton = get_locks_baton ; wlb . fs = fs ; SVN_ERR ( walk_digest_files ( fs -> path , digest_path , locks_walker , & wlb , have_write_lock , pool ) ) ; return SVN_NO_ERROR ; }
A function that calls GET_LOCKS_FUNC/GET_LOCKS_BATON for
all locks in and under PATH in FS.
A function that calls GET_LOCKS_FUNC / GET_LOCKS_BATON for all locks in and under PATH in FS .