summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authortaeyoung <ty317.kim@samsung.com>2017-02-02 13:34:42 +0900
committertaeyoung <ty317.kim@samsung.com>2017-02-02 13:34:42 +0900
commit6976a97dad19f2926dac603bb09f73f3607f5e36 (patch)
treed861739ce09735b4e51c92beb8e372942ec5b8de
parent22be1ab827e676e97bf8f3a03b26155e60b15fdb (diff)
downloadlibdevice-node-tizen_3.0.tar.gz
libdevice-node-tizen_3.0.tar.bz2
libdevice-node-tizen_3.0.zip
- 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.h5
1 files changed, 5 insertions, 0 deletions
diff --git a/hw/led.h b/hw/led.h
index 69c6c10..1d54616 100644
--- a/hw/led.h
+++ b/hw/led.h
@@ -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