Adam Lesinski | 40e8eef | 2014-09-16 14:43:29 -0700 | [diff] [blame] | 1 | /* |
| 2 | * Copyright (C) 2014 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 | */ |
| 16 | |
| 17 | #ifndef H_ANDROID_SPLIT_ABI |
| 18 | #define H_ANDROID_SPLIT_ABI |
| 19 | |
Adam Lesinski | c3dc0b5 | 2014-11-03 12:05:15 -0800 | [diff] [blame] | 20 | #include <utils/Vector.h> |
Adam Lesinski | 40e8eef | 2014-09-16 14:43:29 -0700 | [diff] [blame] | 21 | |
| 22 | namespace split { |
| 23 | namespace abi { |
| 24 | |
Adam Lesinski | c3dc0b5 | 2014-11-03 12:05:15 -0800 | [diff] [blame] | 25 | enum Variant { |
| 26 | Variant_none = 0, |
| 27 | Variant_armeabi, |
| 28 | Variant_armeabi_v7a, |
| 29 | Variant_arm64_v8a, |
| 30 | Variant_x86, |
| 31 | Variant_x86_64, |
| 32 | Variant_mips, |
| 33 | Variant_mips64, |
Adam Lesinski | 40e8eef | 2014-09-16 14:43:29 -0700 | [diff] [blame] | 34 | }; |
| 35 | |
Adam Lesinski | c3dc0b5 | 2014-11-03 12:05:15 -0800 | [diff] [blame] | 36 | enum Family { |
| 37 | Family_none, |
| 38 | Family_arm, |
| 39 | Family_intel, |
| 40 | Family_mips, |
Adam Lesinski | 40e8eef | 2014-09-16 14:43:29 -0700 | [diff] [blame] | 41 | }; |
| 42 | |
| 43 | Family getFamily(Variant variant); |
Adam Lesinski | c3dc0b5 | 2014-11-03 12:05:15 -0800 | [diff] [blame] | 44 | const android::Vector<Variant>& getVariants(Family family); |
Adam Lesinski | 40e8eef | 2014-09-16 14:43:29 -0700 | [diff] [blame] | 45 | const char* toString(Variant variant); |
| 46 | |
| 47 | } // namespace abi |
| 48 | } // namespace split |
| 49 | |
| 50 | #endif // H_ANDROID_SPLIT_ABI |