mirror of https://git.code.sf.net/p/isync/isync
You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
41 lines
970 B
41 lines
970 B
// SPDX-FileCopyrightText: 2000-2002 Michael R. Elkins <me@mutt.org> |
|
// SPDX-FileCopyrightText: 2002-2022 Oswald Buddenhagen <ossi@users.sf.net> |
|
// 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
|
|
|