From 2377bf81493fe77568b0dd7b18b6c186187bd146 Mon Sep 17 00:00:00 2001 From: ratchov <> Date: Sun, 20 Dec 2015 11:29:29 +0000 Subject: [PATCH] Expose internal functions necessary to open audio devices and midi ports using existing file descriptors. --- src/include/sndio.h | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/src/include/sndio.h b/src/include/sndio.h index 7e161bef..dcb9ddfb 100644 --- a/src/include/sndio.h +++ b/src/include/sndio.h @@ -1,4 +1,4 @@ -/* $OpenBSD: sndio.h,v 1.8 2012/08/22 08:56:46 espie Exp $ */ +/* $OpenBSD: sndio.h,v 1.9 2015/12/20 11:29:29 ratchov Exp $ */ /* * Copyright (c) 2008 Alexandre Ratchov * @@ -144,6 +144,11 @@ int mio_pollfd(struct mio_hdl *, struct pollfd *, int); int mio_revents(struct mio_hdl *, struct pollfd *); int mio_eof(struct mio_hdl *); +int mio_rmidi_getfd(const char *, unsigned int, int); +struct mio_hdl *mio_rmidi_fdopen(int, unsigned int, int); +int sio_sun_getfd(const char *, unsigned int, int); +struct sio_hdl *sio_sun_fdopen(int, unsigned int, int); + #ifdef __cplusplus } #endif