diff options
author | 2012-10-27 12:08:25 +0000 | |
---|---|---|
committer | 2012-10-27 12:08:25 +0000 | |
commit | cfb56cbff173f3acce85bcb8b944782577c26f37 (patch) | |
tree | 5ccd935817ffd58263158faf509abe96ab80b786 /lib/libsndio/mio_priv.h | |
parent | crank SIO_MAXNFDS (diff) | |
download | wireguard-openbsd-cfb56cbff173f3acce85bcb8b944782577c26f37.tar.xz wireguard-openbsd-cfb56cbff173f3acce85bcb8b944782577c26f37.zip |
make midi code use non-blocking i/o as does audio code, in order
to make both look similar
Diffstat (limited to 'lib/libsndio/mio_priv.h')
-rw-r--r-- | lib/libsndio/mio_priv.h | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/lib/libsndio/mio_priv.h b/lib/libsndio/mio_priv.h index 60efc2b7733..0e1b6ba530c 100644 --- a/lib/libsndio/mio_priv.h +++ b/lib/libsndio/mio_priv.h @@ -1,4 +1,4 @@ -/* $OpenBSD: mio_priv.h,v 1.8 2011/11/15 08:05:22 ratchov Exp $ */ +/* $OpenBSD: mio_priv.h,v 1.9 2012/10/27 12:08:25 ratchov Exp $ */ /* * Copyright (c) 2008 Alexandre Ratchov <alex@caoua.org> * @@ -20,6 +20,8 @@ #include <sys/param.h> #include "sndio.h" +#define MIO_MAXNFDS 16 + /* * private ``handle'' structure */ @@ -37,6 +39,7 @@ struct mio_ops { void (*close)(struct mio_hdl *); size_t (*write)(struct mio_hdl *, const void *, size_t); size_t (*read)(struct mio_hdl *, void *, size_t); + int (*nfds)(struct mio_hdl *); int (*pollfd)(struct mio_hdl *, struct pollfd *, int); int (*revents)(struct mio_hdl *, struct pollfd *); }; |