Imported Upstream version 1.0.29
[platform/upstream/alsa-lib.git] / src / mixer / mixer_simple.h
1 /*
2  *  Mixer Simple Interface - local header file
3  *  Copyright (c) 2005 by Jaroslav Kysela <perex@perex.cz>
4  *
5  *
6  *   This library is free software; you can redistribute it and/or modify
7  *   it under the terms of the GNU Lesser General Public License as
8  *   published by the Free Software Foundation; either version 2.1 of
9  *   the License, or (at your option) any later version.
10  *
11  *   This program is distributed in the hope that it will be useful,
12  *   but WITHOUT ANY WARRANTY; without even the implied warranty of
13  *   MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
14  *   GNU Lesser General Public License for more details.
15  *
16  *   You should have received a copy of the GNU Lesser General Public
17  *   License along with this library; if not, write to the Free Software
18  *   Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307 USA
19  *
20  */
21
22 #include "mixer_abst.h"
23
24 /* make local functions really local */
25 #define snd_mixer_simple_none_register \
26         snd1_mixer_simple_none_register
27 #define snd_mixer_simple_basic_register \
28         snd1_mixer_simple_basic_register
29
30 int snd_mixer_simple_none_register(snd_mixer_t *mixer, struct snd_mixer_selem_regopt *options, snd_mixer_class_t **classp);
31
32 #ifdef HAVE_LIBDL
33 int snd_mixer_simple_basic_register(snd_mixer_t *mixer, struct snd_mixer_selem_regopt *options, snd_mixer_class_t **classp);
34 #else
35 static inline int snd_mixer_simple_basic_register(snd_mixer_t *mixer ATTRIBUTE_UNUSED,
36                                                   struct snd_mixer_selem_regopt *options ATTRIBUTE_UNUSED,
37                                                   snd_mixer_class_t **classp ATTRIBUTE_UNUSED)
38 {
39         return -ENXIO;
40 }
41 #endif