From 4afc7980a64dcd4abd1bb79d048f7ea363e99cd1 Mon Sep 17 00:00:00 2001 From: "Alfred E. Heggestad" Date: Wed, 22 Mar 2017 12:52:14 +0100 Subject: Ausrc auplay reentrant (#227) * ausrc: re-entrant api * fix ausrc api for linux * fix ccheck * auplay: make it re-entrant * auplay: update more modules --- include/baresip.h | 18 +++++++++++------- 1 file changed, 11 insertions(+), 7 deletions(-) (limited to 'include/baresip.h') 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 -- cgit v1.2.3