PageRenderTime 9ms CodeModel.GetById 5ms app.highlight 3ms RepoModel.GetById 0ms app.codeStats 0ms

/drivers/staging/line6/midibuf.h

https://bitbucket.org/cyanogenmod/android_kernel_asus_tf300t
C Header | 38 lines | 24 code | 4 blank | 10 comment | 0 complexity | 028acbe76c9c8c8b954efddff90c95da MD5 | raw file
Possible License(s): LGPL-2.0, AGPL-1.0, GPL-2.0
 1/*
 2 * Line6 Linux USB driver - 0.9.1beta
 3 *
 4 * Copyright (C) 2004-2010 Markus Grabner (grabner@icg.tugraz.at)
 5 *
 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.
 9 *
10 */
11
12#ifndef MIDIBUF_H
13#define MIDIBUF_H
14
15struct MidiBuffer {
16	unsigned char *buf;
17	int size;
18	int split;
19	int pos_read, pos_write;
20	int full;
21	int command_prev;
22};
23
24extern int line6_midibuf_bytes_used(struct MidiBuffer *mb);
25extern int line6_midibuf_bytes_free(struct MidiBuffer *mb);
26extern void line6_midibuf_destroy(struct MidiBuffer *mb);
27extern int line6_midibuf_ignore(struct MidiBuffer *mb, int length);
28extern int line6_midibuf_init(struct MidiBuffer *mb, int size, int split);
29extern int line6_midibuf_read(struct MidiBuffer *mb, unsigned char *data,
30			      int length);
31extern void line6_midibuf_reset(struct MidiBuffer *mb);
32extern int line6_midibuf_skip_message(struct MidiBuffer *mb,
33				      unsigned short mask);
34extern void line6_midibuf_status(struct MidiBuffer *mb);
35extern int line6_midibuf_write(struct MidiBuffer *mb, unsigned char *data,
36			       int length);
37
38#endif