blob: 5adb6214a97437c364e177941d279a7929e90e50 [file] [log] [blame]
Paul Keithbde3a832020-01-27 20:19:30 -06001/*
2 * Copyright (C) 2020 The LineageOS 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
Paul Keithaf24a5d2020-01-27 20:19:23 -060017#ifndef ANDROID_HARDWARE_IR_V1_0_CONSUMERIR_H
18#define ANDROID_HARDWARE_IR_V1_0_CONSUMERIR_H
19
20#include <android/hardware/ir/1.0/IConsumerIr.h>
21#include <hidl/MQDescriptor.h>
22#include <hidl/Status.h>
23
24namespace android {
25namespace hardware {
26namespace ir {
27namespace V1_0 {
28namespace implementation {
29
Paul Keithaf24a5d2020-01-27 20:19:23 -060030using ::android::hardware::Return;
31using ::android::hardware::Void;
Paul Keithaf24a5d2020-01-27 20:19:23 -060032
Paul Keithbde3a832020-01-27 20:19:30 -060033class ConsumerIr : public IConsumerIr {
34 public:
Paul Keithaf24a5d2020-01-27 20:19:23 -060035 // Methods from ::android::hardware::ir::V1_0::IConsumerIr follow.
36 Return<bool> transmit(int32_t carrierFreq, const hidl_vec<int32_t>& pattern) override;
37 Return<void> getCarrierFreqs(getCarrierFreqs_cb _hidl_cb) override;
Paul Keithaf24a5d2020-01-27 20:19:23 -060038};
39
Paul Keithaf24a5d2020-01-27 20:19:23 -060040} // namespace implementation
41} // namespace V1_0
42} // namespace ir
43} // namespace hardware
44} // namespace android
45
46#endif // ANDROID_HARDWARE_IR_V1_0_CONSUMERIR_H