summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authortaemin.yeom <taemin.yeom@samsung.com>2021-12-14 11:20:56 +0900
committertaemin.yeom <taemin.yeom@samsung.com>2021-12-14 11:20:56 +0900
commit17fc4bc13d80b615dd2c9caef4c8f816587c259b (patch)
tree7b00a469f5a46f400d371d7e7061c548097e86e7
parenteb6cc3237e6ec7061b4fffd80a5cc7f2973866fa (diff)
downloadsensor-17fc4bc13d80b615dd2c9caef4c8f816587c259b.tar.gz
sensor-17fc4bc13d80b615dd2c9caef4c8f816587c259b.tar.bz2
sensor-17fc4bc13d80b615dd2c9caef4c8f816587c259b.zip
Change internal API argument
-sensor_util_set_attribute_int -sensor_util_get_attribute_int Change-Id: I1deb237b5b48ad900c868f1983c8bf3e31a1e5b7 Signed-off-by: taemin.yeom <taemin.yeom@samsung.com>
-rw-r--r--include/sensor-internal.h4
-rw-r--r--src/sensor-internal.cpp4
2 files changed, 4 insertions, 4 deletions
diff --git a/include/sensor-internal.h b/include/sensor-internal.h
index 587ca7c..650529a 100644
--- a/include/sensor-internal.h
+++ b/include/sensor-internal.h
@@ -41,7 +41,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
@@ -54,7 +54,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 <sensor.h>
#include <sensor_internal.h>
-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;