2 * svnfsfs.h: shared stuff in the command line program
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
13 * http://www.apache.org/licenses/LICENSE-2.0
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
21 * ====================================================================
34 #endif /* __cplusplus */
37 /*** Command dispatch. ***/
39 /* Baton for passing option/argument state to a subcommand function. */
40 typedef struct svnfsfs__opt_state
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 */
50 /* Declare all the command procedures */
53 subcommand__dump_index,
54 subcommand__load_index,
58 /* Check that the filesystem at PATH is an FSFS repository and then open it.
59 * Return the filesystem in *FS, allocated in POOL. */
61 open_fs(svn_fs_t **fs,
65 /* Our cancellation callback. */
67 check_cancel(void *baton);
71 #endif /* __cplusplus */
73 #endif /* SVNFSFS_H */