Glenn Kasten | 40d1c40 | 2010-06-21 11:46:55 -0700 | [diff] [blame] | 1 | /* |
| 2 | * Copyright (C) 2010 The Android Open Source Project |
| 3 | * |
| 4 | * Licensed under the Apache License, Version 2.0 (the "License"); |
| 5 | * you may not use this file except in compliance with the License. |
| 6 | * You may obtain a copy of the License at |
| 7 | * |
| 8 | * http://www.apache.org/licenses/LICENSE-2.0 |
| 9 | * |
| 10 | * Unless required by applicable law or agreed to in writing, software |
| 11 | * distributed under the License is distributed on an "AS IS" BASIS, |
| 12 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. |
| 13 | * See the License for the specific language governing permissions and |
| 14 | * limitations under the License. |
| 15 | */ |
Glenn Kasten | bd3cb77 | 2010-05-03 14:39:02 -0700 | [diff] [blame] | 16 | |
| 17 | #ifndef __MPH_to_H |
| 18 | #define __MPH_to_H |
| 19 | |
Glenn Kasten | 369f313 | 2010-07-23 15:45:09 -0700 | [diff] [blame] | 20 | /** \brief Map minimal perfect hash of an interface ID to its class index. */ |
Glenn Kasten | bd3cb77 | 2010-05-03 14:39:02 -0700 | [diff] [blame] | 21 | |
| 22 | extern const signed char |
| 23 | MPH_to_3DGroup[MPH_MAX], |
| 24 | MPH_to_AudioPlayer[MPH_MAX], |
| 25 | MPH_to_AudioRecorder[MPH_MAX], |
| 26 | MPH_to_Engine[MPH_MAX], |
| 27 | MPH_to_LEDDevice[MPH_MAX], |
| 28 | MPH_to_Listener[MPH_MAX], |
| 29 | MPH_to_MetadataExtractor[MPH_MAX], |
| 30 | MPH_to_MidiPlayer[MPH_MAX], |
| 31 | MPH_to_OutputMix[MPH_MAX], |
Glenn Kasten | 8b88750 | 2010-11-30 21:05:47 -0800 | [diff] [blame] | 32 | MPH_to_Vibra[MPH_MAX], |
| 33 | MPH_to_MediaPlayer[MPH_MAX]; |
Glenn Kasten | bd3cb77 | 2010-05-03 14:39:02 -0700 | [diff] [blame] | 34 | |
Jean-Michel Trivi | 5b09aa8 | 2010-09-02 17:48:22 -0700 | [diff] [blame] | 35 | /** \brief Maximum number of interfaces on a single object. */ |
Glenn Kasten | e5d006b | 2010-08-13 13:57:26 -0700 | [diff] [blame] | 36 | #define MAX_INDEX 32 |
| 37 | |
Glenn Kasten | bd3cb77 | 2010-05-03 14:39:02 -0700 | [diff] [blame] | 38 | #endif // !defined(__MPH_to_H) |