interfaces.cpp revision 28bc6b725c207fb8fbd618caea4aa127f35ce1e1
1104c000a6f36b871ca11e0394db1e5217f374cafGlenn Kasten/*
2104c000a6f36b871ca11e0394db1e5217f374cafGlenn Kasten * Copyright (C) 2010 The Android Open Source Project
3104c000a6f36b871ca11e0394db1e5217f374cafGlenn Kasten *
4104c000a6f36b871ca11e0394db1e5217f374cafGlenn Kasten * Licensed under the Apache License, Version 2.0 (the "License");
5104c000a6f36b871ca11e0394db1e5217f374cafGlenn Kasten * you may not use this file except in compliance with the License.
6104c000a6f36b871ca11e0394db1e5217f374cafGlenn Kasten * You may obtain a copy of the License at
7104c000a6f36b871ca11e0394db1e5217f374cafGlenn Kasten *
8104c000a6f36b871ca11e0394db1e5217f374cafGlenn Kasten *      http://www.apache.org/licenses/LICENSE-2.0
9104c000a6f36b871ca11e0394db1e5217f374cafGlenn Kasten *
10104c000a6f36b871ca11e0394db1e5217f374cafGlenn Kasten * Unless required by applicable law or agreed to in writing, software
11104c000a6f36b871ca11e0394db1e5217f374cafGlenn Kasten * distributed under the License is distributed on an "AS IS" BASIS,
12104c000a6f36b871ca11e0394db1e5217f374cafGlenn Kasten * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13104c000a6f36b871ca11e0394db1e5217f374cafGlenn Kasten * See the License for the specific language governing permissions and
14104c000a6f36b871ca11e0394db1e5217f374cafGlenn Kasten * limitations under the License.
15104c000a6f36b871ca11e0394db1e5217f374cafGlenn Kasten */
16104c000a6f36b871ca11e0394db1e5217f374cafGlenn Kasten
17104c000a6f36b871ca11e0394db1e5217f374cafGlenn Kasten// Map minimal perfect hash of an interface ID to its name
18104c000a6f36b871ca11e0394db1e5217f374cafGlenn Kasten
19104c000a6f36b871ca11e0394db1e5217f374cafGlenn Kasten#include "MPH.h"
20104c000a6f36b871ca11e0394db1e5217f374cafGlenn Kasten
21104c000a6f36b871ca11e0394db1e5217f374cafGlenn Kastenconst char * const interface_names[MPH_MAX] = {
22104c000a6f36b871ca11e0394db1e5217f374cafGlenn Kasten    "3DCOMMIT",
23104c000a6f36b871ca11e0394db1e5217f374cafGlenn Kasten    "3DDOPPLER",
24104c000a6f36b871ca11e0394db1e5217f374cafGlenn Kasten    "3DGROUPING",
25104c000a6f36b871ca11e0394db1e5217f374cafGlenn Kasten    "3DLOCATION",
26104c000a6f36b871ca11e0394db1e5217f374cafGlenn Kasten    "3DMACROSCOPIC",
27104c000a6f36b871ca11e0394db1e5217f374cafGlenn Kasten    "3DSOURCE",
28104c000a6f36b871ca11e0394db1e5217f374cafGlenn Kasten    "AUDIODECODERCAPABILITIES",
29104c000a6f36b871ca11e0394db1e5217f374cafGlenn Kasten    "AUDIOENCODER",
30104c000a6f36b871ca11e0394db1e5217f374cafGlenn Kasten    "AUDIOENCODERCAPABILITIES",
31104c000a6f36b871ca11e0394db1e5217f374cafGlenn Kasten    "AUDIOIODEVICECAPABILITIES",
32104c000a6f36b871ca11e0394db1e5217f374cafGlenn Kasten    "BASSBOOST",
33104c000a6f36b871ca11e0394db1e5217f374cafGlenn Kasten    "BUFFERQUEUE",
34104c000a6f36b871ca11e0394db1e5217f374cafGlenn Kasten    "DEVICEVOLUME",
35104c000a6f36b871ca11e0394db1e5217f374cafGlenn Kasten    "DYNAMICINTERFACEMANAGEMENT",
36104c000a6f36b871ca11e0394db1e5217f374cafGlenn Kasten    "DYNAMICSOURCE",
37104c000a6f36b871ca11e0394db1e5217f374cafGlenn Kasten    "EFFECTSEND",
38104c000a6f36b871ca11e0394db1e5217f374cafGlenn Kasten    "ENGINE",
39104c000a6f36b871ca11e0394db1e5217f374cafGlenn Kasten    "ENGINECAPABILITIES",
40104c000a6f36b871ca11e0394db1e5217f374cafGlenn Kasten    "ENVIRONMENTALREVERB",
41104c000a6f36b871ca11e0394db1e5217f374cafGlenn Kasten    "EQUALIZER",
42104c000a6f36b871ca11e0394db1e5217f374cafGlenn Kasten    "LED",
43104c000a6f36b871ca11e0394db1e5217f374cafGlenn Kasten    "METADATAEXTRACTION",
44104c000a6f36b871ca11e0394db1e5217f374cafGlenn Kasten    "METADATATRAVERSAL",
45104c000a6f36b871ca11e0394db1e5217f374cafGlenn Kasten    "MIDIMESSAGE",
46104c000a6f36b871ca11e0394db1e5217f374cafGlenn Kasten    "MIDIMUTESOLO",
47104c000a6f36b871ca11e0394db1e5217f374cafGlenn Kasten    "MIDITEMPO",
48104c000a6f36b871ca11e0394db1e5217f374cafGlenn Kasten    "MIDITIME",
49104c000a6f36b871ca11e0394db1e5217f374cafGlenn Kasten    "MUTESOLO",
50104c000a6f36b871ca11e0394db1e5217f374cafGlenn Kasten    "NULL",
51104c000a6f36b871ca11e0394db1e5217f374cafGlenn Kasten    "OBJECT",
52104c000a6f36b871ca11e0394db1e5217f374cafGlenn Kasten    "OUTPUTMIX",
53104c000a6f36b871ca11e0394db1e5217f374cafGlenn Kasten    "PITCH",
54104c000a6f36b871ca11e0394db1e5217f374cafGlenn Kasten    "PLAY",
55104c000a6f36b871ca11e0394db1e5217f374cafGlenn Kasten    "PLAYBACKRATE",
56104c000a6f36b871ca11e0394db1e5217f374cafGlenn Kasten    "PREFETCHSTATUS",
57104c000a6f36b871ca11e0394db1e5217f374cafGlenn Kasten    "PRESETREVERB",
58104c000a6f36b871ca11e0394db1e5217f374cafGlenn Kasten    "RATEPITCH",
59104c000a6f36b871ca11e0394db1e5217f374cafGlenn Kasten    "RECORD",
60104c000a6f36b871ca11e0394db1e5217f374cafGlenn Kasten    "SEEK",
61104c000a6f36b871ca11e0394db1e5217f374cafGlenn Kasten    "THREADSYNC",
62104c000a6f36b871ca11e0394db1e5217f374cafGlenn Kasten    "VIBRA",
63104c000a6f36b871ca11e0394db1e5217f374cafGlenn Kasten    "VIRTUALIZER",
64104c000a6f36b871ca11e0394db1e5217f374cafGlenn Kasten    "VISUALIZATION",
65104c000a6f36b871ca11e0394db1e5217f374cafGlenn Kasten    "VOLUME",
66104c000a6f36b871ca11e0394db1e5217f374cafGlenn Kasten    // The lack of ifdef is intentional
67104c000a6f36b871ca11e0394db1e5217f374cafGlenn Kasten    "OUTPUTMIXEXT",
68104c000a6f36b871ca11e0394db1e5217f374cafGlenn Kasten    "ANDROIDEFFECT",
69104c000a6f36b871ca11e0394db1e5217f374cafGlenn Kasten    "ANDROIDEFFECTCAPABILITIES",
70104c000a6f36b871ca11e0394db1e5217f374cafGlenn Kasten    "ANDROIDEFFECTSEND",
71104c000a6f36b871ca11e0394db1e5217f374cafGlenn Kasten    "ANDROIDCONFIGURATION",
7228bc6b725c207fb8fbd618caea4aa127f35ce1e1Jean-Michel Trivi    "ANDROIDSIMPLEBUFFERQUEUE",
7328bc6b725c207fb8fbd618caea4aa127f35ce1e1Jean-Michel Trivi    "ANDROIDSTREAMSOURCE"
74104c000a6f36b871ca11e0394db1e5217f374cafGlenn Kasten};
75