A legacy filter configuration is linked in three lists of its proxy: the
global order with the 'list' member and the request and response orders
with the 'by_req' and 'by_res' members. Removing such a configuration
meant unlinking the three members by hand, in every filter supporting an
implicit declaration replaced by an explicit one.
The new flt_conf_delete() helper does it at once, as the counterpart of
flt_conf_add() and flt_conf_insert(). It will be used by the filters
parsing an explicit declaration that replaces an implicit one.
LIST_INSERT(&px->filters_res_configs, &fconf->by_res);
}
+/* Removes the legacy filter config <fconf> from the three configuration
+ * lists.*/
+static inline void flt_conf_delete(struct flt_conf *fconf)
+{
+ LIST_DELETE(&fconf->list);
+ LIST_DELETE(&fconf->by_req);
+ LIST_DELETE(&fconf->by_res);
+}
+
/* Helper function that returns the "global" state of filters attached to a
* stream. */
static inline struct strm_flt *