murphyif: Free the connect timer when unloading
[profile/ivi/pulseaudio-module-murphy-ivi.git] / murphy / zone.h
1 /*
2  * module-murphy-ivi -- PulseAudio module for providing audio routing support
3  * Copyright (c) 2012, Intel Corporation.
4  *
5  * This program is free software; you can redistribute it and/or modify it
6  * under the terms and conditions of the GNU Lesser General Public License,
7  * version 2.1, as published by the Free Software Foundation.
8  *
9  * This program is distributed in the hope it will be useful, but WITHOUT
10  * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
11  * FITNESS FOR A PARTICULAR PURPOSE.
12  * See the GNU Lesser General Public License for more details.
13  *
14  * You should have received a copy of the GNU Lesser General Public License
15  * along with this program; if not, write to the
16  * Free Software Foundation, Inc., 51 Franklin St - Fifth Floor, Boston,
17  * MA 02110-1301 USA.
18  *
19  */
20 #ifndef foomirzonefoo
21 #define foomirzonefoo
22
23 #include <sys/types.h>
24
25 #include "userdata.h"
26
27 struct mir_zone {
28     const char *name;
29     uint32_t    index;
30 };
31
32 pa_zoneset *pa_zoneset_init(struct userdata *);
33 void pa_zoneset_done(struct userdata *);
34
35 int pa_zoneset_add_zone(struct userdata *, const char *, uint32_t);
36 mir_zone *pa_zoneset_get_zone_by_name(struct userdata *, const char *);
37 mir_zone *pa_zoneset_get_zone_by_index(struct userdata *, uint32_t);
38
39 void pa_zoneset_update_module_property(struct userdata *);
40
41 #endif  /* foomirzonefoo */
42
43
44 /*
45  * Local Variables:
46  * c-basic-offset: 4
47  * indent-tabs-mode: nil
48  * End:
49  *
50  */