7 #define FORMAT_STRING_LEN 128
8 #define FORMAT_STRING_MAX_FIELDS 16
11 struct abook_output_filter {
12 char filtname[FILTNAME_LEN];
14 int (*func) (FILE *handle, struct db_enumerator e);
17 struct abook_output_item_filter {
18 char filtname[FILTNAME_LEN];
20 void (*func) (FILE *handle, int item);
23 struct abook_input_filter {
24 char filtname[FILTNAME_LEN];
26 int (*func) (FILE *handle);
30 int import_database();
31 int import_file(char filtname[FILTNAME_LEN], char *filename);
33 int export_database();
34 int export_file(char filtname[FILTNAME_LEN], char *filename);
36 struct abook_output_item_filter
37 select_output_item_filter(char filtname[FILTNAME_LEN]);
39 void e_write_item(FILE *out, int item, void (*func) (FILE *in, int item));
40 void muttq_print_item(FILE *file, int item);
42 void parse_custom_format(char *s, char *fmt_string, enum field_types *ft);
43 void custom_print_item(FILE *out, int item);
45 int fexport(char filtname[FILTNAME_LEN], FILE *handle,