Paul Keith | af24a5d | 2020-01-27 20:19:23 -0600 | [diff] [blame^] | 1 | #ifndef ANDROID_HARDWARE_IR_V1_0_CONSUMERIR_H |
| 2 | #define ANDROID_HARDWARE_IR_V1_0_CONSUMERIR_H |
| 3 | |
| 4 | #include <android/hardware/ir/1.0/IConsumerIr.h> |
| 5 | #include <hidl/MQDescriptor.h> |
| 6 | #include <hidl/Status.h> |
| 7 | |
| 8 | namespace android { |
| 9 | namespace hardware { |
| 10 | namespace ir { |
| 11 | namespace V1_0 { |
| 12 | namespace implementation { |
| 13 | |
| 14 | using ::android::hardware::hidl_array; |
| 15 | using ::android::hardware::hidl_memory; |
| 16 | using ::android::hardware::hidl_string; |
| 17 | using ::android::hardware::hidl_vec; |
| 18 | using ::android::hardware::Return; |
| 19 | using ::android::hardware::Void; |
| 20 | using ::android::sp; |
| 21 | |
| 22 | struct ConsumerIr : public IConsumerIr { |
| 23 | // Methods from ::android::hardware::ir::V1_0::IConsumerIr follow. |
| 24 | Return<bool> transmit(int32_t carrierFreq, const hidl_vec<int32_t>& pattern) override; |
| 25 | Return<void> getCarrierFreqs(getCarrierFreqs_cb _hidl_cb) override; |
| 26 | |
| 27 | // Methods from ::android::hidl::base::V1_0::IBase follow. |
| 28 | |
| 29 | }; |
| 30 | |
| 31 | // FIXME: most likely delete, this is only for passthrough implementations |
| 32 | // extern "C" IConsumerIr* HIDL_FETCH_IConsumerIr(const char* name); |
| 33 | |
| 34 | } // namespace implementation |
| 35 | } // namespace V1_0 |
| 36 | } // namespace ir |
| 37 | } // namespace hardware |
| 38 | } // namespace android |
| 39 | |
| 40 | #endif // ANDROID_HARDWARE_IR_V1_0_CONSUMERIR_H |