blob: d037c94cf8f0051c52fb9a1c73b7466e5fa45a38 [file] [log] [blame]
Pavel Maltseva2f426a2016-10-04 10:17:05 -07001/*
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_VehicleCallback_H_
18#define HIDL_GENERATED_android_hardware_vehicle_V2_0_VehicleCallback_H_
19
20#include <android/hardware/vehicle/2.0/IVehicleCallback.h>
21#include <hidl/Status.h>
22
23#include <hidl/MQDescriptor.h>
24namespace android {
25namespace hardware {
26namespace vehicle {
27namespace V2_0 {
28namespace implementation {
29
30using ::android::hardware::vehicle::V2_0::IVehicleCallback;
31using ::android::hardware::vehicle::V2_0::VehiclePropValue;
32using ::android::hardware::vehicle::V2_0::VehicleProperty;
33using ::android::hardware::vehicle::V2_0::VehiclePropertyOperation;
34using ::android::hardware::Return;
35using ::android::hardware::Void;
36using ::android::hardware::hidl_vec;
37using ::android::hardware::hidl_string;
38using ::android::sp;
39
40struct VehicleCallback : public IVehicleCallback {
41 // Methods from ::android::hardware::vehicle::V2_0::IVehicleCallback follow.
42 Return<void> onPropertyEvent(const hidl_vec<VehiclePropValue>& values) override;
43 Return<void> onPropertySet(const VehiclePropValue& value) override;
44 Return<void> onError(StatusCode errorCode, VehicleProperty propId, VehiclePropertyOperation operation) override;
45
46};
47
48extern "C" IVehicleCallback* HIDL_FETCH_IVehicleCallback(const char* name);
49
50} // namespace implementation
51} // namespace V2_0
52} // namespace vehicle
53} // namespace hardware
54} // namespace android
55
56#endif // HIDL_GENERATED_android_hardware_vehicle_V2_0_VehicleCallback_H_