summaryrefslogtreecommitdiff
path: root/apps/midi.h
diff options
context:
space:
mode:
authorChristian Pointner <equinox@spreadspace.org>2015-10-12 03:05:28 +0200
committerChristian Pointner <equinox@spreadspace.org>2015-10-12 03:05:28 +0200
commitb5cbc933c90ce8d5e34a7bce3e7c500e41f6e243 (patch)
treec9cd570ed926b4a65de33fbea1135647b45dbfac /apps/midi.h
parenttriggering language switch using midi works (diff)
language specific done data
Diffstat (limited to 'apps/midi.h')
-rw-r--r--apps/midi.h12
1 files changed, 11 insertions, 1 deletions
diff --git a/apps/midi.h b/apps/midi.h
index 643dac8..cb3bd90 100644
--- a/apps/midi.h
+++ b/apps/midi.h
@@ -28,11 +28,21 @@
#include "mixer.h"
+struct midi_struct;
+
typedef struct {
+ struct midi_struct* self_;
+ u_int8_t* buf_;
+ int len_;
+} midi_done_data_t;
+
+struct midi_struct {
snd_rawmidi_t* input_;
u_int8_t buf_[3];
int read_idx_;
-} midi_t;
+ midi_done_data_t done_data_[2];
+};
+typedef struct midi_struct midi_t;
int midi_init(midi_t* m, const char* device);
int midi_get_poll_fd_count(midi_t* m);