Generic prototype of a poll() like function
Dispatch timeout, io and deferred events from the previously executed poll. Returns a negative value on error. On success returns the number of source dispatched.
Free a main loop object
Return the abstract main loop abstraction layer vtable for this main loop. No need to free the API as it is owned by the loop and is destroyed when the loop is freed.
Return the return value as specified with the main loop's quit() routine.
Run a single iteration of the main loop. This is a convenience function for pa_mainloop_prepare(), pa_mainloop_poll() and pa_mainloop_dispatch(). Returns a negative value on error or exit request. If block is nonzero, block for events if none are queued. Optionally return the return value as specified with the main loop's quit() routine in the integer variable retval points to. On success returns the number of sources dispatched in this iteration.
Allocate a new main loop object. Free with pa_mainloop_free.
Execute the previously prepared poll. Returns a negative value on error.
Prepare for a single iteration of the main loop. Returns a negative value on error or exit request. timeout specifies a maximum timeout for the subsequent poll, or -1 for blocking behaviour. The timeout is specified in microseconds.
Shutdown the main loop with the specified return value
Run unlimited iterations of the main loop object until the main loop's quit() routine is called. Returns a negative value on error. Optionally return the return value as specified with the main loop's quit() routine in the integer variable retval points to.
Change the poll() implementation
Interrupt a running poll (for threaded systems)
An opaque main loop object
This file is part of PulseAudio.