diff options
Diffstat (limited to 'src/aufilt.c')
-rw-r--r-- | src/aufilt.c | 15 |
1 files changed, 3 insertions, 12 deletions
diff --git a/src/aufilt.c b/src/aufilt.c index c749aaf..240edee 100644 --- a/src/aufilt.c +++ b/src/aufilt.c @@ -8,15 +8,12 @@ #include "core.h" -static struct list afl; - - -void aufilt_register(struct aufilt *af) +void aufilt_register(struct list *aufiltl, struct aufilt *af) { - if (!af) + if (!aufiltl || !af) return; - list_append(&afl, &af->le, af); + list_append(aufiltl, &af->le, af); info("aufilt: %s\n", af->name); } @@ -29,9 +26,3 @@ void aufilt_unregister(struct aufilt *af) list_unlink(&af->le); } - - -struct list *aufilt_list(void) -{ - return &afl; -} |