diff options
Diffstat (limited to 'include')
-rw-r--r-- | include/osmo-bts/amr.h | 2 | ||||
-rw-r--r-- | include/osmo-bts/l1sap.h | 3 | ||||
-rw-r--r-- | include/osmo-bts/msg_utils.h | 7 |
3 files changed, 11 insertions, 1 deletions
diff --git a/include/osmo-bts/amr.h b/include/osmo-bts/amr.h index ba66e4df..6bdc41fc 100644 --- a/include/osmo-bts/amr.h +++ b/include/osmo-bts/amr.h @@ -11,7 +11,7 @@ void amr_log_mr_conf(int ss, int logl, const char *pfx, int amr_parse_mr_conf(struct amr_multirate_conf *amr_mrc, const uint8_t *mr_conf, unsigned int len); - +int get_amr_mode_idx(const struct amr_multirate_conf *amr_mrc, uint8_t cmi); unsigned int amr_get_initial_mode(struct gsm_lchan *lchan); #endif /* _OSMO_BTS_AMR_H */ diff --git a/include/osmo-bts/l1sap.h b/include/osmo-bts/l1sap.h index 1f8b2a5b..dd25161d 100644 --- a/include/osmo-bts/l1sap.h +++ b/include/osmo-bts/l1sap.h @@ -66,6 +66,9 @@ extern struct gsmtap_inst *gsmtap; extern uint32_t gsmtap_sapi_mask; extern uint8_t gsmtap_sapi_acch; +int add_l1sap_header(struct gsm_bts_trx *trx, struct msgb *rmsg, + struct gsm_lchan *lchan, uint8_t chan_nr, uint32_t fn); + #define msgb_l1sap_prim(msg) ((struct osmo_phsap_prim *)(msg)->l1h) int bts_check_for_first_ciphrd(struct gsm_lchan *lchan, diff --git a/include/osmo-bts/msg_utils.h b/include/osmo-bts/msg_utils.h index f63c0964..73f8c964 100644 --- a/include/osmo-bts/msg_utils.h +++ b/include/osmo-bts/msg_utils.h @@ -4,6 +4,10 @@ #pragma once +#include <osmo-bts/gsm_data.h> + +#include <stdbool.h> + struct msgb; /** @@ -16,5 +20,8 @@ enum { OML_MSG_TYPE_OSMO, }; +void save_last_sid(struct gsm_lchan *lchan, uint8_t *l1_payload, size_t length, + uint32_t fn, bool update); +bool dtx_sched_optional(struct gsm_lchan *lchan, uint32_t fn); int msg_verify_ipa_structure(struct msgb *msg); int msg_verify_oml_structure(struct msgb *msg); |