FreeCalypso > hg > themwi-rtp-lib
comparison src/endp_create.c @ 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 | 781f491f20dd |
| children |
comparison
equal
deleted
inserted
replaced
| 42:334d883b96ba | 43:8cdfef36d9db |
|---|---|
| 37 #define MAX_RTCP_RX_PACKET (sizeof(struct rtcp_sr_rr_hdr) + \ | 37 #define MAX_RTCP_RX_PACKET (sizeof(struct rtcp_sr_rr_hdr) + \ |
| 38 sizeof(struct rtcp_sr_block) + \ | 38 sizeof(struct rtcp_sr_block) + \ |
| 39 sizeof(struct rtcp_rr_block) * 31) | 39 sizeof(struct rtcp_rr_block) * 31) |
| 40 | 40 |
| 41 struct twrtp_endp *twrtp_endp_create(void *ctx, | 41 struct twrtp_endp *twrtp_endp_create(void *ctx, |
| 42 struct twrtp_jibuf_config *config) | 42 const struct twrtp_jibuf_config *config) |
| 43 { | 43 { |
| 44 struct twrtp_endp *endp; | 44 struct twrtp_endp *endp; |
| 45 | 45 |
| 46 endp = talloc_zero(ctx, struct twrtp_endp); | 46 endp = talloc_zero(ctx, struct twrtp_endp); |
| 47 if (!endp) | 47 if (!endp) |
