PulseAudio
3.0
Main Page
Related Pages
Data Structures
Files
Examples
File List
Globals
context.h
Go to the documentation of this file.
1
#ifndef foocontexthfoo
2
#define foocontexthfoo
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/sample.h
>
27
#include <
pulse/def.h
>
28
#include <
pulse/mainloop-api.h
>
29
#include <pulse/cdecl.h>
30
#include <
pulse/operation.h
>
31
#include <
pulse/proplist.h
>
32
#include <
pulse/version.h
>
33
153
PA_C_DECL_BEGIN
154
156
typedef
struct
pa_context
pa_context
;
157
159
typedef
void (*
pa_context_notify_cb_t
)(
pa_context
*c,
void
*userdata);
160
162
typedef
void (*
pa_context_success_cb_t
) (
pa_context
*c,
int
success,
void
*userdata);
163
169
typedef
void (*
pa_context_event_cb_t
)(
pa_context
*c,
const
char
*name,
pa_proplist
*p,
void
*userdata);
170
174
pa_context
*
pa_context_new
(
pa_mainloop_api
*mainloop,
const
char
*name);
175
179
pa_context
*
pa_context_new_with_proplist
(
pa_mainloop_api
*mainloop,
const
char
*name,
pa_proplist
*proplist);
180
182
void
pa_context_unref
(
pa_context
*c);
183
185
pa_context
*
pa_context_ref
(
pa_context
*c);
186
188
void
pa_context_set_state_callback
(
pa_context
*c,
pa_context_notify_cb_t
cb,
void
*userdata);
189
192
void
pa_context_set_event_callback
(
pa_context
*p,
pa_context_event_cb_t
cb,
void
*userdata);
193
195
int
pa_context_errno
(
pa_context
*c);
196
198
int
pa_context_is_pending
(
pa_context
*c);
199
201
pa_context_state_t
pa_context_get_state
(
pa_context
*c);
202
211
int
pa_context_connect
(
pa_context
*c,
const
char
*server,
pa_context_flags_t
flags,
const
pa_spawn_api
*api);
212
214
void
pa_context_disconnect
(
pa_context
*c);
215
217
pa_operation
*
pa_context_drain
(
pa_context
*c,
pa_context_notify_cb_t
cb,
void
*userdata);
218
222
pa_operation
*
pa_context_exit_daemon
(
pa_context
*c,
pa_context_success_cb_t
cb,
void
*userdata);
223
225
pa_operation
*
pa_context_set_default_sink
(
pa_context
*c,
const
char
*name,
pa_context_success_cb_t
cb,
void
*userdata);
226
228
pa_operation
*
pa_context_set_default_source
(
pa_context
*c,
const
char
*name,
pa_context_success_cb_t
cb,
void
*userdata);
229
231
int
pa_context_is_local
(
pa_context
*c);
232
234
pa_operation
*
pa_context_set_name
(
pa_context
*c,
const
char
*name,
pa_context_success_cb_t
cb,
void
*userdata);
235
237
const
char
*
pa_context_get_server
(
pa_context
*c);
238
240
uint32_t
pa_context_get_protocol_version
(
pa_context
*c);
241
243
uint32_t
pa_context_get_server_protocol_version
(
pa_context
*c);
244
250
pa_operation
*
pa_context_proplist_update
(
pa_context
*c,
pa_update_mode_t
mode,
pa_proplist
*p,
pa_context_success_cb_t
cb,
void
*userdata);
251
253
pa_operation
*
pa_context_proplist_remove
(
pa_context
*c,
const
char
*
const
keys[],
pa_context_success_cb_t
cb,
void
*userdata);
254
258
uint32_t
pa_context_get_index
(
pa_context
*s);
259
262
pa_time_event
*
pa_context_rttime_new
(
pa_context
*c,
pa_usec_t
usec,
pa_time_event_cb_t
cb,
void
*userdata);
263
266
void
pa_context_rttime_restart
(
pa_context
*c,
pa_time_event
*e,
pa_usec_t
usec);
267
281
size_t
pa_context_get_tile_size
(
pa_context
*c,
const
pa_sample_spec
*ss);
282
283
PA_C_DECL_END
284
285
#endif
src
pulse
context.h
Generated by
1.8.3.1