mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git
synced 2024-08-24 17:59:32 +00:00
![Markus Grabner](/assets/img/avatar_default.png)
Everything should be in sync now. Signed-off-by: Markus Grabner <grabner@icg.tugraz.at> Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
38 lines
1.2 KiB
C
38 lines
1.2 KiB
C
/*
|
|
* Line6 Linux USB driver - 0.9.1beta
|
|
*
|
|
* Copyright (C) 2004-2010 Markus Grabner (grabner@icg.tugraz.at)
|
|
*
|
|
* This program is free software; you can redistribute it and/or
|
|
* modify it under the terms of the GNU General Public License as
|
|
* published by the Free Software Foundation, version 2.
|
|
*
|
|
*/
|
|
|
|
#ifndef MIDIBUF_H
|
|
#define MIDIBUF_H
|
|
|
|
struct MidiBuffer {
|
|
unsigned char *buf;
|
|
int size;
|
|
int split;
|
|
int pos_read, pos_write;
|
|
int full;
|
|
int command_prev;
|
|
};
|
|
|
|
extern int line6_midibuf_bytes_used(struct MidiBuffer *mb);
|
|
extern int line6_midibuf_bytes_free(struct MidiBuffer *mb);
|
|
extern void line6_midibuf_destroy(struct MidiBuffer *mb);
|
|
extern int line6_midibuf_ignore(struct MidiBuffer *mb, int length);
|
|
extern int line6_midibuf_init(struct MidiBuffer *mb, int size, int split);
|
|
extern int line6_midibuf_read(struct MidiBuffer *mb, unsigned char *data,
|
|
int length);
|
|
extern void line6_midibuf_reset(struct MidiBuffer *mb);
|
|
extern int line6_midibuf_skip_message(struct MidiBuffer *mb,
|
|
unsigned short mask);
|
|
extern void line6_midibuf_status(struct MidiBuffer *mb);
|
|
extern int line6_midibuf_write(struct MidiBuffer *mb, unsigned char *data,
|
|
int length);
|
|
|
|
#endif
|