diff options
author | Harald Welte <laforge@gnumonks.org> | 2011-02-05 12:26:55 +0100 |
---|---|---|
committer | Harald Welte <laforge@gnumonks.org> | 2011-02-05 15:31:31 +0100 |
commit | 5455243306bdc57f39a38da4d2d191d7d549b67c (patch) | |
tree | ebfdf2d5e8f2ed72381ea39951c7cd3aa7c106f6 /openbsc/src/input | |
parent | a61c709ef0dbce982059b725eb4e613409dd22f7 (diff) |
[input] make mi_e1_line_update() a driver specific callback
This helps us to further disentangle the misdn driver and e1_input
in preparation of DAHDI support.
Diffstat (limited to 'openbsc/src/input')
-rw-r--r-- | openbsc/src/input/misdn.c | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/openbsc/src/input/misdn.c b/openbsc/src/input/misdn.c index 07a9ad0c9..1f24a2782 100644 --- a/openbsc/src/input/misdn.c +++ b/openbsc/src/input/misdn.c @@ -383,10 +383,13 @@ static int activate_bchan(struct e1inp_line *line, int ts, int act) return ret; } +static int mi_e1_line_update(struct e1inp_line *line); + struct e1inp_driver misdn_driver = { .name = "mISDNuser", .want_write = ts_want_write, .default_delay = 50000, + .line_update = &mi_e1_line_update, }; static int mi_e1_setup(struct e1inp_line *line, int release_l2) @@ -478,7 +481,7 @@ static int mi_e1_setup(struct e1inp_line *line, int release_l2) return 0; } -int mi_e1_line_update(struct e1inp_line *line) +static int mi_e1_line_update(struct e1inp_line *line) { struct mISDN_devinfo devinfo; int sk, ret, cnt; |