X-Git-Url: http://git.tuebingen.mpg.de/?p=paraslash.git;a=blobdiff_plain;f=filter.h;h=45ade8d3697f86001c900ea3c7fe6541a44d48f1;hp=a6b390719e72d0d9b1852915b4747f9cca4cfb5a;hb=081e022105bbfd6c1e56730200919f276b1ff630;hpb=607ac63646d7c31aa1792dcf1d9a60e498654376;ds=sidebyside diff --git a/filter.h b/filter.h index a6b39071..45ade8d3 100644 --- a/filter.h +++ b/filter.h @@ -75,18 +75,14 @@ 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 *input_eof; + /** pointer to the eof flag of the writing application */ + int *output_eof; + /** the task associated with the filter chain */ + struct task task; }; /** @@ -217,6 +213,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