X-Git-Url: https://git.deb.at/w?a=blobdiff_plain;f=filter.h;fp=filter.h;h=a1ee168c6a7f0877c653284f4b2a7715a4686753;hb=05b0f3753902043fa8476a59c9251ab176675945;hp=5fa1f5ea53353750b8a0d76e13ae3db70f44d65f;hpb=453d7cb813423efa8344c90b1a1a40ac947fd4d0;p=pkg%2Fabook.git diff --git a/filter.h b/filter.h index 5fa1f5e..a1ee168 100644 --- a/filter.h +++ b/filter.h @@ -5,7 +5,14 @@ #define FILTNAME_LEN 6 -struct abook_filter { + +struct abook_output_filter { + char filtname[FILTNAME_LEN]; + char *desc; + int (*func) (FILE *handle, struct db_enumerator e); +}; + +struct abook_input_filter { char filtname[FILTNAME_LEN]; char *desc; int (*func) (FILE *handle); @@ -17,7 +24,8 @@ int import(char filtname[FILTNAME_LEN], char *filename); int export_database(); int export(char filtname[FILTNAME_LEN], char *filename); -int fexport(char filtname[FILTNAME_LEN], FILE *handle); +int fexport(char filtname[FILTNAME_LEN], FILE *handle, + int enum_mode); void print_filters();