From be94297366c4a016a23f428613f65da0957df1b4 Mon Sep 17 00:00:00 2001 From: sanine Date: Mon, 5 Sep 2022 19:56:04 -0500 Subject: add mossrose_channel_stop --- src/mossrose.c | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'src/mossrose.c') diff --git a/src/mossrose.c b/src/mossrose.c index 2e27c45..8a99770 100644 --- a/src/mossrose.c +++ b/src/mossrose.c @@ -132,6 +132,12 @@ void mossrose_channel_resume(int channel) { } +void mossrose_channel_stop(int channel) { + struct channel_t *chan = mossrose_global.channels + channel; + channel_stop(chan); +} + + void mossrose_channel_set_callback(int channel, channel_callback_t callback, void *userdata) { struct channel_t *chan = mossrose_global.channels + channel; -- cgit v1.2.1