diff options
author | Harald Welte <laforge@gnumonks.org> | 2011-01-14 15:55:42 +0100 |
---|---|---|
committer | Harald Welte <laforge@gnumonks.org> | 2011-02-11 16:26:31 +0100 |
commit | f338a03b0cc85ca20bfe8e1ebe3b98e86bcef3c1 (patch) | |
tree | 687ce70060164c999855bdf734a08c91a6c5b5f1 /openbsc/src/input/dahdi.c | |
parent | f3956cbb20ce92c3df20169a8a3c625759290696 (diff) |
[BSC] Move the BTS-type specific code from bcs_init.c to bts_*.c
bsc_init.c was a big mess even only for two supported BTS models,
so before adding more BTS types, this needs a cleanup.
All the BTS specific code from bsc_init.c has now moved into
bts_{siemens_bs11,ipaccess_nanobts}.c
This has required that input_event() and nm_state_event() get both
converted to proper libosmocore signals instead of referencing external
symbols.
Diffstat (limited to 'openbsc/src/input/dahdi.c')
-rw-r--r-- | openbsc/src/input/dahdi.c | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/openbsc/src/input/dahdi.c b/openbsc/src/input/dahdi.c index 06d917166..934761fbe 100644 --- a/openbsc/src/input/dahdi.c +++ b/openbsc/src/input/dahdi.c @@ -47,6 +47,7 @@ #include <openbsc/abis_rsl.h> #include <openbsc/subchan_demux.h> #include <openbsc/e1_input.h> +#include <openbsc/signal.h> #include <osmocore/talloc.h> #include "lapd.h" @@ -94,11 +95,11 @@ static int handle_ts1_read(struct bsc_fd *bfd) break; case LAPD_MPH_ACTIVATE_IND: DEBUGP(DMI, "MPH_ACTIVATE_IND: sapi(%d) tei(%d)\n", sapi, tei); - ret = e1inp_event(e1i_ts, EVT_E1_TEI_UP, tei, sapi); + ret = e1inp_event(e1i_ts, S_INP_TEI_UP, tei, sapi); break; case LAPD_MPH_DEACTIVATE_IND: DEBUGP(DMI, "MPH_DEACTIVATE_IND: sapi(%d) tei(%d)\n", sapi, tei); - ret = e1inp_event(e1i_ts, EVT_E1_TEI_DN, tei, sapi); + ret = e1inp_event(e1i_ts, S_INP_TEI_DN, tei, sapi); break; case LAPD_DL_DATA_IND: case LAPD_DL_UNITDATA_IND: |