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