Change in libosmocore[master]: i460_mux: make osmo_i460_subchan_count public
dexter has uploaded this change for review. ( https://gerrit.osmocom.org/c/libosmocore/+/31324 ) Change subject: i460_mux: make osmo_i460_subchan_count public ...................................................................... i460_mux: make osmo_i460_subchan_count public There may be situations where we must check if there are still I.460 subchannels active, so lets make the function osmo_i460_subchan_count public Change-Id: I0454ffe5809f21504c1e263a781c06596d452d4b Related: OS#5198 --- M include/osmocom/isdn/i460_mux.h M src/isdn/i460_mux.c M src/isdn/libosmoisdn.map 3 files changed, 7 insertions(+), 2 deletions(-) git pull ssh://gerrit.osmocom.org:29418/libosmocore refs/changes/24/31324/1 diff --git a/include/osmocom/isdn/i460_mux.h b/include/osmocom/isdn/i460_mux.h index 770b1e1..ad9cb24 100644 --- a/include/osmocom/isdn/i460_mux.h +++ b/include/osmocom/isdn/i460_mux.h @@ -113,4 +113,6 @@ void osmo_i460_subchan_del(struct osmo_i460_subchan *schan); +int osmo_i460_subchan_count(struct osmo_i460_timeslot *ts); + /*! @} */ diff --git a/src/isdn/i460_mux.c b/src/isdn/i460_mux.c index 18a807d..9e9489a 100644 --- a/src/isdn/i460_mux.c +++ b/src/isdn/i460_mux.c @@ -23,8 +23,10 @@ #include <osmocom/core/msgb.h> #include <osmocom/isdn/i460_mux.h> -/* count the number of sub-channels in this I460 slot */ -static int osmo_i460_subchan_count(struct osmo_i460_timeslot *ts) +/*! count the number of sub-channels in this I.460 slot. + * \param[in] ts timeslot that holds the I.460 subchannels. + * \return number of subchannels. */ +int osmo_i460_subchan_count(struct osmo_i460_timeslot *ts) { int i, num_used = 0; diff --git a/src/isdn/libosmoisdn.map b/src/isdn/libosmoisdn.map index 76e8c81..5ac65c9 100644 --- a/src/isdn/libosmoisdn.map +++ b/src/isdn/libosmoisdn.map @@ -18,6 +18,7 @@ osmo_i460_mux_out; osmo_i460_subchan_add; osmo_i460_subchan_del; +osmo_i460_subchan_count; osmo_i460_ts_init; local: *; -- To view, visit https://gerrit.osmocom.org/c/libosmocore/+/31324 To unsubscribe, or for help writing mail filters, visit https://gerrit.osmocom.org/settings Gerrit-Project: libosmocore Gerrit-Branch: master Gerrit-Change-Id: I0454ffe5809f21504c1e263a781c06596d452d4b Gerrit-Change-Number: 31324 Gerrit-PatchSet: 1 Gerrit-Owner: dexter <pmaier@sysmocom.de> Gerrit-MessageType: newchange
participants (1)
-
dexter