diff options
author | Harald Welte <laforge@gnumonks.org> | 2019-02-09 09:23:03 +0100 |
---|---|---|
committer | Harald Welte <laforge@gnumonks.org> | 2019-02-12 20:08:18 +0100 |
commit | 96bded3ebd1f26e775da15f2bc18c8649ca386e6 (patch) | |
tree | 23cf7c8455139893bda9de8fde81aca3cc0050a4 /include/osmo-bts/oml.h | |
parent | ccc7ba17c014b24b1d850c9c64e4ed47629bf9a3 (diff) |
OML: Use 'const struct abis_oml_mo *' whenever users only read
Try to constrain the code a bit further by making all read-only
accesses use 'const *'.
Change-Id: I5a61e6d1b4e5e083bb24017166186dc87d035cd0
Diffstat (limited to 'include/osmo-bts/oml.h')
-rw-r--r-- | include/osmo-bts/oml.h | 16 |
1 files changed, 8 insertions, 8 deletions
diff --git a/include/osmo-bts/oml.h b/include/osmo-bts/oml.h index 139464ec..4dca2f87 100644 --- a/include/osmo-bts/oml.h +++ b/include/osmo-bts/oml.h @@ -14,11 +14,11 @@ int down_oml(struct gsm_bts *bts, struct msgb *msg); struct msgb *oml_msgb_alloc(void); int oml_send_msg(struct msgb *msg, int is_mauf); -int oml_mo_send_msg(struct gsm_abis_mo *mo, struct msgb *msg, uint8_t msg_type); -int oml_mo_opstart_ack(struct gsm_abis_mo *mo); -int oml_mo_opstart_nack(struct gsm_abis_mo *mo, uint8_t nack_cause); -int oml_mo_statechg_ack(struct gsm_abis_mo *mo); -int oml_mo_statechg_nack(struct gsm_abis_mo *mo, uint8_t nack_cause); +int oml_mo_send_msg(const struct gsm_abis_mo *mo, struct msgb *msg, uint8_t msg_type); +int oml_mo_opstart_ack(const struct gsm_abis_mo *mo); +int oml_mo_opstart_nack(const struct gsm_abis_mo *mo, uint8_t nack_cause); +int oml_mo_statechg_ack(const struct gsm_abis_mo *mo); +int oml_mo_statechg_nack(const struct gsm_abis_mo *mo, uint8_t nack_cause); /* Change the state and send STATE CHG REP */ int oml_mo_state_chg(struct gsm_abis_mo *mo, int op_state, int avail_state); @@ -31,13 +31,13 @@ int oml_mo_rf_lock_chg(struct gsm_abis_mo *mo, uint8_t mute_state[8], int success); /* Transmit STATE CHG REP even if there was no state change */ -int oml_tx_state_changed(struct gsm_abis_mo *mo); +int oml_tx_state_changed(const struct gsm_abis_mo *mo); -int oml_mo_tx_sw_act_rep(struct gsm_abis_mo *mo); +int oml_mo_tx_sw_act_rep(const struct gsm_abis_mo *mo); int oml_fom_ack_nack(struct msgb *old_msg, uint8_t cause); -int oml_mo_fom_ack_nack(struct gsm_abis_mo *mo, uint8_t orig_msg_type, +int oml_mo_fom_ack_nack(const struct gsm_abis_mo *mo, uint8_t orig_msg_type, uint8_t cause); /* Configure LAPDm T200 timers for this lchan according to OML */ |