From: taemin.yeom Date: Tue, 14 Dec 2021 02:20:56 +0000 (+0900) Subject: Change internal API argument X-Git-Tag: submit/tizen_6.5/20211217.062158~1 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=42d240b0c1139a22f4b0a16a7df3c0c99031578e;p=platform%2Fcore%2Fapi%2Fsensor.git Change internal API argument -sensor_util_set_attribute_int -sensor_util_get_attribute_int Change-Id: I1deb237b5b48ad900c868f1983c8bf3e31a1e5b7 Signed-off-by: taemin.yeom --- diff --git a/include/sensor-internal.h b/include/sensor-internal.h index 14d553c..3c8901f 100644 --- a/include/sensor-internal.h +++ b/include/sensor-internal.h @@ -37,7 +37,7 @@ typedef enum { * @retval -EINVAL Invalid parameter * @retval -EPERM Operation not permitted */ -int sensor_util_set_attribute_int(sensor_type_e type, sensor_attribute_internal_e attr, int value); +int sensor_util_set_attribute_int(sensor_type_e type, sensor_attribute_e attr, int value); /** * @brief Get the attribute to a connected sensor @@ -50,7 +50,7 @@ int sensor_util_set_attribute_int(sensor_type_e type, sensor_attribute_internal_ * @retval -EINVAL Invalid parameter * @retval -EPERM Operation not permitted */ -int sensor_util_get_attribute_int(sensor_type_e type, sensor_attribute_internal_e attr, int *value); +int sensor_util_get_attribute_int(sensor_type_e type, sensor_attribute_e attr, int *value); #ifdef __cplusplus } diff --git a/src/sensor-internal.cpp b/src/sensor-internal.cpp index 11e1356..514b95f 100644 --- a/src/sensor-internal.cpp +++ b/src/sensor-internal.cpp @@ -20,7 +20,7 @@ #include #include -int sensor_util_set_attribute_int(sensor_type_e type, sensor_attribute_internal_e attr, int value) +int sensor_util_set_attribute_int(sensor_type_e type, sensor_attribute_e attr, int value) { sensor_t sensor; int ret = 0; @@ -48,7 +48,7 @@ int sensor_util_set_attribute_int(sensor_type_e type, sensor_attribute_internal_ return 0; } -int sensor_util_get_attribute_int(sensor_type_e type, sensor_attribute_internal_e attr, int *value) +int sensor_util_get_attribute_int(sensor_type_e type, sensor_attribute_e attr, int *value) { if (!value) return -EINVAL;