diff options
author | sanine <sanine.not@pm.me> | 2022-09-05 19:56:04 -0500 |
---|---|---|
committer | sanine <sanine.not@pm.me> | 2022-09-05 19:56:04 -0500 |
commit | be94297366c4a016a23f428613f65da0957df1b4 (patch) | |
tree | c74851241297b7dcc1057d49574ca151c9422371 /src/mossrose.c | |
parent | 1ac240ed77536f259c04edb26953ef445dd4ee37 (diff) |
add mossrose_channel_stop
Diffstat (limited to 'src/mossrose.c')
-rw-r--r-- | src/mossrose.c | 6 |
1 files changed, 6 insertions, 0 deletions
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; |