From 3186892771fe8174e42c7e3cddc7baf4c9abb0cd Mon Sep 17 00:00:00 2001 From: Holger Hans Peter Freyther Date: Tue, 3 Aug 2010 11:59:04 +0000 Subject: mgcp: Move the rtp state into a struct Use a struct to group the rtp state for the up and the down link of the bts. --- openbsc/include/openbsc/mgcp_internal.h | 12 ++++++++---- 1 file changed, 8 insertions(+), 4 deletions(-) (limited to 'openbsc/include') diff --git a/openbsc/include/openbsc/mgcp_internal.h b/openbsc/include/openbsc/mgcp_internal.h index 62161fdc9..adb01f467 100644 --- a/openbsc/include/openbsc/mgcp_internal.h +++ b/openbsc/include/openbsc/mgcp_internal.h @@ -36,6 +36,12 @@ enum mgcp_connection_mode { MGCP_CONN_LOOPBACK = 4, }; +struct mgcp_rtp_state { + int initialized; + + uint16_t seq_no; + int lost_no; +}; struct mgcp_endpoint { int ci; @@ -73,10 +79,8 @@ struct mgcp_endpoint { unsigned int in_remote; /* sequence bits */ - uint16_t net_seq_no; - uint16_t bts_seq_no; - int net_lost_no; - int bts_lost_no; + struct mgcp_rtp_state net_state; + struct mgcp_rtp_state bts_state; }; #define ENDPOINT_NUMBER(endp) abs(endp - endp->cfg->endpoints) -- cgit v1.2.3