1
/*
2
 * Copyright 2008-2011 Various Authors
3
 * Copyright 2004 Timo Hirvonen
4
 *
5
 * This program is free software; you can redistribute it and/or
6
 * modify it under the terms of the GNU General Public License as
7
 * published by the Free Software Foundation; either version 2 of the
8
 * License, or (at your option) any later version.
9
 *
10
 * This program is distributed in the hope that it will be useful, but
11
 * WITHOUT ANY WARRANTY; without even the implied warranty of
12
 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
13
 * General Public License for more details.
14
 *
15
 * You should have received a copy of the GNU General Public License
16
 * along with this program; if not, see <http://www.gnu.org/licenses/>.
17
 */
18
19
#ifndef _MIXER_H
20
#define _MIXER_H
21
22
#ifndef __GNUC__
23
#include <fcntl.h>
24
#endif
25
26
#define NR_MIXER_FDS 4
27
28
struct mixer_plugin_ops {
29
	int (*init)(void);
30
	int (*exit)(void);
31
	int (*open)(int *volume_max);
32
	int (*close)(void);
33
	int (*get_fds)(int *fds);
34
	int (*set_volume)(int l, int r);
35
	int (*get_volume)(int *l, int *r);
36
	int (*set_option)(int key, const char *val);
37
	int (*get_option)(int key, char **val);
38
};
39
40
/* symbols exported by plugin */
41
extern const struct mixer_plugin_ops op_mixer_ops;
42
extern const char * const op_mixer_options[];
43
44
#endif