From 7a01104b881153d1cbd73b7dd98149b16d53ee69 Mon Sep 17 00:00:00 2001 From: Pablo Neira Ayuso Date: Mon, 6 Aug 2012 20:20:57 +0200 Subject: osmux: add OSMUX_MAX_CONCURRENT_CALLS which is 8 Instead of harcoding the number all around the code. --- include/osmocom/netif/osmux.h | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) (limited to 'include/osmocom') diff --git a/include/osmocom/netif/osmux.h b/include/osmocom/netif/osmux.h index dd89973..f52fcb4 100644 --- a/include/osmocom/netif/osmux.h +++ b/include/osmocom/netif/osmux.h @@ -47,10 +47,12 @@ struct osmux_in_handle { char *data; /* internal data */ }; +#define OSMUX_MAX_CONCURRENT_CALLS 8 + /* one per OSmux circuit_id, ie. one per RTP flow. */ struct osmux_out_handle { - uint16_t rtp_seq[8]; - uint32_t rtp_timestamp[8]; + uint16_t rtp_seq[OSMUX_MAX_CONCURRENT_CALLS]; + uint32_t rtp_timestamp[OSMUX_MAX_CONCURRENT_CALLS]; }; static inline uint8_t *osmux_get_payload(struct osmux_hdr *osmuxh) -- cgit v1.2.3