summaryrefslogtreecommitdiffstats
path: root/include
diff options
context:
space:
mode:
authorPablo Neira Ayuso2011-06-07 17:15:10 +0200
committerPablo Neira Ayuso2011-06-07 17:15:10 +0200
commit211d2ca7a1c5ff4b9626215dd5ce611efc01ccbc (patch)
treec01b7fa631166b149757b379e310a1e610715d98 /include
parentsrc: add libosmo_abis_init(void *ctx) to set the talloc context (diff)
downloadlibosmo-abis-211d2ca7a1c5ff4b9626215dd5ce611efc01ccbc.tar.gz
libosmo-abis-211d2ca7a1c5ff4b9626215dd5ce611efc01ccbc.tar.xz
libosmo-abis-211d2ca7a1c5ff4b9626215dd5ce611efc01ccbc.zip
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.h8
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);