diff options
author | Pablo Neira Ayuso <pablo@netfilter.org> | 2012-08-06 20:20:57 +0200 |
---|---|---|
committer | Pablo Neira Ayuso <pablo@netfilter.org> | 2012-08-06 21:04:25 +0200 |
commit | 7a01104b881153d1cbd73b7dd98149b16d53ee69 (patch) | |
tree | f06980104dfa48ddd23c445bf3e515cdb7fdc563 /include/osmocom | |
parent | 72a0aae500de36ef3fa528a9ce2e32a8ddde5080 (diff) |
osmux: add OSMUX_MAX_CONCURRENT_CALLS which is 8
Instead of harcoding the number all around the code.
Diffstat (limited to 'include/osmocom')
-rw-r--r-- | include/osmocom/netif/osmux.h | 6 |
1 files changed, 4 insertions, 2 deletions
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) |