From: taeyoung Date: Thu, 2 Feb 2017 04:34:42 +0000 (+0900) Subject: led: add getter function X-Git-Tag: submit/tizen_3.0/20170202.060211^0 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=refs%2Fheads%2Ftizen_3.0;p=platform%2Fcore%2Fsystem%2Flibdevice-node.git led: add getter function - 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 --- 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