diff options
author | Dudemanguy <random342@airmail.cc> | 2023-09-17 21:59:16 -0500 |
---|---|---|
committer | Dudemanguy <random342@airmail.cc> | 2023-10-10 19:10:55 +0000 |
commit | ba4b408b8bdc2aa0059abaaffe8b16f28aec480b (patch) | |
tree | b4bfe0dc0f5d08e2eb1a596ddb64635c793accc3 /osdep/poll_wrapper.h | |
parent | a899e14bccb667af243f8fce454160e17ae45c2a (diff) | |
download | mpv-ba4b408b8bdc2aa0059abaaffe8b16f28aec480b.tar.bz2 mpv-ba4b408b8bdc2aa0059abaaffe8b16f28aec480b.tar.xz |
osdep: rename polldev to poll_wrapper
Originally, this was added as purely a shim for macOS. However since we
want to do high resolution polling which is not neccesarily available on
all platforms, making this a generic wrapper for poll functions is
useful so rename it.
Diffstat (limited to 'osdep/poll_wrapper.h')
-rw-r--r-- | osdep/poll_wrapper.h | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/osdep/poll_wrapper.h b/osdep/poll_wrapper.h new file mode 100644 index 0000000000..8593c1e77c --- /dev/null +++ b/osdep/poll_wrapper.h @@ -0,0 +1,7 @@ +#pragma once + +#include <poll.h> + +// Behaves like poll(3) but works for device files on macOS. +// Only supports POLLIN and POLLOUT. +int polldev(struct pollfd fds[], nfds_t nfds, int timeout); |