diff options
author | Andreas Eversberg <jolly@eversberg.eu> | 2023-07-13 08:22:13 +0200 |
---|---|---|
committer | Andreas Eversberg <jolly@eversberg.eu> | 2023-07-21 13:33:55 +0200 |
commit | 7200b0157795093393a35e3da24994e86a5cd285 (patch) | |
tree | e8d78b617882ec0d90ca6e66e586c5f39f260adf /include/osmocom/bsc/lchan.h | |
parent | 2d93d61fe3b9a36d76e446a49c11de522c5243cc (diff) |
Select channel type by enum instead of three boolean
struct lchan_activate_info and struct lchan_modify_info use an enum to
define, if the channel type is for a normal channel, a VAMOS channel or
a VGCS/VBS channel.
Change-Id: I21167eb4192c02cd7b5e1574cddb382a3feaebe0
Diffstat (limited to 'include/osmocom/bsc/lchan.h')
-rw-r--r-- | include/osmocom/bsc/lchan.h | 14 |
1 files changed, 9 insertions, 5 deletions
diff --git a/include/osmocom/bsc/lchan.h b/include/osmocom/bsc/lchan.h index 3099c6351..c0c57615d 100644 --- a/include/osmocom/bsc/lchan.h +++ b/include/osmocom/bsc/lchan.h @@ -106,6 +106,13 @@ enum lchan_activate_for { ACTIVATE_FOR_MODE_MODIFY_RTP, }; +enum lchan_type_for { + LCHAN_TYPE_FOR_NORMAL = 0, + LCHAN_TYPE_FOR_VAMOS, + LCHAN_TYPE_FOR_VGCS, + LCHAN_TYPE_FOR_VBS, +}; + extern const struct value_string lchan_activate_mode_names[]; static inline const char *lchan_activate_mode_name(enum lchan_activate_for activ_for) { return get_value_string(lchan_activate_mode_names, activ_for); } @@ -139,10 +146,7 @@ struct lchan_activate_info { * 7, as described in 3GPP TS 45.002. */ struct optional_val tsc; - bool vamos; - - /* In case of ASCI channel: Flags, if a VGCS channel or VBS channel is activated. */ - bool vgcs, vbs; + enum lchan_type_for type_for; /* A copy of bts->imm_ass_time at the time where Channel Activation was requested. A change in the VTY * configuration has immediate effect on the value, so make sure we don't get mixed up when it gets changed @@ -173,7 +177,7 @@ struct lchan_modify_info { * 7, as described in 3GPP TS 45.002. */ struct optional_val tsc; - bool vamos; + enum lchan_type_for type_for; }; /* Measurement pre-processing state */ |