// SPDX-FileCopyrightText: 2000-2002 Michael R. Elkins // SPDX-FileCopyrightText: 2002-2022 Oswald Buddenhagen // SPDX-License-Identifier: GPL-2.0-or-later WITH LicenseRef-isync-GPL-exception /* * mbsync - mailbox synchronizer */ #ifndef CONFIG_H #define CONFIG_H #include "common.h" typedef struct { const char *file; FILE *fp; char *buf; int bufl; int line; int err; int ms_warn, renew_warn, delete_warn; int path_len; char *cmd, *val, *rest; } conffile_t; extern char FieldDelimiter; #define ARG_OPTIONAL 0 #define ARG_REQUIRED 1 char *expand_strdup( const char *s, const conffile_t *cfile ); char *get_arg( conffile_t *cfile, int required, int *comment ); char parse_bool( conffile_t *cfile ); int parse_int( conffile_t *cfile ); uint parse_size( conffile_t *cfile ); int getcline( conffile_t *cfile ); int merge_ops( int cops, int ops[], const char *chan_name ); int load_config( const char *filename ); #endif