Change internal API argument 61/267961/2
authortaemin.yeom <taemin.yeom@samsung.com>
Tue, 14 Dec 2021 02:20:56 +0000 (11:20 +0900)
committerHyotaek Shim <hyotaek.shim@samsung.com>
Tue, 14 Dec 2021 03:44:20 +0000 (03:44 +0000)
-sensor_util_set_attribute_int
-sensor_util_get_attribute_int

Change-Id: I1deb237b5b48ad900c868f1983c8bf3e31a1e5b7
Signed-off-by: taemin.yeom <taemin.yeom@samsung.com>
include/sensor-internal.h
src/sensor-internal.cpp

index 14d553cb0020dc2c8f0d75140b988171ad3cf602..3c8901f4732e14e7885377e1b6e3a750a45d8aac 100644 (file)
@@ -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
 }
index 11e1356fb934cb8edc43b8da47aa746364965f6a..514b95ff5833e71fb877806d469564db21563d17 100644 (file)
@@ -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;