osmo-bsc/openbsc/src/libbsc
Pablo Neira Ayuso 0d2881ad58 bsc: on-demand setup of nanoBTS and HSL femto sockets
The daemons set up nanoBTS and HSL femto sockets by default, ie. the
three sockets to support these two drivers are open even if we have
no BTS of that kind.

This patch enables on-demand socket creation, ie. we only enable them
if we have one BTS at least that requires it.

I added two new attributes to the gsm_bts object, they are:

* the start() function includes the code that we need to run to start
the BTS. This new function contains the socket creation in the
particular case of nanoBTS and HSL femto.

* the started boolean, which is used to know if we have already
started the BTS, ie. we have already invoked start().

Note that, I have splitted the bts_model_*_init() function into two
functions, the _init() functions that register the BTS driver
and the _start() functions that start BTS driver on-demand.

While I was at it, I added several changes/cleanups to this patch:

* Group all bts_model_*_init() calls into one function bts_init(),
which is called in the initialization path of osmo-nitb and
osmo-bsc.

* Add openbsc/bss.h that contains the declaration of
bsc_bootstrap_network, bsc_shutdown_net and bts_init.

* Add missing e1inp_init() in osmo-bsc.

* Fix missing declaration of hsl_setup in openbsc/e1_input.h
2011-05-22 21:03:35 +02:00
..
Makefile.am bsc: on-demand setup of nanoBTS and HSL femto sockets 2011-05-22 21:03:35 +02:00
abis_nm.c src: use namespace prefix osmo_* for misc utils 2011-05-07 12:58:59 +02:00
abis_nm_ipaccess.c misc: Move from u_int to uint types of stdint.h 2011-04-18 17:31:39 +02:00
abis_nm_vty.c src: use new library libosmogsm and new path to headers in libosmocore 2011-03-23 18:17:56 +01:00
abis_om2000.c src: use namespace prefix osmo_* for misc utils 2011-05-07 12:58:59 +02:00
abis_om2000_vty.c src: use new library libosmogsm and new path to headers in libosmocore 2011-03-23 18:17:56 +01:00
abis_rsl.c src: use namespace prefix osmo_counter* 2011-05-06 12:14:16 +02:00
bsc_api.c src: use namespace prefix osmo_signal* 2011-05-06 12:12:31 +02:00
bsc_init.c bsc: on-demand setup of nanoBTS and HSL femto sockets 2011-05-22 21:03:35 +02:00
bsc_msc.c src: use namespace prefix osmo_wqueue* 2011-05-06 12:12:49 +02:00
bsc_rll.c src: use namespace prefix osmo_signal* 2011-05-06 12:12:31 +02:00
bsc_vty.c src: use namespace prefix osmo_* for misc utils 2011-05-07 12:58:59 +02:00
bts_ericsson_rbs2000.c bsc: on-demand setup of nanoBTS and HSL femto sockets 2011-05-22 21:03:35 +02:00
bts_hsl_femtocell.c bsc: on-demand setup of nanoBTS and HSL femto sockets 2011-05-22 21:03:35 +02:00
bts_init.c bsc: on-demand setup of nanoBTS and HSL femto sockets 2011-05-22 21:03:35 +02:00
bts_ipaccess_nanobts.c bsc: on-demand setup of nanoBTS and HSL femto sockets 2011-05-22 21:03:35 +02:00
bts_siemens_bs11.c bsc: on-demand setup of nanoBTS and HSL femto sockets 2011-05-22 21:03:35 +02:00
bts_unknown.c misc: Remove sys/types.h includes from the files 2011-04-18 17:31:39 +02:00
chan_alloc.c src: use namespace prefix osmo_signal* 2011-05-06 12:12:31 +02:00
e1_config.c src: use new library libosmogsm and new path to headers in libosmocore 2011-03-23 18:17:56 +01:00
gsm_04_08_utils.c src: use namespace prefix osmo_* for misc utils 2011-05-07 12:58:59 +02:00
gsm_subscriber_base.c src: use new library libosmogsm and new path to headers in libosmocore 2011-03-23 18:17:56 +01:00
handover_decision.c src: use namespace prefix osmo_signal* 2011-05-06 12:12:31 +02:00
handover_logic.c src: use namespace prefix osmo_counter* 2011-05-06 12:14:16 +02:00
meas_proc.c src: use namespace prefix osmo_signal* 2011-05-06 12:12:31 +02:00
meas_rep.c misc: Remove sys/types.h includes from the files 2011-04-18 17:31:39 +02:00
paging.c src: use namespace prefix osmo_counter* 2011-05-06 12:14:16 +02:00
rest_octets.c misc: Move from u_int to uint types of stdint.h 2011-04-18 17:31:39 +02:00
system_information.c src: use namespace prefix osmo_* for misc utils 2011-05-07 12:58:59 +02:00