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