Philipp Maier | 844876f | 2018-07-13 09:17:07 +0200 | [diff] [blame] | 1 | #pragma once |
| 2 | |
Neels Hofmeyr | 31f525e | 2018-05-14 18:14:15 +0200 | [diff] [blame] | 3 | #include <stdbool.h> |
| 4 | #include <osmocom/gsm/protocol/gsm_04_08.h> |
Philipp Maier | 5bc43cd | 2018-07-13 16:14:18 +0200 | [diff] [blame] | 5 | |
Neels Hofmeyr | 31f525e | 2018-05-14 18:14:15 +0200 | [diff] [blame] | 6 | struct gsm0808_channel_type; |
| 7 | struct gsm0808_speech_codec_list; |
| 8 | struct gsm_audio_support; |
| 9 | struct bts_codec_conf; |
Philipp Maier | 67e47c6 | 2018-09-13 12:05:51 +0200 | [diff] [blame] | 10 | struct bsc_msc_data; |
| 11 | struct gsm_bts; |
Neels Hofmeyr | 31f525e | 2018-05-14 18:14:15 +0200 | [diff] [blame] | 12 | |
| 13 | int match_codec_pref(enum gsm48_chan_mode *chan_mode, |
| 14 | bool *full_rate, |
Philipp Maier | c9a4f69 | 2018-09-21 14:21:50 +0200 | [diff] [blame^] | 15 | uint16_t *s15_s0, |
Neels Hofmeyr | 31f525e | 2018-05-14 18:14:15 +0200 | [diff] [blame] | 16 | const struct gsm0808_channel_type *ct, |
| 17 | const struct gsm0808_speech_codec_list *scl, |
Philipp Maier | c9a4f69 | 2018-09-21 14:21:50 +0200 | [diff] [blame^] | 18 | const struct bsc_msc_data *msc, |
| 19 | const struct gsm_bts *bts); |
Philipp Maier | 67e47c6 | 2018-09-13 12:05:51 +0200 | [diff] [blame] | 20 | |
| 21 | void gen_bss_supported_codec_list(struct gsm0808_speech_codec_list *scl, |
| 22 | const struct bsc_msc_data *msc, |
| 23 | const struct gsm_bts *bts); |