refactor: pass structs as pointers except for background things
This commit is contained in:
+2
-2
@@ -3,8 +3,8 @@
|
||||
#ifndef MIDI_H
|
||||
#define MIDI_H
|
||||
|
||||
MidiDevice midi_open(char *name);
|
||||
void midi_write(MidiDevice device, unsigned char code, unsigned char value);
|
||||
void midi_open(MidiDevice *device, char *name);
|
||||
void midi_write(MidiDevice *device, unsigned char code, unsigned char value);
|
||||
bool midi_background_listen(MidiDevice device, SharedContext *context,
|
||||
void (*event_callback)(unsigned char code,
|
||||
unsigned char value));
|
||||
|
||||
Reference in New Issue
Block a user