aboutsummaryrefslogtreecommitdiffstats
path: root/openbsc/src/e1_input.c
diff options
context:
space:
mode:
authorHarald Welte <laforge@gnumonks.org>2011-01-14 15:55:42 +0100
committerHarald Welte <laforge@gnumonks.org>2011-02-11 16:26:31 +0100
commitf338a03b0cc85ca20bfe8e1ebe3b98e86bcef3c1 (patch)
tree687ce70060164c999855bdf734a08c91a6c5b5f1 /openbsc/src/e1_input.c
parentf3956cbb20ce92c3df20169a8a3c625759290696 (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/e1_input.c')
-rw-r--r--openbsc/src/e1_input.c11
1 files changed, 6 insertions, 5 deletions
diff --git a/openbsc/src/e1_input.c b/openbsc/src/e1_input.c
index def6aca95..92bfb242a 100644
--- a/openbsc/src/e1_input.c
+++ b/openbsc/src/e1_input.c
@@ -66,9 +66,6 @@ LLIST_HEAD(e1inp_line_list);
static void *tall_sigl_ctx;
-/* to be implemented, e.g. by bsc_hack.c */
-void input_event(int event, enum e1inp_sign_type type, struct gsm_bts_trx *trx);
-
/*
* pcap writing of the misdn load
* pcap format is from http://wiki.wireshark.org/Development/LibpcapFileFormat
@@ -563,13 +560,17 @@ struct msgb *e1inp_tx_ts(struct e1inp_ts *e1i_ts,
int e1inp_event(struct e1inp_ts *ts, int evt, u_int8_t tei, u_int8_t sapi)
{
struct e1inp_sign_link *link;
+ struct input_signal_data isd;
link = e1inp_lookup_sign_link(ts, tei, sapi);
if (!link)
return -EINVAL;
- /* FIXME: report further upwards */
- input_event(evt, link->type, link->trx);
+ isd.link_type = link->type;
+ isd.trx = link->trx;
+
+ /* report further upwards */
+ dispatch_signal(SS_INPUT, evt, &isd);
return 0;
}