From: lokilee73 Date: Thu, 10 Sep 2020 07:40:07 +0000 (+0900) Subject: Change function name X-Git-Tag: accepted/tizen/6.0/unified/20201030.115521^0 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=refs%2Fheads%2Ftizen_6.0;p=platform%2Fcore%2Fsystem%2Ffeedbackd.git Change function name ex) dh_get_param_from_var to g_variant_get_safe Change-Id: I73e92c7b2e87b0b5d26547fa4a3adc69e6451f84 Signed-off-by: lokilee73 --- 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; }