diff options
author | taeyoung <ty317.kim@samsung.com> | 2017-02-02 13:34:42 +0900 |
---|---|---|
committer | taeyoung <ty317.kim@samsung.com> | 2017-02-02 13:34:42 +0900 |
commit | 6976a97dad19f2926dac603bb09f73f3607f5e36 (patch) | |
tree | d861739ce09735b4e51c92beb8e372942ec5b8de | |
parent | 22be1ab827e676e97bf8f3a03b26155e60b15fdb (diff) | |
download | libdevice-node-tizen_3.0.tar.gz libdevice-node-tizen_3.0.tar.bz2 libdevice-node-tizen_3.0.zip |
led: add getter functionsubmit/tizen_3.0/20170202.060211tizen_3.0
- The getter function provides current led state.
If the led is on the off state, the output struct
will contain 0 values.
Change-Id: Id83363dfbdd5302b7957c19a2b3b36efa952f5fb
Signed-off-by: taeyoung <ty317.kim@samsung.com>
-rw-r--r-- | hw/led.h | 5 |
1 files changed, 5 insertions, 0 deletions
@@ -68,6 +68,11 @@ struct led_device { * Set led state */ int (*set_state)(struct led_state *state); + + /** + * Get led state + */ + int (*get_state)(struct led_state **state); }; #endif |