changeset 43:8cdfef36d9db default tip

twrtp_endp_create: make config argument const This argument is passed through to twrtp_jibuf_create(). We made it const in the latter function, now do the same with the wrapper.
author Mychaela Falconia <falcon@freecalypso.org>
date Fri, 20 Dec 2024 23:01:06 +0000
parents 334d883b96ba
children
files include/endp.h src/endp_create.c
diffstat 2 files changed, 2 insertions(+), 2 deletions(-) [+]
line wrap: on
line diff
--- a/include/endp.h	Fri Dec 20 22:47:20 2024 +0000
+++ b/include/endp.h	Fri Dec 20 23:01:06 2024 +0000
@@ -79,7 +79,7 @@
 /* public API functions */
 
 struct twrtp_endp *twrtp_endp_create(void *ctx,
-				     struct twrtp_jibuf_config *config);
+				     const struct twrtp_jibuf_config *config);
 void twrtp_endp_destroy(struct twrtp_endp *endp);
 
 int twrtp_endp_register_fds(struct twrtp_endp *endp);
--- a/src/endp_create.c	Fri Dec 20 22:47:20 2024 +0000
+++ b/src/endp_create.c	Fri Dec 20 23:01:06 2024 +0000
@@ -39,7 +39,7 @@
 					sizeof(struct rtcp_rr_block) * 31)
 
 struct twrtp_endp *twrtp_endp_create(void *ctx,
-				     struct twrtp_jibuf_config *config)
+				     const struct twrtp_jibuf_config *config)
 {
 	struct twrtp_endp *endp;