=================================================================== RCS file: /cvsrepo/anoncvs/cvs/src/usr.bin/sndiod/midi.h,v retrieving revision 1.1 retrieving revision 1.2 diff -u -r1.1 -r1.2 --- src/usr.bin/sndiod/midi.h 2012/11/23 07:03:28 1.1 +++ src/usr.bin/sndiod/midi.h 2012/11/30 20:30:24 1.2 @@ -1,4 +1,4 @@ -/* $OpenBSD: midi.h,v 1.1 2012/11/23 07:03:28 ratchov Exp $ */ +/* $OpenBSD: midi.h,v 1.2 2012/11/30 20:30:24 ratchov Exp $ */ /* * Copyright (c) 2008-2012 Alexandre Ratchov * @@ -72,8 +72,8 @@ unsigned int idx; /* current ``msg'' size */ unsigned int len; /* expected ``msg'' length */ unsigned int txmask; /* list of ep we send to */ - unsigned int rxmask; /* single ep we accept data for */ - struct abuf ibuf; /* input buffer */ + unsigned int self; /* equal (1 << index) */ + unsigned int tickets; /* max bytes we can process */ struct abuf obuf; /* output buffer */ }; @@ -102,12 +102,13 @@ struct midi *midi_new(struct midiops *, void *, int); void midi_del(struct midi *); void midi_log(struct midi *); -int midi_in(struct midi *); +void midi_tickets(struct midi *); +void midi_in(struct midi *, unsigned char *, int); void midi_out(struct midi *, unsigned char *, int); void midi_send(struct midi *, unsigned char *, int); void midi_fill(struct midi *); void midi_tag(struct midi *, unsigned int); -void midi_untag(struct midi *, unsigned int); +void midi_link(struct midi *, struct midi *); struct port *port_new(char *, unsigned int); struct port *port_bynum(int);