diff options
author | cbdev <cb@cbcdn.com> | 2020-01-12 17:34:14 +0100 |
---|---|---|
committer | cbdev <cb@cbcdn.com> | 2020-01-12 17:34:14 +0100 |
commit | 78b21a9ac3f975f35ec7b61108531e1495eb91c0 (patch) | |
tree | f41cfc78f3392d501293c3afdd7b42111c863615 /backend.c | |
parent | 0a696be5af7db63c1c7354518c839d8543f1ba25 (diff) | |
download | midimonster-78b21a9ac3f975f35ec7b61108531e1495eb91c0.tar.gz midimonster-78b21a9ac3f975f35ec7b61108531e1495eb91c0.tar.bz2 midimonster-78b21a9ac3f975f35ec7b61108531e1495eb91c0.zip |
Rework instance creation
Diffstat (limited to 'backend.c')
-rw-r--r-- | backend.c | 6 |
1 files changed, 3 insertions, 3 deletions
@@ -54,7 +54,7 @@ int backends_notify(size_t nev, channel** c, channel_value* v){ if(c[p]->instance == instances[u]){ xval = v[n]; xchnl = c[n]; - + v[n] = v[p]; c[n] = c[p]; @@ -105,7 +105,7 @@ MM_API channel* mm_channel(instance* inst, uint64_t ident, uint8_t create){ return channels[nchannels++]; } -MM_API instance* mm_instance(){ +instance* mm_instance(){ instance** new_inst = realloc(instances, (ninstances + 1) * sizeof(instance*)); if(!new_inst){ //TODO free @@ -274,7 +274,7 @@ int backends_start(){ if(p == ninstances){ continue; } - + //fetch list of instances if(mm_backend_instances(backends[u].name, &n, &inst)){ fprintf(stderr, "Failed to fetch instance list for initialization of backend %s\n", backends[u].name); |