X-Git-Url: http://git.tuebingen.mpg.de/?p=paraslash.git;a=blobdiff_plain;f=filter.h;h=937bb42bc610e65d371ff8787a6e701c240c558a;hp=7ae28fe4946a578b0d0f229359f740252de4b1b9;hb=673f8dbef56bbe6a09870bdef65966db3f6793a2;hpb=8c74f69967ee4d6dff3970735c8bc83ea1aae4cb diff --git a/filter.h b/filter.h index 7ae28fe4..937bb42b 100644 --- a/filter.h +++ b/filter.h @@ -121,7 +121,7 @@ struct filter { }; void filter_init(void); -int check_filter_arg(char *filter_arg, void **conf); +int check_filter_arg(const char *fa, void **conf); void print_filter_helps(unsigned flags); void generic_filter_pre_select(struct sched *s, void *context); int decoder_execute(const char *cmd, unsigned sample_rate, unsigned channels, @@ -140,8 +140,4 @@ static inline void write_int16_host_endian(char *buf, int val) DECLARE_FILTER_INITS -/** Iterate over the array of supported filters. */ -#define FOR_EACH_SUPPORTED_FILTER(j) for (j = 0; j < NUM_SUPPORTED_FILTERS; j++) - -/** The filter array, one structure for each supported filter. */ -extern struct filter filters[NUM_SUPPORTED_FILTERS]; +const struct filter *filter_get(int filter_num);