virtual-sink: Fix a crash when moving the sink to a new master right after setup.
[pulseaudio-raopUDP/pulseaudio-raop-alac.git] / src / pulsecore / protocol-esound.h
blob63a29ce8d2caa9374c659496cd9765e97d70e3b4
1 #ifndef fooprotocolesoundhfoo
2 #define fooprotocolesoundhfoo
4 /***
5 This file is part of PulseAudio.
7 Copyright 2004-2006 Lennart Poettering
8 Copyright 2006 Pierre Ossman <ossman@cendio.se> for Cendio AB
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.
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.
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 ***/
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>
33 typedef struct pa_esound_protocol pa_esound_protocol;
35 typedef struct pa_esound_options {
36 PA_REFCNT_DECLARE;
38 pa_module *module;
40 pa_bool_t auth_anonymous;
41 pa_ip_acl *auth_ip_acl;
42 pa_auth_cookie *auth_cookie;
44 char *default_sink, *default_source;
45 } pa_esound_options;
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);
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);
58 #endif