aboutsummaryrefslogtreecommitdiffstats
path: root/include
diff options
context:
space:
mode:
authorHarald Welte <laforge@gnumonks.org>2011-08-21 00:48:54 +0200
committerHarald Welte <laforge@gnumonks.org>2011-08-21 12:15:08 +0200
commitfd44a5f2fed648b3d182136d15d89bd6a5fdecf3 (patch)
tree55ba192acd1b66b55a82850ed2c29696848ebc19 /include
parent2f69b890bcc3f810be2e018f1f422246641ed5c0 (diff)
e1_input: move the lapd_instance pointer out of dahdi specifics
... and create a new e1inp_rx_ts_lapd() from dahdi as well
Diffstat (limited to 'include')
-rw-r--r--include/osmocom/abis/e1_input.h5
1 files changed, 4 insertions, 1 deletions
diff --git a/include/osmocom/abis/e1_input.h b/include/osmocom/abis/e1_input.h
index 757f3f2..42b1758 100644
--- a/include/osmocom/abis/e1_input.h
+++ b/include/osmocom/abis/e1_input.h
@@ -70,6 +70,9 @@ struct e1inp_ts {
/* to which line do we belong ? */
struct e1inp_line *line;
+ /* LAPD instance, if any */
+ struct lapd_instance *lapd;
+
union {
struct {
/* list of all signalling links on this TS */
@@ -98,7 +101,6 @@ struct e1inp_ts {
struct {
/* DAHDI driver has one fd for each ts */
struct osmo_fd fd;
- struct lapd_instance *lapd;
} dahdi;
struct {
struct osmo_fd fd;
@@ -229,6 +231,7 @@ int e1inp_update_ts(struct e1inp_ts *ts);
/* Receive a packet from the E1 driver */
int e1inp_rx_ts(struct e1inp_ts *ts, struct msgb *msg,
uint8_t tei, uint8_t sapi);
+int e1inp_rx_ts_lapd(struct e1inp_ts *e1i_ts, struct msgb *msg);
/* called by driver if it wants to transmit on a given TS */
struct msgb *e1inp_tx_ts(struct e1inp_ts *e1i_ts,