aboutsummaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
authorcbdev <cb@cbcdn.com>2020-03-08 13:25:00 +0100
committercbdev <cb@cbcdn.com>2020-03-08 13:25:00 +0100
commit20e8f4632b8e11415435d143ec3c7c4528c54d46 (patch)
treed37014a93906eb6b16ed149aad02ae89b1a9b29a
parent38d3724b2af3c2b08c548326797c2421b054c846 (diff)
downloadmidimonster-20e8f4632b8e11415435d143ec3c7c4528c54d46.tar.gz
midimonster-20e8f4632b8e11415435d143ec3c7c4528c54d46.tar.bz2
midimonster-20e8f4632b8e11415435d143ec3c7c4528c54d46.zip
Allow managed_fd implementation data to be updated
-rw-r--r--midimonster.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/midimonster.c b/midimonster.c
index 9cbc3a9..2087c28 100644
--- a/midimonster.c
+++ b/midimonster.c
@@ -127,6 +127,7 @@ MM_API int mm_manage_fd(int new_fd, char* back, int manage, void* impl){
//find exact match
for(u = 0; u < fds; u++){
if(fd[u].fd == new_fd && fd[u].backend == b){
+ fd[u].impl = impl;
if(!manage){
fd[u].fd = -1;
fd[u].backend = NULL;