From 070acd325252b7909672ab82e8050a3281524871 Mon Sep 17 00:00:00 2001 From: Youngjae Cho Date: Fri, 10 Dec 2021 14:54:57 +0900 Subject: [PATCH] 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 --- include/power-internal.h | 4 ++-- src/power-internal.c | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) 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; -- 2.7.4