Steven Moreland | 81f5da9 | 2016-09-30 16:32:24 -0700 | [diff] [blame^] | 1 | #ifndef HIDL_GENERATED_android_hardware_light_V2_0_Light_H_ |
| 2 | #define HIDL_GENERATED_android_hardware_light_V2_0_Light_H_ |
| 3 | |
| 4 | #include <android/hardware/light/2.0/ILight.h> |
| 5 | #include <hardware/hardware.h> |
| 6 | #include <hardware/lights.h> |
| 7 | #include <hidl/Status.h> |
| 8 | #include <hidl/MQDescriptor.h> |
| 9 | #include <map> |
| 10 | |
| 11 | namespace android { |
| 12 | namespace hardware { |
| 13 | namespace light { |
| 14 | namespace V2_0 { |
| 15 | namespace implementation { |
| 16 | |
| 17 | using ::android::hardware::light::V2_0::ILight; |
| 18 | using ::android::hardware::light::V2_0::LightState; |
| 19 | using ::android::hardware::light::V2_0::Status; |
| 20 | using ::android::hardware::light::V2_0::Type; |
| 21 | using ::android::hardware::Return; |
| 22 | using ::android::hardware::Void; |
| 23 | using ::android::hardware::hidl_vec; |
| 24 | using ::android::hardware::hidl_string; |
| 25 | using ::android::sp; |
| 26 | |
| 27 | struct Light : public ILight { |
| 28 | Light(std::map<Type, light_device_t*> &&lights); |
| 29 | |
| 30 | // Methods from ::android::hardware::light::V2_0::ILight follow. |
| 31 | Return<Status> setLight(Type type, const LightState& state) override; |
| 32 | Return<void> getSupportedTypes(getSupportedTypes_cb _hidl_cb) override; |
| 33 | |
| 34 | private: |
| 35 | std::map<Type, light_device_t*> mLights; |
| 36 | }; |
| 37 | |
| 38 | extern "C" ILight* HIDL_FETCH_ILight(const char* name); |
| 39 | |
| 40 | } // namespace implementation |
| 41 | } // namespace V2_0 |
| 42 | } // namespace light |
| 43 | } // namespace hardware |
| 44 | } // namespace android |
| 45 | |
| 46 | #endif // HIDL_GENERATED_android_hardware_light_V2_0_Light_H_ |