diff options
author | Christian Pointner <equinox@spreadspace.org> | 2015-10-12 03:05:28 +0200 |
---|---|---|
committer | Christian Pointner <equinox@spreadspace.org> | 2015-10-12 03:05:28 +0200 |
commit | b5cbc933c90ce8d5e34a7bce3e7c500e41f6e243 (patch) | |
tree | c9cd570ed926b4a65de33fbea1135647b45dbfac /apps/midi.h | |
parent | triggering language switch using midi works (diff) |
language specific done data
Diffstat (limited to 'apps/midi.h')
-rw-r--r-- | apps/midi.h | 12 |
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); |