aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorHarald Welte <laforge@osmocom.org>2020-06-29 07:47:41 +0200
committerHarald Welte <laforge@osmocom.org>2020-06-29 22:12:42 +0200
commit65b22c0b7588c5b89491db6b86264461e07bffd7 (patch)
treef54afc6faaaadd3005bdb2deb3f24ee9a82322b3
parent8a9392ff44563c40a163d145d13969e99344db0f (diff)
Export _e1d_ts_stop() function inside daemon
-rw-r--r--src/ctl.c6
-rw-r--r--src/e1d.h4
2 files changed, 7 insertions, 3 deletions
diff --git a/src/ctl.c b/src/ctl.c
index dd9155d..1fa5d84 100644
--- a/src/ctl.c
+++ b/src/ctl.c
@@ -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);
diff --git a/src/e1d.h b/src/e1d.h
index c1a28ce..a5076b0 100644
--- a/src/e1d.h
+++ b/src/e1d.h
@@ -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);
+