Pavel Maltsev | a2f426a | 2016-10-04 10:17:05 -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 | |
| 17 | #ifndef HIDL_GENERATED_android_hardware_vehicle_V2_0_Vehicle_H_ |
| 18 | #define HIDL_GENERATED_android_hardware_vehicle_V2_0_Vehicle_H_ |
| 19 | |
| 20 | #include <android/hardware/vehicle/2.0/IVehicle.h> |
| 21 | #include <hidl/Status.h> |
| 22 | |
| 23 | #include <hidl/MQDescriptor.h> |
| 24 | namespace android { |
| 25 | namespace hardware { |
| 26 | namespace vehicle { |
| 27 | namespace V2_0 { |
| 28 | namespace implementation { |
| 29 | |
| 30 | using ::android::hardware::vehicle::V2_0::IVehicle; |
| 31 | using ::android::hardware::vehicle::V2_0::IVehicleCallback; |
| 32 | using ::android::hardware::vehicle::V2_0::SubscribeOptions; |
| 33 | using ::android::hardware::vehicle::V2_0::VehiclePropConfig; |
| 34 | using ::android::hardware::vehicle::V2_0::VehiclePropValue; |
| 35 | using ::android::hardware::vehicle::V2_0::VehicleProperty; |
| 36 | using ::android::hardware::Return; |
| 37 | using ::android::hardware::Void; |
| 38 | using ::android::hardware::hidl_vec; |
| 39 | using ::android::hardware::hidl_string; |
| 40 | using ::android::sp; |
| 41 | |
| 42 | struct Vehicle : public IVehicle { |
| 43 | // Methods from ::android::hardware::vehicle::V2_0::IVehicle follow. |
| 44 | Return<void> getAllPropConfigs(getAllPropConfigs_cb _hidl_cb) override; |
| 45 | Return<void> getPropConfigs(const hidl_vec<VehicleProperty>& properties, getPropConfigs_cb _hidl_cb) override; |
| 46 | Return<void> get(VehicleProperty propId, int32_t areaId, get_cb _hidl_cb) override; |
| 47 | Return<StatusCode> set(const VehiclePropValue& value) override; |
| 48 | Return<StatusCode> subscribe(const sp<IVehicleCallback>& listener, const hidl_vec<SubscribeOptions>& options) override; |
| 49 | Return<StatusCode> unsubscribe(VehicleProperty propId) override; |
| 50 | Return<void> debugDump(debugDump_cb _hidl_cb = nullptr) override; |
| 51 | }; |
| 52 | |
| 53 | extern "C" IVehicle* HIDL_FETCH_IVehicle(const char* name); |
| 54 | |
| 55 | } // namespace implementation |
| 56 | } // namespace V2_0 |
| 57 | } // namespace vehicle |
| 58 | } // namespace hardware |
| 59 | } // namespace android |
| 60 | |
| 61 | #endif // HIDL_GENERATED_android_hardware_vehicle_V2_0_Vehicle_H_ |