Add sample JSON configuration file
[staging/agl-audio-plugin.git] / zone.h
1 /*
2  * module-agl-audio -- PulseAudio module for providing audio routing support
3  * (forked from "module-murphy-ivi" - https://github.com/otcshare )
4  * Copyright (c) 2012, Intel Corporation.
5  * Copyright (c) 2016, IoT.bzh
6  *
7  * This program is free software; you can redistribute it and/or modify it
8  * under the terms and conditions of the GNU Lesser General Public License,
9  * version 2.1, as published by the Free Software Foundation.
10  *
11  * This program is distributed in the hope it will be useful, but WITHOUT
12  * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
13  * FITNESS FOR A PARTICULAR PURPOSE.
14  * See the GNU Lesser General Public License for more details.
15  *
16  * You should have received a copy of the GNU Lesser General Public License
17  * along with this program; if not, write to the
18  * Free Software Foundation, Inc., 51 Franklin St - Fifth Floor, Boston,
19  * MA 02110-1301 USA.
20  *
21  */
22 #ifndef paaglzone
23 #define paaglzone
24
25 #include "userdata.h"
26
27 #define AGL_ZONE_MAX 8
28
29 struct agl_zone {
30         const char *name;
31         uint32_t    index;
32 };
33
34 agl_zoneset *agl_zoneset_init (struct userdata *);
35 void agl_zoneset_done (struct userdata *);
36
37 int agl_zoneset_add_zone (struct userdata *, const char *, uint32_t);
38 agl_zone *agl_zoneset_get_zone_by_name (struct userdata *, const char *);
39 agl_zone *agl_zoneset_get_zone_by_index (struct userdata *, uint32_t);
40
41 #endif