]> code.delx.au - pulseaudio/blob - src/pulsecore/protocol-esound.h
remap: Change remapping function argument type from void to int16_t / float as approp...
[pulseaudio] / src / pulsecore / protocol-esound.h
1 #ifndef fooprotocolesoundhfoo
2 #define fooprotocolesoundhfoo
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 <pulsecore/core.h>
27 #include <pulsecore/ipacl.h>
28 #include <pulsecore/auth-cookie.h>
29 #include <pulsecore/iochannel.h>
30 #include <pulsecore/module.h>
31 #include <pulsecore/modargs.h>
32
33 typedef struct pa_esound_protocol pa_esound_protocol;
34
35 typedef struct pa_esound_options {
36 PA_REFCNT_DECLARE;
37
38 pa_module *module;
39
40 bool auth_anonymous;
41 pa_ip_acl *auth_ip_acl;
42 pa_auth_cookie *auth_cookie;
43
44 char *default_sink, *default_source;
45 } pa_esound_options;
46
47 pa_esound_protocol* pa_esound_protocol_get(pa_core*core);
48 pa_esound_protocol* pa_esound_protocol_ref(pa_esound_protocol *p);
49 void pa_esound_protocol_unref(pa_esound_protocol *p);
50 void pa_esound_protocol_connect(pa_esound_protocol *p, pa_iochannel *io, pa_esound_options *o);
51 void pa_esound_protocol_disconnect(pa_esound_protocol *p, pa_module *m);
52
53 pa_esound_options* pa_esound_options_new(void);
54 pa_esound_options* pa_esound_options_ref(pa_esound_options *o);
55 void pa_esound_options_unref(pa_esound_options *o);
56 int pa_esound_options_parse(pa_esound_options *o, pa_core *c, pa_modargs *ma);
57
58 #endif