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
This commit is contained in:
Philipp Maier 2023-02-14 13:50:04 +01:00 committed by laforge
parent 0b5c09b3f0
commit 54e1782e71
3 changed files with 7 additions and 2 deletions

View File

@ -113,4 +113,6 @@ osmo_i460_subchan_add(void *ctx, struct osmo_i460_timeslot *ts, const struct osm
void osmo_i460_subchan_del(struct osmo_i460_subchan *schan);
int osmo_i460_subchan_count(struct osmo_i460_timeslot *ts);
/*! @} */

View File

@ -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;

View File

@ -18,6 +18,7 @@ osmo_i460_mux_enqueue;
osmo_i460_mux_out;
osmo_i460_subchan_add;
osmo_i460_subchan_del;
osmo_i460_subchan_count;
osmo_i460_ts_init;
local: *;