summaryrefslogtreecommitdiff
path: root/src/aufilt.c
blob: c749aaf2f80a878c90d255b74e4f03368808af15 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
/**
 * @file aufilt.c Audio Filter
 *
 * Copyright (C) 2010 Creytiv.com
 */
#include <re.h>
#include <baresip.h>
#include "core.h"


static struct list afl;


void aufilt_register(struct aufilt *af)
{
	if (!af)
		return;

	list_append(&afl, &af->le, af);

	info("aufilt: %s\n", af->name);
}


void aufilt_unregister(struct aufilt *af)
{
	if (!af)
		return;

	list_unlink(&af->le);
}


struct list *aufilt_list(void)
{
	return &afl;
}