~foura/midifs

ref: d084b72774385e5930b74cdfabca164768a39877 midifs/midi.h -rw-r--r-- 281 bytes
d084b727james palmer implement reads of the ctl file 5 months ago
                                                                                
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
typedef struct Pkt Pkt;
typedef struct Midi Midi;

struct Pkt {
	u8int type;
	u8int arg1;
	u8int arg2;
};

struct Midi {
	u8int cable, chan;
	int fd;
	int (*send)(Midi*, Pkt*);
	int (*recv)(Midi*, Pkt*);
};

Midi *	mkusbdev(char *);
Midi *	mkpipedev(char *);
void	freedev(Midi *);