blob: b32a09a560febab74b59d8b11dc573f9616637f6 [file] [log] [blame]
Steven Moreland81f5da92016-09-30 16:32:24 -07001#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
11namespace android {
12namespace hardware {
13namespace light {
14namespace V2_0 {
15namespace implementation {
16
17using ::android::hardware::light::V2_0::ILight;
18using ::android::hardware::light::V2_0::LightState;
19using ::android::hardware::light::V2_0::Status;
20using ::android::hardware::light::V2_0::Type;
21using ::android::hardware::Return;
22using ::android::hardware::Void;
23using ::android::hardware::hidl_vec;
24using ::android::hardware::hidl_string;
25using ::android::sp;
26
27struct 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
34private:
35 std::map<Type, light_device_t*> mLights;
36};
37
38extern "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_