xref: /netbsd-src/external/gpl2/xcvs/dist/src/parseinfo.h (revision 2d4ac8bd98d452986fc125f7f952ae25df8b4e90)
1a7c91847Schristos /*
2a7c91847Schristos  *    Copyright (c) 2004  Derek Price, Ximbiot <http://ximbiot.com>,
3a7c91847Schristos  *                        and the Free Software Foundation
4a7c91847Schristos  *
5a7c91847Schristos  *    You may distribute under the terms of the GNU General Public License
6a7c91847Schristos  *    as specified in the README file that comes with the CVS source
7a7c91847Schristos  *    distribution.
8a7c91847Schristos  *
9a7c91847Schristos  * This is the header file for definitions and functions shared by parseinfo.c
10a7c91847Schristos  * with other portions of CVS.
11a7c91847Schristos  */
12a7c91847Schristos #ifndef PARSEINFO_H
13a7c91847Schristos # define PARSEINFO_H
14a7c91847Schristos 
15a7c91847Schristos struct config
16a7c91847Schristos {
17a7c91847Schristos     void *keywords;
18a7c91847Schristos     bool top_level_admin;
19a7c91847Schristos     char *lock_dir;
20a7c91847Schristos     char *logHistory;
21a7c91847Schristos     char *HistoryLogPath;
22a7c91847Schristos     char *HistorySearchPath;
23a7c91847Schristos     char *TmpDir;
24a7c91847Schristos 
25a7c91847Schristos     /* Should the logmsg be re-read during the do_verify phase?
26a7c91847Schristos      * RereadLogAfterVerify=no|stat|yes
27a7c91847Schristos      * LOGMSG_REREAD_NEVER  - never re-read the logmsg
28a7c91847Schristos      * LOGMSG_REREAD_STAT   - re-read the logmsg only if it has changed
29a7c91847Schristos      * LOGMSG_REREAD_ALWAYS - always re-read the logmsg
30a7c91847Schristos      */
31a7c91847Schristos     int RereadLogAfterVerify;
32a7c91847Schristos 
33a7c91847Schristos     char *UserAdminOptions;
34274254cdSchristos     char *UserAdminGroup;
35a7c91847Schristos 
36a7c91847Schristos     /* Control default behavior of 'cvs import' (-X option on or off) in
37a7c91847Schristos      * CVSROOT/config.  Defaults to off, for backward compatibility.
38a7c91847Schristos      */
39a7c91847Schristos     bool ImportNewFilesToVendorBranchOnly;
40a7c91847Schristos 
41a7c91847Schristos     size_t MaxCommentLeaderLength;
42a7c91847Schristos     bool UseArchiveCommentLeader;
43a7c91847Schristos 
44a7c91847Schristos #ifdef AUTH_SERVER_SUPPORT
45a7c91847Schristos     /* Should we check for system usernames/passwords?  */
46a7c91847Schristos     bool system_auth;
47a7c91847Schristos #endif /* AUTH_SERVER_SUPPORT */
48a7c91847Schristos 
49a7c91847Schristos #ifdef SUPPORT_OLD_INFO_FMT_STRINGS
50a7c91847Schristos     bool UseNewInfoFmtStrings;
51a7c91847Schristos #endif /* SUPPORT_OLD_INFO_FMT_STRINGS */
52a7c91847Schristos     cvsroot_t *PrimaryServer;
53a7c91847Schristos #ifdef PROXY_SUPPORT
54a7c91847Schristos     size_t MaxProxyBufferSize;
55a7c91847Schristos #endif /* PROXY_SUPPORT */
56a7c91847Schristos #ifdef SERVER_SUPPORT
57a7c91847Schristos     size_t MinCompressionLevel;
58a7c91847Schristos     size_t MaxCompressionLevel;
59a7c91847Schristos #endif /* SERVER_SUPPORT */
60a7c91847Schristos #ifdef PRESERVE_PERMISSIONS_SUPPORT
61a7c91847Schristos     bool preserve_perms;
62a7c91847Schristos #endif /* PRESERVE_PERMISSIONS_SUPPORT */
63a7c91847Schristos };
64a7c91847Schristos 
65a7c91847Schristos bool parse_error (const char *, unsigned int);
66a7c91847Schristos struct config *parse_config (const char *, const char *);
67a7c91847Schristos void free_config (struct config *data);
68*2d4ac8bdSchristos int parse_aclconfig (const char *cvsroot);
69a7c91847Schristos #endif /* !PARSEINFO_H */
70