X-Git-Url: http://git.tuebingen.mpg.de/?p=paraslash.git;a=blobdiff_plain;f=filter.h;h=10947b9e47adf02e9f27445b612b9a10902c22d0;hp=a6b390719e72d0d9b1852915b4747f9cca4cfb5a;hb=40cbbb95e256e63e1e6958e9034311d4904604af;hpb=607ac63646d7c31aa1792dcf1d9a60e498654376 diff --git a/filter.h b/filter.h index a6b39071..10947b9e 100644 --- a/filter.h +++ b/filter.h @@ -75,18 +75,12 @@ struct filter_chain { * pointer to variable containing the number of bytes loaded in the output buffer */ size_t *out_loaded; - /** - * - * - * non-zero if end of file was encountered - */ - int *eof; - /** - * - * - * non-zero if an error occured - */ - int error; + /** non-zero if this filter wont' produce any more output */ + int eof; + /** pointer to the eof flag of the receiving application */ + int *reader_eof; + /** the task associated with the filter chain */ + struct task task; }; /** @@ -217,6 +211,7 @@ int filter_io(struct filter_chain *fc); void filter_init(struct filter *all_filters); int check_filter_arg(char *filter_arg, void **conf); int del_filter_callback(struct filter_callback *fcb); +void filter_pre_select(struct sched *s, struct task *t); /** * the structure associated with a paraslash filter