writeback: split writeback_inodes_wb
[linux-2.6/next.git] / drivers / staging / line6 / midibuf.h
blob9877581bcd9a950d97c803d645ebba35ac2cac28
1 /*
2 * Line6 Linux USB driver - 0.8.0
4 * Copyright (C) 2004-2009 Markus Grabner (grabner@icg.tugraz.at)
6 * This program is free software; you can redistribute it and/or
7 * modify it under the terms of the GNU General Public License as
8 * published by the Free Software Foundation, version 2.
12 #ifndef MIDIBUF_H
13 #define MIDIBUF_H
16 struct MidiBuffer {
17 unsigned char *buf;
18 int size;
19 int split;
20 int pos_read, pos_write;
21 int full;
22 int command_prev;
26 extern int midibuf_bytes_used(struct MidiBuffer *mb);
27 extern int midibuf_bytes_free(struct MidiBuffer *mb);
28 extern void midibuf_destroy(struct MidiBuffer *mb);
29 extern int midibuf_ignore(struct MidiBuffer *mb, int length);
30 extern int midibuf_init(struct MidiBuffer *mb, int size, int split);
31 extern int midibuf_read(struct MidiBuffer *mb, unsigned char *data, int length);
32 extern void midibuf_reset(struct MidiBuffer *mb);
33 extern int midibuf_skip_message(struct MidiBuffer *mb, unsigned short mask);
34 extern void midibuf_status(struct MidiBuffer *mb);
35 extern int midibuf_write(struct MidiBuffer *mb, unsigned char *data,
36 int length);
39 #endif