mirror of
https://gitlab.freedesktop.org/pulseaudio/pulseaudio.git
synced 2025-11-07 13:30:03 -05:00
Avoid including non-portable header sys/poll.h.
git-svn-id: file:///home/lennart/svn/public/pulseaudio/trunk@739 fefdeb5f-60dc-0310-8127-8f9354f1896f
This commit is contained in:
parent
abea726d16
commit
c3087d02ba
1 changed files with 3 additions and 3 deletions
|
|
@ -27,6 +27,8 @@
|
||||||
|
|
||||||
PA_C_DECL_BEGIN
|
PA_C_DECL_BEGIN
|
||||||
|
|
||||||
|
struct pollfd;
|
||||||
|
|
||||||
/** \page mainloop Main Loop
|
/** \page mainloop Main Loop
|
||||||
*
|
*
|
||||||
* \section overv_sec Overview
|
* \section overv_sec Overview
|
||||||
|
|
@ -70,8 +72,6 @@ PA_C_DECL_BEGIN
|
||||||
* defined in \ref mainloop-api.h. This implementation is thread safe
|
* defined in \ref mainloop-api.h. This implementation is thread safe
|
||||||
* as long as you access the main loop object from a single thread only.*/
|
* as long as you access the main loop object from a single thread only.*/
|
||||||
|
|
||||||
#include <sys/poll.h>
|
|
||||||
|
|
||||||
/** An opaque main loop object */
|
/** An opaque main loop object */
|
||||||
typedef struct pa_mainloop pa_mainloop;
|
typedef struct pa_mainloop pa_mainloop;
|
||||||
|
|
||||||
|
|
@ -117,7 +117,7 @@ void pa_mainloop_quit(pa_mainloop *m, int r);
|
||||||
void pa_mainloop_wakeup(pa_mainloop *m);
|
void pa_mainloop_wakeup(pa_mainloop *m);
|
||||||
|
|
||||||
/** Generic prototype of a poll() like function */
|
/** Generic prototype of a poll() like function */
|
||||||
typedef int (*pa_poll_func)(struct pollfd *ufds, nfds_t nfds, int timeout, void*userdata);
|
typedef int (*pa_poll_func)(struct pollfd *ufds, unsigned long nfds, int timeout, void*userdata);
|
||||||
|
|
||||||
/** Change the poll() implementation */
|
/** Change the poll() implementation */
|
||||||
void pa_mainloop_set_poll_func(pa_mainloop *m, pa_poll_func poll_func, void *userdata);
|
void pa_mainloop_set_poll_func(pa_mainloop *m, pa_poll_func poll_func, void *userdata);
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue