PulseAudio
3.0.0-7.mga3
Main Page
Related Pages
Data Structures
Files
Examples
File List
Globals
mainloop.h
Go to the documentation of this file.
1
#ifndef foomainloophfoo
2
#define foomainloophfoo
3
4
/***
5
This file is part of PulseAudio.
6
7
Copyright 2004-2006 Lennart Poettering
8
Copyright 2006 Pierre Ossman <ossman@cendio.se> for Cendio AB
9
10
PulseAudio is free software; you can redistribute it and/or modify
11
it under the terms of the GNU Lesser General Public License as published
12
by the Free Software Foundation; either version 2.1 of the License,
13
or (at your option) any later version.
14
15
PulseAudio is distributed in the hope that it will be useful, but
16
WITHOUT ANY WARRANTY; without even the implied warranty of
17
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
18
General Public License for more details.
19
20
You should have received a copy of the GNU Lesser General Public License
21
along with PulseAudio; if not, write to the Free Software
22
Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307
23
USA.
24
***/
25
26
#include <
pulse/mainloop-api.h
>
27
#include <pulse/cdecl.h>
28
29
PA_C_DECL_BEGIN
30
31
struct
pollfd;
32
80
typedef
struct
pa_mainloop
pa_mainloop
;
81
83
pa_mainloop
*
pa_mainloop_new
(
void
);
84
86
void
pa_mainloop_free
(
pa_mainloop
* m);
87
91
int
pa_mainloop_prepare
(
pa_mainloop
*m,
int
timeout);
92
94
int
pa_mainloop_poll
(
pa_mainloop
*m);
95
98
int
pa_mainloop_dispatch
(
pa_mainloop
*m);
99
101
int
pa_mainloop_get_retval
(
pa_mainloop
*m);
102
109
int
pa_mainloop_iterate
(
pa_mainloop
*m,
int
block,
int
*retval);
110
112
int
pa_mainloop_run
(
pa_mainloop
*m,
int
*retval);
113
117
pa_mainloop_api
*
pa_mainloop_get_api
(
pa_mainloop
*m);
118
120
void
pa_mainloop_quit
(
pa_mainloop
*m,
int
r);
121
123
void
pa_mainloop_wakeup
(
pa_mainloop
*m);
124
126
typedef
int (*
pa_poll_func
)(
struct
pollfd *ufds,
unsigned
long
nfds,
int
timeout,
void
*userdata);
127
129
void
pa_mainloop_set_poll_func
(
pa_mainloop
*m,
pa_poll_func
poll_func,
void
*userdata);
130
131
PA_C_DECL_END
132
133
#endif
src
pulse
mainloop.h
Generated on Sun Jan 13 2013 19:59:11 for PulseAudio by
1.8.3