186d7f5d3SJohn Marino /* 286d7f5d3SJohn Marino * Copyright (c) 2004 Derek Price, Ximbiot <http://ximbiot.com>, 386d7f5d3SJohn Marino * and the Free Software Foundation 486d7f5d3SJohn Marino * 586d7f5d3SJohn Marino * You may distribute under the terms of the GNU General Public License 686d7f5d3SJohn Marino * as specified in the README file that comes with the CVS source 786d7f5d3SJohn Marino * distribution. 886d7f5d3SJohn Marino * 986d7f5d3SJohn Marino * This is the header file for definitions and functions shared by parseinfo.c 1086d7f5d3SJohn Marino * with other portions of CVS. 1186d7f5d3SJohn Marino */ 1286d7f5d3SJohn Marino #ifndef PARSEINFO_H 1386d7f5d3SJohn Marino # define PARSEINFO_H 1486d7f5d3SJohn Marino 1586d7f5d3SJohn Marino struct config 1686d7f5d3SJohn Marino { 1786d7f5d3SJohn Marino void *keywords; 1886d7f5d3SJohn Marino bool top_level_admin; 1986d7f5d3SJohn Marino char *lock_dir; 2086d7f5d3SJohn Marino char *logHistory; 2186d7f5d3SJohn Marino char *HistoryLogPath; 2286d7f5d3SJohn Marino char *HistorySearchPath; 2386d7f5d3SJohn Marino char *TmpDir; 2486d7f5d3SJohn Marino 2586d7f5d3SJohn Marino /* Should the logmsg be re-read during the do_verify phase? 2686d7f5d3SJohn Marino * RereadLogAfterVerify=no|stat|yes 2786d7f5d3SJohn Marino * LOGMSG_REREAD_NEVER - never re-read the logmsg 2886d7f5d3SJohn Marino * LOGMSG_REREAD_STAT - re-read the logmsg only if it has changed 2986d7f5d3SJohn Marino * LOGMSG_REREAD_ALWAYS - always re-read the logmsg 3086d7f5d3SJohn Marino */ 3186d7f5d3SJohn Marino int RereadLogAfterVerify; 3286d7f5d3SJohn Marino 3386d7f5d3SJohn Marino char *UserAdminOptions; 3486d7f5d3SJohn Marino 3586d7f5d3SJohn Marino /* Control default behavior of 'cvs import' (-X option on or off) in 3686d7f5d3SJohn Marino * CVSROOT/config. Defaults to off, for backward compatibility. 3786d7f5d3SJohn Marino */ 3886d7f5d3SJohn Marino bool ImportNewFilesToVendorBranchOnly; 3986d7f5d3SJohn Marino 4086d7f5d3SJohn Marino size_t MaxCommentLeaderLength; 4186d7f5d3SJohn Marino bool UseArchiveCommentLeader; 4286d7f5d3SJohn Marino 4386d7f5d3SJohn Marino #ifdef AUTH_SERVER_SUPPORT 4486d7f5d3SJohn Marino /* Should we check for system usernames/passwords? */ 4586d7f5d3SJohn Marino bool system_auth; 4686d7f5d3SJohn Marino #endif /* AUTH_SERVER_SUPPORT */ 4786d7f5d3SJohn Marino 4886d7f5d3SJohn Marino #ifdef SUPPORT_OLD_INFO_FMT_STRINGS 4986d7f5d3SJohn Marino bool UseNewInfoFmtStrings; 5086d7f5d3SJohn Marino #endif /* SUPPORT_OLD_INFO_FMT_STRINGS */ 5186d7f5d3SJohn Marino cvsroot_t *PrimaryServer; 5286d7f5d3SJohn Marino #ifdef PROXY_SUPPORT 5386d7f5d3SJohn Marino size_t MaxProxyBufferSize; 5486d7f5d3SJohn Marino #endif /* PROXY_SUPPORT */ 5586d7f5d3SJohn Marino #ifdef SERVER_SUPPORT 5686d7f5d3SJohn Marino size_t MinCompressionLevel; 5786d7f5d3SJohn Marino size_t MaxCompressionLevel; 5886d7f5d3SJohn Marino #endif /* SERVER_SUPPORT */ 5986d7f5d3SJohn Marino #ifdef PRESERVE_PERMISSIONS_SUPPORT 6086d7f5d3SJohn Marino bool preserve_perms; 6186d7f5d3SJohn Marino #endif /* PRESERVE_PERMISSIONS_SUPPORT */ 6286d7f5d3SJohn Marino }; 6386d7f5d3SJohn Marino 6486d7f5d3SJohn Marino bool parse_error (const char *, unsigned int); 6586d7f5d3SJohn Marino struct config *parse_config (const char *, const char *); 6686d7f5d3SJohn Marino void free_config (struct config *data); 6786d7f5d3SJohn Marino #endif /* !PARSEINFO_H */ 68