diff options
author | Pablo Neira Ayuso <pablo@gnumonks.org> | 2011-06-07 17:15:10 +0200 |
---|---|---|
committer | Pablo Neira Ayuso <pablo@gnumonks.org> | 2011-06-07 17:15:10 +0200 |
commit | 211d2ca7a1c5ff4b9626215dd5ce611efc01ccbc (patch) | |
tree | c01b7fa631166b149757b379e310a1e610715d98 /include | |
parent | 54b4979de6ee0340694dc7cef85ddce9cf2e6aa6 (diff) |
e1input: fix TRAU frame handling
With this patch, we pass TRAU frames to the callback that
e1inp_ts_config_trau(...) takes as parameter. Instead of passing
it to the line->rx(...) callback. The function
e1inp_ts_config_trau(...) should only be used by ISDN drivers.
Diffstat (limited to 'include')
-rw-r--r-- | include/osmocom/abis/e1_input.h | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/include/osmocom/abis/e1_input.h b/include/osmocom/abis/e1_input.h index a7ac578..24af27a 100644 --- a/include/osmocom/abis/e1_input.h +++ b/include/osmocom/abis/e1_input.h @@ -172,11 +172,13 @@ e1inp_sign_link_create(struct e1inp_ts *ts, enum e1inp_sign_type type, struct gsm_bts_trx *trx, uint8_t tei, uint8_t sapi); -/* configure and initialize one e1inp_ts */ +/* configure and initialize one signalling e1inp_ts */ int e1inp_ts_config_sign(struct e1inp_ts *ts, struct e1inp_line *line); + +/* configure and initialize one timeslot dedicated to TRAU frames. */ int e1inp_ts_config_trau(struct e1inp_ts *ts, struct e1inp_line *line, - int (*subch_cb)(struct subch_demux *dmx, int ch, - uint8_t *data, int len, void *_priv)); + int (*trau_rcv_cb)(struct subch_demux *dmx, int ch, + uint8_t *data, int len, void *_priv)); /* Call from the Stack: configuration of this TS has changed */ int e1inp_update_ts(struct e1inp_ts *ts); |