Change function name 08/243808/1 accepted/tizen_6.0_unified accepted/tizen_6.0_unified_hotfix tizen_6.0 tizen_6.0_hotfix accepted/tizen/6.0/unified/20201030.115521 accepted/tizen/6.0/unified/hotfix/20201103.004357 accepted/tizen/unified/20200914.131507 submit/tizen/20200911.012117 submit/tizen_6.0/20201029.205104 submit/tizen_6.0_hotfix/20201102.192504 submit/tizen_6.0_hotfix/20201103.114804 tizen_6.0.m2_release
authorlokilee73 <changjoo.lee@samsung.com>
Thu, 10 Sep 2020 07:40:07 +0000 (16:40 +0900)
committerlokilee73 <changjoo.lee@samsung.com>
Thu, 10 Sep 2020 07:40:12 +0000 (16:40 +0900)
ex) dh_get_param_from_var to g_variant_get_safe

Change-Id: I73e92c7b2e87b0b5d26547fa4a3adc69e6451f84
Signed-off-by: lokilee73 <changjoo.lee@samsung.com>
src/auto-test/haptic.c
src/haptic/haptic.c

index dbf5872..0f64299 100644 (file)
@@ -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)) {
index 5ccf572..b5b3b93 100644 (file)
@@ -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;
        }