diff options
author | Vadim Yanitskiy <vyanitskiy@sysmocom.de> | 2020-09-25 09:53:59 +0700 |
---|---|---|
committer | Vadim Yanitskiy <vyanitskiy@sysmocom.de> | 2020-09-28 11:39:04 +0700 |
commit | 64bd96b3f8c178de53b1efbbcedb9d94cb0c176f (patch) | |
tree | 593ba302e5fa3dc71a03f6f58d86a0600946e895 /include | |
parent | 4785fe7622e6e47dba6f891a9226a1d64af6a05a (diff) |
vty: make most struct pointers const in show/write commands
Change-Id: Iacc32f7982c150d84ea4df7affa1f9e07806928f
Diffstat (limited to 'include')
-rw-r--r-- | include/osmo-bts/bts.h | 2 | ||||
-rw-r--r-- | include/osmo-bts/bts_model.h | 8 | ||||
-rw-r--r-- | include/osmo-bts/phy_link.h | 2 |
3 files changed, 6 insertions, 6 deletions
diff --git a/include/osmo-bts/bts.h b/include/osmo-bts/bts.h index 7d3f8bf5..ffaeb577 100644 --- a/include/osmo-bts/bts.h +++ b/include/osmo-bts/bts.h @@ -347,7 +347,7 @@ int bts_main(int argc, char **argv); int bts_supports_cm(struct gsm_bts *bts, enum gsm_phys_chan_config pchan, enum gsm48_chan_mode cm); -int32_t bts_get_avg_fn_advance(struct gsm_bts *bts); +int32_t bts_get_avg_fn_advance(const struct gsm_bts *bts); /* return the gsm_lchan for the CBCH (if it exists at all) */ struct gsm_lchan *gsm_bts_get_cbch(struct gsm_bts *bts); diff --git a/include/osmo-bts/bts_model.h b/include/osmo-bts/bts_model.h index 4fd0813d..568ff007 100644 --- a/include/osmo-bts/bts_model.h +++ b/include/osmo-bts/bts_model.h @@ -36,10 +36,10 @@ void bts_model_trx_close(struct gsm_bts_trx *trx); int bts_model_vty_init(struct gsm_bts *bts); -void bts_model_config_write_bts(struct vty *vty, struct gsm_bts *bts); -void bts_model_config_write_trx(struct vty *vty, struct gsm_bts_trx *trx); -void bts_model_config_write_phy(struct vty *vty, struct phy_link *plink); -void bts_model_config_write_phy_inst(struct vty *vty, struct phy_instance *pinst); +void bts_model_config_write_bts(struct vty *vty, const struct gsm_bts *bts); +void bts_model_config_write_trx(struct vty *vty, const struct gsm_bts_trx *trx); +void bts_model_config_write_phy(struct vty *vty, const struct phy_link *plink); +void bts_model_config_write_phy_inst(struct vty *vty, const struct phy_instance *pinst); int bts_model_oml_estab(struct gsm_bts *bts); diff --git a/include/osmo-bts/phy_link.h b/include/osmo-bts/phy_link.h index ce4ea45f..ef3df27c 100644 --- a/include/osmo-bts/phy_link.h +++ b/include/osmo-bts/phy_link.h @@ -164,7 +164,7 @@ enum phy_link_state phy_link_state_get(struct phy_link *plink); const char *phy_link_state_name(enum phy_link_state state); int phy_links_open(void); -struct phy_instance *phy_instance_by_num(struct phy_link *plink, int num); +struct phy_instance *phy_instance_by_num(const struct phy_link *plink, int num); struct phy_instance *phy_instance_create(struct phy_link *plink, int num); void phy_instance_link_to_trx(struct phy_instance *pinst, struct gsm_bts_trx *trx); void phy_instance_destroy(struct phy_instance *pinst); |