aboutsummaryrefslogtreecommitdiffhomepage
path: root/backends/sacn.c
diff options
context:
space:
mode:
authorcbdev <cb@cbcdn.com>2019-12-11 23:20:34 +0100
committercbdev <cb@cbcdn.com>2019-12-11 23:20:34 +0100
commitf6d6eefe9bb9934f4fa3e665734d746f02471cdb (patch)
tree4f177149cd7a39ba0214b0edf337362c7ead3234 /backends/sacn.c
parentf65fb8baaba285f5ff4b02af111420ba4479f5d9 (diff)
downloadmidimonster-f6d6eefe9bb9934f4fa3e665734d746f02471cdb.tar.gz
midimonster-f6d6eefe9bb9934f4fa3e665734d746f02471cdb.tar.bz2
midimonster-f6d6eefe9bb9934f4fa3e665734d746f02471cdb.zip
Simplify plugin_stop API
Diffstat (limited to 'backends/sacn.c')
-rw-r--r--backends/sacn.c11
1 files changed, 2 insertions, 9 deletions
diff --git a/backends/sacn.c b/backends/sacn.c
index 877cbb0..ef422e8 100644
--- a/backends/sacn.c
+++ b/backends/sacn.c
@@ -616,19 +616,12 @@ bail:
return rv;
}
-static int sacn_shutdown(){
- size_t n, p;
- instance** inst = NULL;
-
- if(mm_backend_instances(BACKEND_NAME, &n, &inst)){
- fprintf(stderr, "Failed to fetch instance list\n");
- return 1;
- }
+static int sacn_shutdown(size_t n, instance** inst){
+ size_t p;
for(p = 0; p < n; p++){
free(inst[p]->impl);
}
- free(inst);
for(p = 0; p < global_cfg.fds; p++){
close(global_cfg.fd[p].fd);