summaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorAbhay Agarwal <ay.agarwal@samsung.com>2019-10-01 19:09:47 +0900
committersaerome.kim <saerome.kim@samsung.com>2019-10-01 21:39:06 +0900
commit467a1e77311cfdd613032a9d3d3ebc8ec08e7134 (patch)
treecf7de0afb6dfa80063cf362c022e6c6738b1b9f9 /include
parent0ef75a979e22f14b25a342d4b41c60740701df32 (diff)
downloaduser-awareness-467a1e77311cfdd613032a9d3d3ebc8ec08e7134.tar.gz
user-awareness-467a1e77311cfdd613032a9d3d3ebc8ec08e7134.tar.bz2
user-awareness-467a1e77311cfdd613032a9d3d3ebc8ec08e7134.zip
Add API set to get sensor information from sensor handle
This commit add an API set which can be used by the application to get the detected sensor information of the sensor using sensor handle. Change-Id: I10dec7bd427ab5d616bb6860f68e4d318d1234fe Signed-off-by: Abhay Agarwal <ay.agarwal@samsung.com>
Diffstat (limited to 'include')
-rw-r--r--include/user-awareness.h62
1 files changed, 62 insertions, 0 deletions
diff --git a/include/user-awareness.h b/include/user-awareness.h
index ff276fe..638b3b8 100644
--- a/include/user-awareness.h
+++ b/include/user-awareness.h
@@ -2681,6 +2681,68 @@ int ua_device_foreach_added_by_user(
void *user_data);
/**
+ * @ingroup CAPI_NETWORK_UA_MODULE
+ * @brief Gets sensor's timestamp.
+ * @since_tizen 5.5
+ *
+ * @param[in] sensor_handle The sensor handle
+ * @param[out] timestamp The sensor's timestamp.
+ *
+ * @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_timestamp(
+ ua_sensor_h sensor_handle,
+ long int *timestamp);
+
+/**
+ * @ingroup CAPI_NETWORK_UA_MODULE
+ * @brief Gets sensor's information values count.
+ * @since_tizen 5.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 5.5
+ *
+ * @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
+ *
+ */
+GSList *ua_sensor_get_info_values(
+ ua_sensor_h sensor_handle);
+
+/**
* @}
*/