aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorHolger Hans Peter Freyther <zecke@selfish.org>2010-06-30 12:56:41 +0800
committerHolger Hans Peter Freyther <zecke@selfish.org>2010-06-30 12:59:20 +0800
commit0610947f4cb0efd7f68e3e0e8df3663f0cdd64e5 (patch)
tree3fbcf2bc7fb10673cb5bc8a27d7ab7f5d38448ea
parent88519eaaef216a726e157c20a0a18ed00eee5a09 (diff)
misc: Move handover_logic.c into the libbsc.a
We are implementing the intra BSC handover so we should have the code in the BSC as well.
-rw-r--r--openbsc/src/Makefile.am4
-rw-r--r--openbsc/src/gsm_subscriber.c8
-rw-r--r--openbsc/src/gsm_subscriber_base.c8
3 files changed, 10 insertions, 10 deletions
diff --git a/openbsc/src/Makefile.am b/openbsc/src/Makefile.am
index 2c92a8694..8792036cf 100644
--- a/openbsc/src/Makefile.am
+++ b/openbsc/src/Makefile.am
@@ -15,7 +15,7 @@ libbsc_a_SOURCES = abis_rsl.c abis_nm.c gsm_data.c gsm_04_08_utils.c \
chan_alloc.c debug.c socket.c abis_nm_vty.c \
gsm_subscriber_base.c subchan_demux.c bsc_rll.c transaction.c \
trau_frame.c trau_mux.c paging.c e1_config.c e1_input.c \
- input/misdn.c input/ipaccess.c \
+ input/misdn.c input/ipaccess.c handover_logic.c \
talloc_ctx.c system_information.c rest_octets.c \
rtp_proxy.c bts_siemens_bs11.c bts_ipaccess_nanobts.c \
bts_unknown.c bsc_version.c bsc_api.c bsc_vty.c
@@ -23,7 +23,7 @@ libbsc_a_SOURCES = abis_rsl.c abis_nm.c gsm_data.c gsm_04_08_utils.c \
libmsc_a_SOURCES = gsm_subscriber.c db.c \
mncc.c gsm_04_08.c gsm_04_11.c transaction.c \
token_auth.c rrlp.c gsm_04_80.c ussd.c silent_call.c \
- handover_logic.c handover_decision.c meas_rep.c auth.c \
+ handover_decision.c meas_rep.c auth.c \
osmo_msc.c
libvty_a_SOURCES = common_vty.c
diff --git a/openbsc/src/gsm_subscriber.c b/openbsc/src/gsm_subscriber.c
index 692508753..22f08e320 100644
--- a/openbsc/src/gsm_subscriber.c
+++ b/openbsc/src/gsm_subscriber.c
@@ -34,14 +34,6 @@
extern struct llist_head *subscr_bsc_active_subscriber(void);
-char *subscr_name(struct gsm_subscriber *subscr)
-{
- if (strlen(subscr->name))
- return subscr->name;
-
- return subscr->imsi;
-}
-
struct gsm_subscriber *subscr_get_by_tmsi(struct gsm_network *net,
u_int32_t tmsi)
{
diff --git a/openbsc/src/gsm_subscriber_base.c b/openbsc/src/gsm_subscriber_base.c
index c06b1ce6b..b37352382 100644
--- a/openbsc/src/gsm_subscriber_base.c
+++ b/openbsc/src/gsm_subscriber_base.c
@@ -112,6 +112,14 @@ static void subscr_send_paging_request(struct gsm_subscriber *subscr)
}
}
+char *subscr_name(struct gsm_subscriber *subscr)
+{
+ if (strlen(subscr->name))
+ return subscr->name;
+
+ return subscr->imsi;
+}
+
struct gsm_subscriber *subscr_alloc(void)
{
struct gsm_subscriber *s;