diff options
author | Abhay Agarwal <ay.agarwal@samsung.com> | 2019-10-11 15:26:42 +0900 |
---|---|---|
committer | saerome.kim <saerome.kim@samsung.com> | 2019-10-11 16:15:32 +0900 |
commit | b99c4dab74f0c79ec17612db0fd3035c05f5c4e1 (patch) | |
tree | ac45350872c33c4d127fb56d922d768ab146f7d8 /include | |
parent | 66f04b2e121961f0d485575d23d0326ff591f57c (diff) | |
download | user-awareness-b99c4dab74f0c79ec17612db0fd3035c05f5c4e1.tar.gz user-awareness-b99c4dab74f0c79ec17612db0fd3035c05f5c4e1.tar.bz2 user-awareness-b99c4dab74f0c79ec17612db0fd3035c05f5c4e1.zip |
Add API to get service detection thresholds
Change-Id: Ib34bbba2555157823d8e098faae08c5f9d4e69df
Signed-off-by: Abhay Agarwal <ay.agarwal@samsung.com>
Diffstat (limited to 'include')
-rw-r--r-- | include/user-awareness.h | 48 |
1 files changed, 48 insertions, 0 deletions
diff --git a/include/user-awareness.h b/include/user-awareness.h index c4a1394..a71dd6e 100644 --- a/include/user-awareness.h +++ b/include/user-awareness.h @@ -1594,6 +1594,28 @@ int ua_service_add( /** * @ingroup CAPI_NETWORK_UA_MODULE + * @brief Adds the service. + * @since_tizen 5.5 + * + * @param[in] service_handle The service handle + * + * @return 0 on success, otherwise a negative error value + * @retval #UA_ERROR_NONE Successful + * @retval #UA_ERROR_INVALID_PARAMETER Invalid parameter + * @retval #UA_ERROR_OPERATION_FAILED Operation failed + * + * @exception + * @pre + * @post + * + * @see ua_service_create() + * @see ua_service_remove() + */ +int ua_service_update( + ua_service_h service_handle); + +/** + * @ingroup CAPI_NETWORK_UA_MODULE * @brief Removes the service. * @since_tizen 5.5 * @@ -1689,6 +1711,32 @@ int ua_service_set_detection_threshold( /** * @ingroup CAPI_NETWORK_UA_MODULE + * @brief Gets detection threshold info for service handle. + * @since_tizen 5.5 + * + * @remarks You must release @a name using g_free(). + * + * @param[in] service_handle The service handle + * @param[in] presence_threshold The service presence threshold information + * @param[in] absence_threshold The service absence threshold information + * + * @return 0 on success, otherwise a negative error value + * @retval #UA_ERROR_NONE Successful + * @retval #UA_ERROR_INVALID_PARAMETER Invalid parameter + * + * @exception + * @pre + * @post + * + * @see ua_service_set_detection_threshold() + */ +int ua_service_get_detection_threshold( + ua_service_h service_handle, + unsigned int *presence_threshold, + unsigned int *absence_threshold); + +/** + * @ingroup CAPI_NETWORK_UA_MODULE * @brief Sets name info for service handle. * @since_tizen 5.5 * |