diff options
author | Kichan Kwon <k_c.kwon@samsung.com> | 2017-09-18 19:01:57 +0900 |
---|---|---|
committer | Kichan Kwon <k_c.kwon@samsung.com> | 2017-09-21 10:03:40 +0900 |
commit | 9080ba431deaaf411a1c7eab52277528006e3872 (patch) | |
tree | 7fa13a782c4ab496d80df5a482598fc4f835f6fb | |
parent | c882c3240e6a244a8e782ddf7ce9a1c8022f935d (diff) | |
download | libtracker-tizen.tar.gz libtracker-tizen.tar.bz2 libtracker-tizen.zip |
Set the minimum value of tracker_type_etizen_8.0_m2_releasetizen_7.0_m2_releasetizen_6.5.m2_releasetizen_6.0.m2_releasetizen_5.5.m2_releasesubmit/tizen_6.5/20211028.162501submit/tizen_6.0_hotfix/20201103.114805submit/tizen_6.0_hotfix/20201102.192505submit/tizen_6.0/20201029.205104submit/tizen_5.5_wearable_hotfix/20201026.184304submit/tizen_5.5_mobile_hotfix/20201026.185104submit/tizen_5.5/20191031.000004submit/tizen_5.0/20181101.000004submit/tizen/20170921.012444accepted/tizen/unified/20170922.065131accepted/tizen/8.0/unified/20231005.093816accepted/tizen/7.0/unified/hotfix/20221116.105743accepted/tizen/7.0/unified/20221110.063012accepted/tizen/6.5/unified/20211028.115150accepted/tizen/6.0/unified/hotfix/20201103.001209accepted/tizen/6.0/unified/20201030.115643accepted/tizen/5.5/unified/wearable/hotfix/20201027.112635accepted/tizen/5.5/unified/mobile/hotfix/20201027.085949accepted/tizen/5.5/unified/20191031.022032accepted/tizen/5.0/unified/20181102.020825tizen_8.0tizen_7.0_hotfixtizen_7.0tizen_6.5tizen_6.0_hotfixtizen_6.0tizen_5.5_wearable_hotfixtizen_5.5_tvtizen_5.5_mobile_hotfixtizen_5.5tizen_5.0tizenaccepted/tizen_unifiedaccepted/tizen_8.0_unifiedaccepted/tizen_7.0_unified_hotfixaccepted/tizen_7.0_unifiedaccepted/tizen_6.5_unifiedaccepted/tizen_6.0_unified_hotfixaccepted/tizen_6.0_unifiedaccepted/tizen_5.5_unified_wearable_hotfixaccepted/tizen_5.5_unified_mobile_hotfixaccepted/tizen_5.5_unifiedaccepted/tizen_5.0_unified
Change-Id: I9ee780ff0f5297922b5469cb78804df1ff38942f
Signed-off-by: Kichan Kwon <k_c.kwon@samsung.com>
-rw-r--r-- | include/tracker.h | 1 | ||||
-rw-r--r-- | src/tracker.c | 4 |
2 files changed, 3 insertions, 2 deletions
diff --git a/include/tracker.h b/include/tracker.h index a9e2519..8181e68 100644 --- a/include/tracker.h +++ b/include/tracker.h @@ -53,6 +53,7 @@ typedef enum { } tracker_service_e; typedef enum { + TRACKER_TYPE_INVALID = -1, TRACKER_TYPE_POWER_LOCK = 0, TRACKER_TYPE_MAX } tracker_type_e; diff --git a/src/tracker.c b/src/tracker.c index 4b34711..8f55549 100644 --- a/src/tracker.c +++ b/src/tracker.c @@ -24,7 +24,7 @@ API int tracker_get_ref_counter(tracker_type_e type, int *cnt) { int ref; - if (type < 0 || type >= TRACKER_TYPE_MAX || !trackers[type]) { + if (type <= TRACKER_TYPE_INVALID || type >= TRACKER_TYPE_MAX || !trackers[type]) { _E("Try to access not existed tracker %d", type); return TRACKER_ERROR_INVALID_PARAMETER; } @@ -43,7 +43,7 @@ API int tracker_get_tick(tracker_type_e type, int *cnt) { int count; - if (type < 0 || type >= TRACKER_TYPE_MAX || !trackers[type]) { + if (type <= TRACKER_TYPE_INVALID || type >= TRACKER_TYPE_MAX || !trackers[type]) { _E("Try to access not existed tracker %d", type); return TRACKER_ERROR_INVALID_PARAMETER; } |