power : replace libtracker API to latest functions 60/127660/1 accepted/tizen/unified/20170429.024301 submit/tizen/20170428.074418
authorKichan Kwon <k_c.kwon@samsung.com>
Fri, 28 Apr 2017 07:34:11 +0000 (16:34 +0900)
committerKichan Kwon <k_c.kwon@samsung.com>
Fri, 28 Apr 2017 07:38:47 +0000 (16:38 +0900)
Change-Id: I87bc1281ec883e3d4d80a58415ca441d76c1419f
Signed-off-by: Kichan Kwon <k_c.kwon@samsung.com>
src/power.c

index 5359fa9..727b926 100644 (file)
@@ -211,7 +211,7 @@ static gboolean padding_timeout_expired(gpointer data)
 
        remove_padding_timeout();
 
-       ret = tracker_get_power_lock_ref(&ref);
+       ret = tracker_get_ref_counter(TRACKER_TYPE_POWER_LOCK, &ref);
        if (ret != TRACKER_ERROR_NONE) {
                _E("Failed to get reference count of power lock");
                goto out;
@@ -223,7 +223,7 @@ static gboolean padding_timeout_expired(gpointer data)
                return G_SOURCE_REMOVE;
        }
 
-       ret = tracker_get_power_lock_total(&count);
+       ret = tracker_get_tick(TRACKER_TYPE_POWER_LOCK, &count);
        if (ret != TRACKER_ERROR_NONE) {
                _E("Failed to get total count of power lock(%d)", ret);
                goto out;
@@ -268,7 +268,7 @@ static gboolean off_lock_timeout_expired(gpointer data)
 
        _I("Power lock timeout expired");
 
-       ret = tracker_get_power_lock_ref(&ref);
+       ret = tracker_get_ref_counter(TRACKER_TYPE_POWER_LOCK, &ref);
        if (ret != TRACKER_ERROR_NONE) {
                _E("Failed to get reference count of power lock(%d)", ret);
                remove_off_lock_timeout();
@@ -281,7 +281,7 @@ static gboolean off_lock_timeout_expired(gpointer data)
 
        add_padding_timeout();
 
-       ret = tracker_get_power_lock_total(&prev_count);
+       ret = tracker_get_tick(TRACKER_TYPE_POWER_LOCK, &prev_count);
        if (ret != TRACKER_ERROR_NONE)
                _E("Failed to get total count of power lock(%d)", ret);