summaryrefslogtreecommitdiff
path: root/include
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 /include
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 'include')
-rw-r--r--include/baresip.h18
1 files changed, 11 insertions, 7 deletions
diff --git a/include/baresip.h b/include/baresip.h
index 7f3ea3e..bc9b08b 100644
--- a/include/baresip.h
+++ b/include/baresip.h
@@ -341,10 +341,11 @@ typedef int (ausrc_alloc_h)(struct ausrc_st **stp, const struct ausrc *ausrc,
struct ausrc_prm *prm, const char *device,
ausrc_read_h *rh, ausrc_error_h *errh, void *arg);
-int ausrc_register(struct ausrc **asp, const char *name,
+int ausrc_register(struct ausrc **asp, struct list *ausrcl, const char *name,
ausrc_alloc_h *alloch);
-const struct ausrc *ausrc_find(const char *name);
-int ausrc_alloc(struct ausrc_st **stp, struct media_ctx **ctx,
+const struct ausrc *ausrc_find(const struct list *ausrcl, const char *name);
+int ausrc_alloc(struct ausrc_st **stp, struct list *ausrcl,
+ struct media_ctx **ctx,
const char *name,
struct ausrc_prm *prm, const char *device,
ausrc_read_h *rh, ausrc_error_h *errh, void *arg);
@@ -370,10 +371,11 @@ typedef int (auplay_alloc_h)(struct auplay_st **stp, const struct auplay *ap,
struct auplay_prm *prm, const char *device,
auplay_write_h *wh, void *arg);
-int auplay_register(struct auplay **pp, const char *name,
- auplay_alloc_h *alloch);
-const struct auplay *auplay_find(const char *name);
-int auplay_alloc(struct auplay_st **stp, const char *name,
+int auplay_register(struct auplay **pp, struct list *auplayl,
+ const char *name, auplay_alloc_h *alloch);
+const struct auplay *auplay_find(const struct list *auplayl, const char *name);
+int auplay_alloc(struct auplay_st **stp, struct list *auplayl,
+ const char *name,
struct auplay_prm *prm, const char *device,
auplay_write_h *wh, void *arg);
@@ -1123,6 +1125,8 @@ struct message *baresip_message(void);
struct list *baresip_mnatl(void);
struct list *baresip_mencl(void);
struct list *baresip_aucodecl(void);
+struct list *baresip_ausrcl(void);
+struct list *baresip_auplayl(void);
#ifdef __cplusplus