#include "types.h"

#ifndef MIDI_H
#define MIDI_H

void midi_open(MidiDevice *device, const char *name);
void midi_write(const MidiDevice *device, unsigned char code,
                unsigned char value);
bool midi_background_listen(const MidiDevice *device,
                            const SharedContext *context,
                            void (*event_callback)(unsigned char code,
                                                   unsigned char value));

#endif /* MIDI_H */
