diff options
author | Pau Espin Pedrol <pespin@sysmocom.de> | 2021-07-15 13:26:46 +0200 |
---|---|---|
committer | pespin <pespin@sysmocom.de> | 2021-07-20 10:07:03 +0000 |
commit | 2956b52c5b3603f5eaf5f5168a1244cf8b287e15 (patch) | |
tree | 352f66f2821e8e521a712fbde205aee8a3cecd7e /include/osmocom | |
parent | 181b5f3b9a807b1d4396d97a6882f57fd215e757 (diff) |
Add new lchan_select_set_type() API helper
It's an easy helper, but it helps in standarizing and finding similar
places in code.
Morevoer, it will be used in follow-up commit where we first use
lchan_avail_by_type and finally we select it in a later stage.
Change-Id: I025a40962a5e5d40543b297a0760e47618fb525c
Diffstat (limited to 'include/osmocom')
-rw-r--r-- | include/osmocom/bsc/lchan_select.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/include/osmocom/bsc/lchan_select.h b/include/osmocom/bsc/lchan_select.h index aa2f40ec8..3bb0d1ce6 100644 --- a/include/osmocom/bsc/lchan_select.h +++ b/include/osmocom/bsc/lchan_select.h @@ -6,3 +6,4 @@ enum gsm_chan_t chan_mode_to_chan_type(enum gsm48_chan_mode chan_mode, enum chan struct gsm_lchan *lchan_select_by_chan_mode(struct gsm_bts *bts, enum gsm48_chan_mode chan_mode, enum channel_rate chan_rate); struct gsm_lchan *lchan_avail_by_type(struct gsm_bts *bts, enum gsm_chan_t type, bool log); +void lchan_select_set_type(struct gsm_lchan *lchan, enum gsm_chan_t type); |