Craig Donner | 8fd4c61 | 2016-10-14 17:53:46 -0700 | [diff] [blame] | 1 | /* |
| 2 | * Copyright (C) 2016 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 | #ifndef HIDL_GENERATED_android_hardware_vr_V1_0_Vr_H_ |
| 17 | #define HIDL_GENERATED_android_hardware_vr_V1_0_Vr_H_ |
| 18 | |
| 19 | #include <android/hardware/vr/1.0/IVr.h> |
| 20 | #include <hardware/vr.h> |
| 21 | #include <hidl/MQDescriptor.h> |
| 22 | |
| 23 | namespace android { |
| 24 | namespace hardware { |
| 25 | namespace vr { |
| 26 | namespace V1_0 { |
| 27 | namespace implementation { |
| 28 | |
| 29 | using ::android::hardware::vr::V1_0::IVr; |
| 30 | using ::android::hardware::Return; |
| 31 | |
| 32 | struct Vr : public IVr { |
| 33 | Vr(vr_module_t *device); |
| 34 | |
| 35 | // Methods from ::android::hardware::vr::V1_0::IVr follow. |
| 36 | Return<void> init() override; |
| 37 | Return<void> setVrMode(bool enabled) override; |
| 38 | |
| 39 | private: |
| 40 | vr_module_t *mDevice; |
| 41 | }; |
| 42 | |
| 43 | extern "C" IVr* HIDL_FETCH_IVr(const char* name); |
| 44 | |
| 45 | } // namespace implementation |
| 46 | } // namespace V1_0 |
| 47 | } // namespace vr |
| 48 | } // namespace hardware |
| 49 | } // namespace android |
| 50 | |
| 51 | #endif // HIDL_GENERATED_android_hardware_vr_V1_0_Vr_H_ |