aboutsummaryrefslogtreecommitdiffhomepage
path: root/midi.c
diff options
context:
space:
mode:
authorcbdev <cb@cbcdn.com>2017-06-04 18:13:29 +0200
committercbdev <cb@cbcdn.com>2017-06-04 18:13:29 +0200
commit11e9dec049e64989c5f3656415d00c6c69851e8e (patch)
treef087aa41ead18a8b09657fd400bd8b20df80b13f /midi.c
parentbae15293ddc859a1ea426f15e7fa476f71ece020 (diff)
downloadmidimonster-11e9dec049e64989c5f3656415d00c6c69851e8e.tar.gz
midimonster-11e9dec049e64989c5f3656415d00c6c69851e8e.tar.bz2
midimonster-11e9dec049e64989c5f3656415d00c6c69851e8e.zip
Move instance allocator to backend object, introduce backend start function
Diffstat (limited to 'midi.c')
-rw-r--r--midi.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/midi.c b/midi.c
index a59ebeb..0d51d38 100644
--- a/midi.c
+++ b/midi.c
@@ -14,6 +14,7 @@ int midi_init(){
.channel = midi_channel,
.handle = midi_set,
.process = midi_handle,
+ .start = midi_start,
.shutdown = midi_shutdown
};
@@ -82,6 +83,10 @@ static int midi_handle(size_t num, int* fd, void** data){
return 1;
}
+static int midi_start(){
+ return 1;
+}
+
static int midi_shutdown(){
size_t n, p;
instance** inst = NULL;