power-internal: Add getter and signal subscriber for lock count 40/311640/1 tizen
authorYoungjae Cho <y0.cho@samsung.com>
Thu, 28 Dec 2023 05:30:52 +0000 (14:30 +0900)
committeryoungjae cho <y0.cho@samsung.com>
Thu, 23 May 2024 03:17:16 +0000 (03:17 +0000)
commitede11e9f3c7e9f29a6becb35444b36452b53c93e
treed7a0accf2630cc42c5c588ffd90103869358514d
parent3718286edea49d09793f9f289e535857db20710a
power-internal: Add getter and signal subscriber for lock count

int device_power_get_lock_count()
 : Get the current lock count that hasn't yet been unlocked.

int device_power_add_lock_count_change_callback()
 : Register callback function that is invoked on lock count changed.
   The lock count is increased by 1 on device_power_request_lock(),
   decreased by 1 on device_power_release_lock() or timeout.

int device_power_remove_lock_count_change_callback()
 : Unregister the callback registered by the above.

Change-Id: Ib77260c867a27013572ee42ab1264ad3c3e5794e
Signed-off-by: Youngjae Cho <y0.cho@samsung.com>
include/power-internal.h
src/power-internal.c