aboutsummaryrefslogtreecommitdiff
path: root/src/pcm_io.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/pcm_io.h')
-rw-r--r--src/pcm_io.h5
1 files changed, 5 insertions, 0 deletions
diff --git a/src/pcm_io.h b/src/pcm_io.h
index 1b68ac8..3c622fd 100644
--- a/src/pcm_io.h
+++ b/src/pcm_io.h
@@ -30,6 +30,7 @@
#ifndef TINYALSA_SRC_PCM_IO_H
#define TINYALSA_SRC_PCM_IO_H
+#include <poll.h>
#include <sound/asound.h>
struct snd_node;
@@ -39,6 +40,10 @@ struct pcm_ops {
unsigned int flags, void **data, struct snd_node *node);
void (*close) (void *data);
int (*ioctl) (void *data, unsigned int cmd, ...);
+ void *(*mmap) (void *data, void *addr, size_t length, int prot, int flags,
+ off_t offset);
+ int (*munmap) (void *data, void *addr, size_t length);
+ int (*poll) (void *data, struct pollfd *pfd, nfds_t nfds, int timeout);
};
extern const struct pcm_ops hw_ops;