summaryrefslogtreecommitdiff
path: root/src/baresip.c
diff options
context:
space:
mode:
authorAlfred E. Heggestad <alfred.heggestad@gmail.com>2017-03-22 12:52:14 +0100
committerGitHub <noreply@github.com>2017-03-22 12:52:14 +0100
commit4afc7980a64dcd4abd1bb79d048f7ea363e99cd1 (patch)
treebbcb5134490682b6157afbdaa68180a725f636ae /src/baresip.c
parentc3edc6136aabada7fbbe04e038918b833c1c32c1 (diff)
Ausrc auplay reentrant (#227)
* ausrc: re-entrant api * fix ausrc api for linux * fix ccheck * auplay: make it re-entrant * auplay: update more modules
Diffstat (limited to 'src/baresip.c')
-rw-r--r--src/baresip.c16
1 files changed, 16 insertions, 0 deletions
diff --git a/src/baresip.c b/src/baresip.c
index ae715ce..501fbe1 100644
--- a/src/baresip.c
+++ b/src/baresip.c
@@ -21,6 +21,8 @@ static struct baresip {
struct list mnatl;
struct list mencl;
struct list aucodecl;
+ struct list ausrcl;
+ struct list auplayl;
} baresip;
@@ -36,6 +38,8 @@ int baresip_init(struct config *cfg, bool prefer_ipv6)
list_init(&baresip.mnatl);
list_init(&baresip.mencl);
list_init(&baresip.aucodecl);
+ list_init(&baresip.ausrcl);
+ list_init(&baresip.auplayl);
/* Initialise Network */
err = net_alloc(&baresip.net, &cfg->net,
@@ -129,3 +133,15 @@ struct list *baresip_aucodecl(void)
{
return &baresip.aucodecl;
}
+
+
+struct list *baresip_ausrcl(void)
+{
+ return &baresip.ausrcl;
+}
+
+
+struct list *baresip_auplayl(void)
+{
+ return &baresip.auplayl;
+}