From 1449c9f06f7f10319517f50fd64b5e2926284d44 Mon Sep 17 00:00:00 2001 From: Harald Welte Date: Sun, 24 Aug 2014 09:50:10 +0200 Subject: move gsm_bts_num() to gsm_data_shared.[ch] this way we can drop a copy of this function from osmo-bts. --- openbsc/include/openbsc/gsm_data.h | 2 -- openbsc/include/openbsc/gsm_data_shared.h | 3 ++- 2 files changed, 2 insertions(+), 3 deletions(-) (limited to 'openbsc/include') diff --git a/openbsc/include/openbsc/gsm_data.h b/openbsc/include/openbsc/gsm_data.h index 4338cd60c..254feaf86 100644 --- a/openbsc/include/openbsc/gsm_data.h +++ b/openbsc/include/openbsc/gsm_data.h @@ -332,8 +332,6 @@ struct gsm_network *gsm_network_init(uint16_t country_code, uint16_t network_cod int (*mncc_recv)(struct gsm_network *, struct msgb *)); int gsm_set_bts_type(struct gsm_bts *bts, enum gsm_bts_type type); -struct gsm_bts *gsm_bts_num(struct gsm_network *net, int num); - /* Get reference to a neighbor cell on a given BCCH ARFCN */ struct gsm_bts *gsm_bts_neighbor(const struct gsm_bts *bts, uint16_t arfcn, uint8_t bsic); diff --git a/openbsc/include/openbsc/gsm_data_shared.h b/openbsc/include/openbsc/gsm_data_shared.h index 3abb38b88..18db49d66 100644 --- a/openbsc/include/openbsc/gsm_data_shared.h +++ b/openbsc/include/openbsc/gsm_data_shared.h @@ -741,8 +741,9 @@ struct gsm_bts { struct gsm_bts *gsm_bts_alloc(void *talloc_ctx); -struct gsm_bts_trx *gsm_bts_trx_alloc(struct gsm_bts *bts); +struct gsm_bts *gsm_bts_num(struct gsm_network *net, int num); +struct gsm_bts_trx *gsm_bts_trx_alloc(struct gsm_bts *bts); struct gsm_bts_trx *gsm_bts_trx_num(const struct gsm_bts *bts, int num); -- cgit v1.2.3