From: Youngjae Cho Date: Fri, 10 Dec 2021 05:54:57 +0000 (+0900) Subject: power: rename sleep-wait add/remove function X-Git-Tag: accepted/tizen/unified/20211213.133455~1 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=refs%2Fchanges%2F18%2F267818%2F1;p=platform%2Fcore%2Fapi%2Fdevice.git power: rename sleep-wait add/remove function Change the name to - device_power_add_sleep_wait_callback - device_power_remove_sleep_wait_callback Change-Id: I596288e27fc3bd1b977a28a7df8dc2239ffac056 Signed-off-by: Youngjae Cho --- diff --git a/include/power-internal.h b/include/power-internal.h index f4aa0ea..3f32717 100644 --- a/include/power-internal.h +++ b/include/power-internal.h @@ -57,8 +57,8 @@ struct device_event_info { typedef int (*sleep_callback) (const struct device_event_info *info, void *user_data); /* return DEVICE_ERROR_NONE on success */ -int device_power_add_sleep_callback(sleep_callback cb, void *user_data); -void device_power_remove_sleep_callback(void); +int device_power_add_sleep_wait_callback(sleep_callback cb, void *user_data); +void device_power_remove_sleep_wait_callback(void); #ifdef __cplusplus } diff --git a/src/power-internal.c b/src/power-internal.c index 9fdd1e6..a14b186 100644 --- a/src/power-internal.c +++ b/src/power-internal.c @@ -62,7 +62,7 @@ static void signal_callback(GDBusConnection *connection, } } -int device_power_add_sleep_callback(sleep_callback cb, void *data) +int device_power_add_sleep_wait_callback(sleep_callback cb, void *data) { GDBusConnection *connection; GVariant *retval; @@ -119,7 +119,7 @@ int device_power_add_sleep_callback(sleep_callback cb, void *data) return DEVICE_ERROR_NONE; } -void device_power_remove_sleep_callback(void) +void device_power_remove_sleep_wait_callback(void) { GError *err = NULL; GDBusConnection *connection;