]> CyberLeo.Net >> Repos - FreeBSD/stable/10.git/blob - contrib/subversion/subversion/svnfsfs/svnfsfs.h
MFC r275385 (by bapt):
[FreeBSD/stable/10.git] / contrib / subversion / subversion / svnfsfs / svnfsfs.h
1 /*
2  * svnfsfs.h:  shared stuff in the command line program
3  *
4  * ====================================================================
5  *    Licensed to the Apache Software Foundation (ASF) under one
6  *    or more contributor license agreements.  See the NOTICE file
7  *    distributed with this work for additional information
8  *    regarding copyright ownership.  The ASF licenses this file
9  *    to you under the Apache License, Version 2.0 (the
10  *    "License"); you may not use this file except in compliance
11  *    with the License.  You may obtain a copy of the License at
12  *
13  *      http://www.apache.org/licenses/LICENSE-2.0
14  *
15  *    Unless required by applicable law or agreed to in writing,
16  *    software distributed under the License is distributed on an
17  *    "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
18  *    KIND, either express or implied.  See the License for the
19  *    specific language governing permissions and limitations
20  *    under the License.
21  * ====================================================================
22  */
23
24 \f
25 #ifndef SVNFSFS_H
26 #define SVNFSFS_H
27
28 /*** Includes. ***/
29
30 #include "svn_opt.h"
31
32 #ifdef __cplusplus
33 extern "C" {
34 #endif /* __cplusplus */
35
36 \f
37 /*** Command dispatch. ***/
38
39 /* Baton for passing option/argument state to a subcommand function. */
40 typedef struct svnfsfs__opt_state
41 {
42   const char *repository_path;
43   svn_opt_revision_t start_revision, end_revision;  /* -r X[:Y] */
44   svn_boolean_t help;                               /* --help or -? */
45   svn_boolean_t version;                            /* --version */
46   svn_boolean_t quiet;                              /* --quiet */
47   apr_uint64_t memory_cache_size;                   /* --memory-cache-size M */
48 } svnfsfs__opt_state;
49
50 /* Declare all the command procedures */
51 svn_opt_subcommand_t
52   subcommand__help,
53   subcommand__dump_index,
54   subcommand__load_index,
55   subcommand__stats;
56
57 \f
58 /* Check that the filesystem at PATH is an FSFS repository and then open it.
59  * Return the filesystem in *FS, allocated in POOL. */
60 svn_error_t *
61 open_fs(svn_fs_t **fs,
62         const char *path,
63         apr_pool_t *pool);
64
65 /* Our cancellation callback. */
66 svn_error_t *
67 check_cancel(void *baton);
68
69 #ifdef __cplusplus
70 }
71 #endif /* __cplusplus */
72
73 #endif /* SVNFSFS_H */