From b8b68c00f5a0266471a86a9b66b3d965c678b99c Mon Sep 17 00:00:00 2001 From: lokilee73 Date: Thu, 10 Sep 2020 16:40:07 +0900 Subject: [PATCH] Change function name ex) dh_get_param_from_var to g_variant_get_safe Change-Id: I73e92c7b2e87b0b5d26547fa4a3adc69e6451f84 Signed-off-by: lokilee73 --- src/auto-test/haptic.c | 2 +- src/haptic/haptic.c | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/auto-test/haptic.c b/src/auto-test/haptic.c index dbf5872..0f64299 100644 --- a/src/auto-test/haptic.c +++ b/src/auto-test/haptic.c @@ -43,7 +43,7 @@ static bool request_haptic_method(const char *method, GVariant *param, int *retu return ret; } - if (!dh_get_param_from_var(msg, "(i)", &val)) + if (!g_variant_get_safe(msg, "(i)", &val)) _E("Failed to call %s: no message", method); else { if ((val == -ENOTSUP) || (val == -ENOSYS)) { diff --git a/src/haptic/haptic.c b/src/haptic/haptic.c index 5ccf572..b5b3b93 100644 --- a/src/haptic/haptic.c +++ b/src/haptic/haptic.c @@ -1188,7 +1188,7 @@ static void haptic_poweroff_cb(GDBusConnection *conn, int ret, level; struct timespec time = {0,}; - if (!dh_get_param_from_var(param, "(i)", &type)) { + if (!g_variant_get_safe(param, "(i)", &type)) { _E("Failed to get params from gvariant. expected:%s, type:%s", "(i)", g_variant_get_type_string(param)); return; } -- 2.7.4