diff include/endp.h @ 32:aa97e77e7de6

implement RTCP Tx
author Mychaela Falconia <falcon@freecalypso.org>
date Mon, 08 Jul 2024 07:17:38 +0000
parents 9fd693f234f8
children e70e7b266f89
line wrap: on
line diff
--- a/include/endp.h	Mon Jul 08 04:56:50 2024 +0000
+++ b/include/endp.h	Mon Jul 08 07:17:38 2024 +0000
@@ -34,6 +34,12 @@
 	bool got_rr;
 };
 
+struct twrtp_endp_rtcp_tx {
+	uint32_t last_received;
+	uint32_t last_expected;
+	uint16_t auto_rtcp_count;
+};
+
 struct twrtp_endp_stats {
 	uint32_t rx_rtp_pkt;
 	uint32_t rx_rtp_badsrc;
@@ -56,8 +62,9 @@
 	struct osmo_sockaddr rtcp_remote;
 	/* Rx and Tx state */
 	struct twrtp_jibuf_inst *twjit;
+	struct twrtp_endp_tx tx;
 	struct twrtp_endp_rtcp_rx rtcp_rx;
-	struct twrtp_endp_tx tx;
+	struct twrtp_endp_rtcp_tx rtcp_tx;
 	uint8_t *sdes_buf;
 	uint16_t sdes_len;
 	uint16_t auto_rtcp_interval;