diff options
author | Harald Welte <laforge@osmocom.org> | 2020-06-29 07:47:41 +0200 |
---|---|---|
committer | Harald Welte <laforge@osmocom.org> | 2020-06-29 22:12:42 +0200 |
commit | 65b22c0b7588c5b89491db6b86264461e07bffd7 (patch) | |
tree | f54afc6faaaadd3005bdb2deb3f24ee9a82322b3 | |
parent | 8a9392ff44563c40a163d145d13969e99344db0f (diff) |
Export _e1d_ts_stop() function inside daemon
Change-Id: If3ceca05d4fdf1e33d926061f30fce6bfa8e0357
-rw-r--r-- | src/ctl.c | 6 | ||||
-rw-r--r-- | src/e1d.h | 4 |
2 files changed, 7 insertions, 3 deletions
@@ -91,8 +91,8 @@ _e1d_fill_ts_info(struct osmo_e1dp_ts_info *ti, struct e1_ts *ts) } -static void -_e1d_ts_stop(struct e1_ts *ts) +void +e1_ts_stop(struct e1_ts *ts) { ts->mode = E1_TS_MODE_OFF; @@ -287,7 +287,7 @@ _e1d_ctl_ts_open(void *data, struct msgb *msgb, struct msgb *rmsgb, int *rfd) } /* If already open, close previous */ - _e1d_ts_stop(ts); + e1_ts_stop(ts); /* Init */ ret = _e1d_ts_start(ts, mode); @@ -104,4 +104,8 @@ int e1_line_demux_in(struct e1_line *line, const uint8_t *buf, int size); void +e1_ts_stop(struct e1_ts *ts); + +void e1d_vty_init(struct e1_daemon *e1d); + |