diff options
author | Abhay Agarwal <ay.agarwal@samsung.com> | 2021-01-28 15:19:01 +0530 |
---|---|---|
committer | Abhay Agarwal <ay.agarwal@samsung.com> | 2021-01-28 15:28:55 +0530 |
commit | 26cb7eb9e732747ad85af8cbf74765edc30e8c54 (patch) | |
tree | ab3db2de4398c1e45548fc20e51ed3b022fb63c6 /include | |
parent | 057d14d70ba706358570d899b81a1da3e2bd0edd (diff) | |
download | user-awareness-26cb7eb9e732747ad85af8cbf74765edc30e8c54.tar.gz user-awareness-26cb7eb9e732747ad85af8cbf74765edc30e8c54.tar.bz2 user-awareness-26cb7eb9e732747ad85af8cbf74765edc30e8c54.zip |
Rename utility functions of sensor
Change-Id: I54eb9172bc119a0fbcc103cf7096bd82f0cf0e64
Signed-off-by: Abhay Agarwal <ay.agarwal@samsung.com>
Diffstat (limited to 'include')
-rwxr-xr-x | include/user-awareness-private.h | 2 | ||||
-rwxr-xr-x | include/user-awareness-util.h | 4 | ||||
-rwxr-xr-x | include/user-awareness.h | 50 |
3 files changed, 6 insertions, 50 deletions
diff --git a/include/user-awareness-private.h b/include/user-awareness-private.h index 0cff468..966d847 100755 --- a/include/user-awareness-private.h +++ b/include/user-awareness-private.h @@ -239,7 +239,7 @@ typedef struct { ua_sensor_h handle; /**< Sensor handle */ ua_sensor_e bitmask; /**< Sensor bitmask */ unsigned long long timestamp; /**< Timestamp */ - int accuracy; /**< Accuracty from sensor device */ + int accuracy; /**< Accuracy from sensor device */ int count; /**< How many sensor data included */ double *values; /**< Sensor data */ } ua_sensor_info_s; diff --git a/include/user-awareness-util.h b/include/user-awareness-util.h index effe1d0..79281cd 100755 --- a/include/user-awareness-util.h +++ b/include/user-awareness-util.h @@ -237,7 +237,7 @@ ua_sensor_info_s* _uam_to_ua_sensor_info(uam_sensor_info_s *info); * @post * */ -int ua_sensor_get_by_sensor_info( +int _ua_sensor_get_by_sensor_info( ua_sensor_info_s *sensor_info, ua_sensor_h * sensor_handle); @@ -262,7 +262,7 @@ int ua_sensor_get_by_sensor_info( * @post * */ -GSList *ua_sensor_get_sensor_handle_list( +GSList *_ua_sensor_get_sensor_handle_list( unsigned int sensor_bitmask); /** diff --git a/include/user-awareness.h b/include/user-awareness.h index 30654a2..fee1e7b 100755 --- a/include/user-awareness.h +++ b/include/user-awareness.h @@ -2174,11 +2174,11 @@ int ua_sensor_get_timestamp( /** * @ingroup CAPI_NETWORK_UA_MODULE - * @brief Gets sensor's bitmask. + * @brief Gets sensor's type. * @since_tizen 6.5 * * @param[in] sensor_handle The sensor handle - * @param[out] bitmask The sensor's bitmask. + * @param[out] type The sensor's type. * * @return 0 on success, otherwise a negative error value * @retval #UA_ERROR_NONE Successful @@ -2191,51 +2191,7 @@ int ua_sensor_get_timestamp( */ int ua_sensor_get_type( ua_sensor_h sensor_handle, - ua_sensor_e *bitmask); - -/** - * @ingroup CAPI_NETWORK_UA_MODULE - * @brief Gets sensor's information values count. - * @since_tizen 6.5 - * - * @param[in] sensor_handle The sensor handle - * @param[out] info_count The sensor's information count. - * - * @return 0 on success, otherwise a negative error value - * @retval #UA_ERROR_NONE Successful - * @retval #UA_ERROR_INVALID_PARAMETER Invalid parameter - * - * @exception - * @pre - * @post - * - */ -int ua_sensor_get_info_count( - ua_sensor_h sensor_handle, - int *info_count); - -/** - * @ingroup CAPI_NETWORK_UA_MODULE - * @brief Gets sensor's information values. - * @since_tizen 6.5 - * - * @remarks The @a info_values should not be released. - * @remarks The returned value is available until sensor_handle is released. - * - * @param[in] sensor_handle The sensor handle - * @param[out] info_values The sensor's information values. - * - * @return 0 on success, otherwise a negative error value - * @retval #UA_ERROR_NONE Successful - * @retval #UA_ERROR_INVALID_PARAMETER Invalid parameter - * - * @exception - * @pre - * @post - * - */ -int ua_sensor_get_info_values( - ua_sensor_h sensor_handle, GSList **info_values); + ua_sensor_e *type); /** * @} |