aboutsummaryrefslogtreecommitdiffstats
path: root/include/osmocom/bsc/nm_common_fsm.h
diff options
context:
space:
mode:
authorNeels Hofmeyr <neels@hofmeyr.de>2021-08-07 03:32:45 +0200
committerneels <nhofmeyr@sysmocom.de>2021-08-16 00:12:12 +0000
commit57af76cdcf4a066a1db25855e675cc5eecb21d43 (patch)
tree5ece3f6d248e0cc5972c7b2184d28c4f513b8491 /include/osmocom/bsc/nm_common_fsm.h
parentcd6f44c8f1150c7cc4bcead865ebe2838f8232cc (diff)
introduce gsm48_lchan_and_pchan2chan_desc()
The function gsm48_lchan2chan_desc_as_configured() dups gsm48_lchan2chan_desc() with merely a different pchan type (ts->pchan_from_config instead of ts->pchan_is). In an upcoming patch, I would like to do the same, just with yet another pchan value (derived from lchan->type, because that reflects the channel type even before a dynamic timeslot switched its pchan type). So replace gsm48_lchan2chan_desc_as_configured() by gsm48_lchan_and_pchan2chan_desc() with explicit pchan arg; also call this from gsm48_lchan2chan_desc(), reducing code dup. gsm48_lchan2chan_desc_as_configured() had more concise error logging. Absorb that into the new gsm48_lchan_and_pchan2chan_desc(). Add gsm_lchan_and_pchan2chan_nr(), like gsm_lchan2chan_nr() just with explicit pchan arg, to be able to pass the pchan down from the new functions mentioned above. Related: SYS#5559 Change-Id: I67f178c8160cdda1f2ab5513ac4f65c027d4012f
Diffstat (limited to 'include/osmocom/bsc/nm_common_fsm.h')
0 files changed, 0 insertions, 0 deletions