-/**
- * Describes one running instance of a filter.
-*/
-struct filter_node {
- /** A pointer to the corresponding filter struct. */
- struct filter *filter;
- /** The filter chain this filter node belongs to. */
- struct filter_chain *fc;
- /**
- * The position of the filter in the corresponding filter chain.
- *
- * All filters that make up the filter chains are organized in a doubly
- * linked list.
- */
- struct list_head node;
- /**
- * 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. */
- void *conf;
-};
+#define FOR_EACH_FILTER_NODE(fn, fc, i) for (i = 0; i < (fc)->num_filters \
+ && (fn = (fc)->filter_nodes + i); i++)
+