summaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorAlfred E. Heggestad <aeh@db.org>2016-09-04 10:49:41 +0200
committerAlfred E. Heggestad <aeh@db.org>2016-09-04 10:49:41 +0200
commit8abcfeb1486a093a07360c63ea65958e3daaa57d (patch)
treee1bdfe78788ce83ff94f08d8ebc537d69bd8c561 /include
parent1939f2d3ec202c27b43cf6c2350d0b1cd2f6933c (diff)
play: make it re-entrant, add struct player
Diffstat (limited to 'include')
-rw-r--r--include/baresip.h13
1 files changed, 8 insertions, 5 deletions
diff --git a/include/baresip.h b/include/baresip.h
index 43b38c1..0d6271c 100644
--- a/include/baresip.h
+++ b/include/baresip.h
@@ -504,13 +504,15 @@ struct dnsc *net_dnsc(const struct network *net);
*/
struct play;
+struct player;
-int play_file(struct play **playp, const char *filename, int repeat);
-int play_tone(struct play **playp, struct mbuf *tone,
+int play_file(struct play **playp, struct player *player,
+ const char *filename, int repeat);
+int play_tone(struct play **playp, struct player *player,
+ struct mbuf *tone,
uint32_t srate, uint8_t ch, int repeat);
-void play_init(void);
-void play_close(void);
-void play_set_path(const char *path);
+int play_init(struct player **playerp);
+void play_set_path(struct player *player, const char *path);
/*
@@ -1107,6 +1109,7 @@ void baresip_close(void);
struct network *baresip_network(void);
struct contacts *baresip_contacts(void);
struct commands *baresip_commands(void);
+struct player *baresip_player(void);
#ifdef __cplusplus