diff options
Diffstat (limited to 'include/sound/seq_midi_event.h')
-rw-r--r-- | include/sound/seq_midi_event.h | 22 |
1 files changed, 11 insertions, 11 deletions
diff --git a/include/sound/seq_midi_event.h b/include/sound/seq_midi_event.h index 8857e2bd31a5..dd789e7cdb20 100644 --- a/include/sound/seq_midi_event.h +++ b/include/sound/seq_midi_event.h | |||
@@ -26,10 +26,8 @@ | |||
26 | 26 | ||
27 | #define MAX_MIDI_EVENT_BUF 256 | 27 | #define MAX_MIDI_EVENT_BUF 256 |
28 | 28 | ||
29 | typedef struct snd_midi_event_t snd_midi_event_t; | ||
30 | |||
31 | /* midi status */ | 29 | /* midi status */ |
32 | struct snd_midi_event_t { | 30 | struct snd_midi_event { |
33 | int qlen; /* queue length */ | 31 | int qlen; /* queue length */ |
34 | int read; /* chars read */ | 32 | int read; /* chars read */ |
35 | int type; /* current event type */ | 33 | int type; /* current event type */ |
@@ -40,15 +38,17 @@ struct snd_midi_event_t { | |||
40 | spinlock_t lock; | 38 | spinlock_t lock; |
41 | }; | 39 | }; |
42 | 40 | ||
43 | int snd_midi_event_new(int bufsize, snd_midi_event_t **rdev); | 41 | int snd_midi_event_new(int bufsize, struct snd_midi_event **rdev); |
44 | void snd_midi_event_free(snd_midi_event_t *dev); | 42 | void snd_midi_event_free(struct snd_midi_event *dev); |
45 | void snd_midi_event_reset_encode(snd_midi_event_t *dev); | 43 | void snd_midi_event_reset_encode(struct snd_midi_event *dev); |
46 | void snd_midi_event_reset_decode(snd_midi_event_t *dev); | 44 | void snd_midi_event_reset_decode(struct snd_midi_event *dev); |
47 | void snd_midi_event_no_status(snd_midi_event_t *dev, int on); | 45 | void snd_midi_event_no_status(struct snd_midi_event *dev, int on); |
48 | /* encode from byte stream - return number of written bytes if success */ | 46 | /* encode from byte stream - return number of written bytes if success */ |
49 | long snd_midi_event_encode(snd_midi_event_t *dev, unsigned char *buf, long count, snd_seq_event_t *ev); | 47 | long snd_midi_event_encode(struct snd_midi_event *dev, unsigned char *buf, long count, |
50 | int snd_midi_event_encode_byte(snd_midi_event_t *dev, int c, snd_seq_event_t *ev); | 48 | struct snd_seq_event *ev); |
49 | int snd_midi_event_encode_byte(struct snd_midi_event *dev, int c, struct snd_seq_event *ev); | ||
51 | /* decode from event to bytes - return number of written bytes if success */ | 50 | /* decode from event to bytes - return number of written bytes if success */ |
52 | long snd_midi_event_decode(snd_midi_event_t *dev, unsigned char *buf, long count, snd_seq_event_t *ev); | 51 | long snd_midi_event_decode(struct snd_midi_event *dev, unsigned char *buf, long count, |
52 | struct snd_seq_event *ev); | ||
53 | 53 | ||
54 | #endif /* __SOUND_SEQ_MIDI_EVENT_H */ | 54 | #endif /* __SOUND_SEQ_MIDI_EVENT_H */ |