diff options
author | Holger Hans Peter Freyther <holger@moiji-mobile.com> | 2015-10-02 15:56:35 +0200 |
---|---|---|
committer | Holger Hans Peter Freyther <holger@moiji-mobile.com> | 2015-10-12 09:11:25 +0200 |
commit | 641d387409b6d11f7166784344701438be1a45e1 (patch) | |
tree | 2bc7e13369f0b7eef926f10c1397402b03231c8b /openbsc/include | |
parent | 2aedfbdfe1dfb4df84418af4bb39c40ca1cc5128 (diff) |
osmux: Test cid allocation and de-allocation
* Test that one can get an id
* That they are assigned predicatble right now
* That returning them will make the number of used ones go down
* That allocating more will fail
Diffstat (limited to 'openbsc/include')
-rw-r--r-- | openbsc/include/openbsc/osmux.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/openbsc/include/openbsc/osmux.h b/openbsc/include/openbsc/osmux.h index 8c01fd00b..0e727d5c4 100644 --- a/openbsc/include/openbsc/osmux.h +++ b/openbsc/include/openbsc/osmux.h @@ -22,6 +22,7 @@ int osmux_send_dummy(struct mgcp_endpoint *endp); int osmux_get_cid(void); void osmux_put_cid(uint8_t osmux_cid); +int osmux_used_cid(void); enum osmux_state { OSMUX_STATE_DISABLED = 0, |