power: add read wakeup source function
wakeup source: the information of "/sys/kernel/debug/wakeup_sources" node
wakeup reason: defined TIZEN Enum and able to be get by wakeup source
To add getter wakeup reason in device API, it is needed to read kernel
node (/sys/kernel/debug/wakeup_sources)
This node is including information of wakeup, so it is possible to get
the source of wakeup by compare the value of "wakeup_count" value.
Detailed function description
- hal_backend_device_common_read_wakeup_sources (char ***wakeup_source_name, int *wakeup_source_number):
wakeup_source_name : get the name of wakeup sources with string array.
each string and wakeup_source_name should be freed after using.
caller declare a char ** variable and use the pointer of it.
wakeup_source_number : the number of wakeup sources.
caller delcare a int vairable and use the pointer of it.
Exported and can be called by other HAL backend.
Change-Id: I605a5d539addb2cef7684f8e57f4ab3b5d9c65d4
Signed-off-by: TaeminYeom <taemin.yeom@samsung.com>