X-Git-Url: http://git.tuebingen.mpg.de/?a=blobdiff_plain;f=filter.h;h=befcd3381abd539ec743bf3e28b5198d7b093b50;hb=60ef885705932a682097ad2b9f2379282d814e79;hp=e7dc1ca632684b928236aa9d6a7e86317c626cdf;hpb=7571dbdb6da9e5a9154390b899968eb44f632dec;p=paraslash.git diff --git a/filter.h b/filter.h index e7dc1ca6..befcd338 100644 --- a/filter.h +++ b/filter.h @@ -1,5 +1,5 @@ /* - * Copyright (C) 2005-2009 Andre Noll + * Copyright (C) 2005-2010 Andre Noll * * Licensed under the GPL v2. For licencing details see COPYING. */ @@ -15,19 +15,11 @@ enum filter_enum {FILTER_ENUM}; struct filter_node { /** The number in the array of available filters. */ unsigned filter_num; - /** The filter chain this filter node belongs to. */ - struct filter_chain *fc; /** * Each filter may store any filter-specific information about the particular * instance of the filter here. */ void *private_data; - /** The output buffer. */ - char *buf; - /** The size of the output buffer. */ - size_t bufsize; - /** The number of bytes currently loaded in \a buf. */ - size_t loaded; /** The list of registered callbacks. */ struct list_head callbacks; /** A pointer to the configuration of this instance. */ @@ -72,7 +64,8 @@ struct filter { * Close one instance of this filter. * * Free all resources of associated with \a fn that were previously allocated - * by the open() function. + * by the open() function. It's OK to leave this alone if the filter does not + * need any cleanups. */ void (*close)(struct filter_node *fn); /**