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, see <http://www.gnu.org/licenses/>.
22***/
23
24#include <pulsecore/core.h>
25#include <pulsecore/ipacl.h>
26#include <pulsecore/auth-cookie.h>
27#include <pulsecore/iochannel.h>
28#include <pulsecore/module.h>
29#include <pulsecore/modargs.h>
30
31typedef struct pa_esound_protocol pa_esound_protocol;
32
33typedef struct pa_esound_options {
34    PA_REFCNT_DECLARE;
35
36    pa_module *module;
37
38    bool auth_anonymous;
39    pa_ip_acl *auth_ip_acl;
40    pa_auth_cookie *auth_cookie;
41
42    char *default_sink, *default_source;
43} pa_esound_options;
44
45pa_esound_protocol* pa_esound_protocol_get(pa_core*core);
46pa_esound_protocol* pa_esound_protocol_ref(pa_esound_protocol *p);
47void pa_esound_protocol_unref(pa_esound_protocol *p);
48void pa_esound_protocol_connect(pa_esound_protocol *p, pa_iochannel *io, pa_esound_options *o);
49void pa_esound_protocol_disconnect(pa_esound_protocol *p, pa_module *m);
50
51pa_esound_options* pa_esound_options_new(void);
52pa_esound_options* pa_esound_options_ref(pa_esound_options *o);
53void pa_esound_options_unref(pa_esound_options *o);
54int pa_esound_options_parse(pa_esound_options *o, pa_core *c, pa_modargs *ma);
55
56#endif
57