Export _e1d_ts_stop() function inside daemon

Change-Id: If3ceca05d4fdf1e33d926061f30fce6bfa8e0357
This commit is contained in:
Harald Welte 2020-06-29 07:47:41 +02:00
parent 8a9392ff44
commit 65b22c0b75
2 changed files with 7 additions and 3 deletions

View File

@ -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);

View File

@ -103,5 +103,9 @@ e1_line_mux_out(struct e1_line *line, uint8_t *buf, int fts);
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);