diff options
author | Alfred E. Heggestad <alfred.heggestad@gmail.com> | 2017-05-20 20:19:50 +0200 |
---|---|---|
committer | Alfred E. Heggestad <alfred.heggestad@gmail.com> | 2017-05-20 20:19:50 +0200 |
commit | 7db06fe42f40366c29ab328173ec6c2bffd9ba40 (patch) | |
tree | b00b4b39edf089d5cfbb2b57c0bc3f8cc19f3f97 /include | |
parent | 503944520f94545daace7e6236265362560da960 (diff) |
vidcodec: make the API re-entrant
Diffstat (limited to 'include')
-rw-r--r-- | include/baresip.h | 13 |
1 files changed, 8 insertions, 5 deletions
diff --git a/include/baresip.h b/include/baresip.h index 748f1fd..4654415 100644 --- a/include/baresip.h +++ b/include/baresip.h @@ -883,12 +883,14 @@ struct vidcodec { sdp_fmtp_cmp_h *fmtp_cmph; }; -void vidcodec_register(struct vidcodec *vc); +void vidcodec_register(struct list *vidcodecl, struct vidcodec *vc); void vidcodec_unregister(struct vidcodec *vc); -const struct vidcodec *vidcodec_find(const char *name, const char *variant); -const struct vidcodec *vidcodec_find_encoder(const char *name); -const struct vidcodec *vidcodec_find_decoder(const char *name); -struct list *vidcodec_list(void); +const struct vidcodec *vidcodec_find(const struct list *vidcodecl, + const char *name, const char *variant); +const struct vidcodec *vidcodec_find_encoder(const struct list *vidcodecl, + const char *name); +const struct vidcodec *vidcodec_find_decoder(const struct list *vidcodecl, + const char *name); /* @@ -1139,6 +1141,7 @@ struct list *baresip_aucodecl(void); struct list *baresip_ausrcl(void); struct list *baresip_auplayl(void); struct list *baresip_aufiltl(void); +struct list *baresip_vidcodecl(void); #ifdef __cplusplus |