ua_service_added_cb foreach_cb,
void *user_data);
+/**
+ * @ingroup CAPI_NETWORK_UA_MODULE
+ * @brief Gets default service handle.
+ * @since_tizen 6.5
+ *
+ * @remarks The @a service_handle is managed by the platform and will be released
+ * when #ua_deinitialize() is called.
+ *
+ * @param[out] 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
+ * @retval #UA_ERROR_NOT_INITIALIZED Not initialized yet
+ *
+ * @exception
+ * @pre
+ * @post
+ *
+ * @see ua_service_get_name()
+ * @see ua_service_set_name()
+ */
+int ua_get_default_service(
+ ua_service_h * service_handle);
+
+/**
+ * @ingroup CAPI_NETWORK_UA_MODULE
+ * @brief Gets service handle by service name.
+ * @since_tizen 6.5
+ *
+ * @remarks The @a service_handle should be destroyed by using #ua_service_destroy().
+ *
+ * @param[in] name The service name information
+ * @param[out] 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
+ * @retval #UA_ERROR_NOT_INITIALIZED Not initialized yet
+ *
+ * @exception
+ * @pre
+ * @post
+ *
+ * @see ua_service_create()
+ */
+int ua_get_service_by_name(
+ const char *name,
+ ua_service_h *service_handle);
+
/**
* @ingroup CAPI_NETWORK_UA_MODULE
* @brief Creates the ua monitor's handle.
int ua_service_remove(
ua_service_h service_handle);
-/**
- * @ingroup CAPI_NETWORK_UA_MODULE
- * @brief Gets default service handle.
- * @since_tizen 6.5
- *
- * @remarks The @a service_handle is managed by the platform and will be released
- * when #ua_deinitialize() is called.
- *
- * @param[out] 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
- * @retval #UA_ERROR_NOT_INITIALIZED Not initialized yet
- *
- * @exception
- * @pre
- * @post
- *
- * @see ua_service_get_name()
- * @see ua_service_set_name()
- */
-int ua_service_get_default_service(
- ua_service_h * service_handle);
-
-/**
- * @ingroup CAPI_NETWORK_UA_MODULE
- * @brief Gets service handle by service name.
- * @since_tizen 6.5
- *
- * @remarks The @a service_handle should be destroyed by using #ua_service_destroy().
- *
- * @param[in] name The service name information
- * @param[out] 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
- * @retval #UA_ERROR_NOT_INITIALIZED Not initialized yet
- *
- * @exception
- * @pre
- * @post
- *
- * @see ua_service_create()
- */
-int ua_get_service_by_name(
- const char *name,
- ua_service_h *service_handle);
-
/**
* @ingroup CAPI_NETWORK_UA_MODULE
* @brief Gets name info for service handle.
* @ingroup CAPI_NETWORK_UA_MODULE
* @brief Gets detection threshold for service handle.
* @since_tizen 6.5
+ * @privlevel public
+ * @privilege %http://tizen.org/privilege/userawareness
*
* @param[in] service_handle The service handle
* @param[out] presence_threshold The service presence threshold information
*
* @return 0 on success, otherwise a negative error value
* @retval #UA_ERROR_NONE Successful
+ * @retval #UA_ERROR_PERMISSION_DENIED Permission Denied
* @retval #UA_ERROR_INVALID_PARAMETER Invalid parameter
* @retval #UA_ERROR_NOT_INITIALIZED Not initialized yet
*
* @ingroup CAPI_NETWORK_UA_MODULE
* @brief Sets device discriminant for a specific service.
* @since_tizen 6.5
+ * @privlevel public
+ * @privilege %http://tizen.org/privilege/userawareness
*
* @param[in] service_handle The service handle.
* @param[in] device_handle The device handle.
*
* @return 0 on success, otherwise a negative error value
* @retval #UA_ERROR_NONE Successful
+ * @retval #UA_ERROR_PERMISSION_DENIED Permission Denied
* @retval #UA_ERROR_INVALID_PARAMETER Invalid parameter
* @retval #UA_ERROR_NOT_INITIALIZED Not initialized yet
*
* @ingroup CAPI_NETWORK_UA_MODULE
* @brief Sets device's operating system info.
* @since_tizen 6.5
+ * @privlevel public
+ * @privilege %http://tizen.org/privilege/userawareness
*
* @param[in] device_handle The device handle
* @param[in] os The device's operating system.
*
* @return 0 on success, otherwise a negative error value
* @retval #UA_ERROR_NONE Successful
+ * @retval #UA_ERROR_PERMISSION_DENIED Permission Denied
* @retval #UA_ERROR_INVALID_PARAMETER Invalid parameter
* @retval #UA_ERROR_NOT_INITIALIZED Not initialized yet
*
* @ingroup CAPI_NETWORK_UA_MODULE
* @brief Sets device's Wi-Fi BSSID.
* @since_tizen 6.5
+ * @privlevel public
+ * @privilege %http://tizen.org/privilege/userawareness
*
* @param[in] device_handle The device handle
* @param[in] bssid The device's Wi-Fi BSSID.
*
* @return 0 on success, otherwise a negative error value
* @retval #UA_ERROR_NONE Successful
+ * @retval #UA_ERROR_PERMISSION_DENIED Permission Denied
* @retval #UA_ERROR_INVALID_PARAMETER Invalid parameter
* @retval #UA_ERROR_NOT_INITIALIZED Not initialized yet
*
* @ingroup CAPI_NETWORK_UA_MODULE
* @brief Sets device's Wi-Fi IPv4 address.
* @since_tizen 6.5
+ * @privlevel public
+ * @privilege %http://tizen.org/privilege/userawareness
*
* @param[in] device_handle The device handle
* @param[in] ipv4_address The device's wifi IPv4 address.
*
* @return 0 on success, otherwise a negative error value
* @retval #UA_ERROR_NONE Successful
+ * @retval #UA_ERROR_PERMISSION_DENIED Permission Denied
* @retval #UA_ERROR_INVALID_PARAMETER Invalid parameter
* @retval #UA_ERROR_NOT_INITIALIZED Not initialized yet
*
g_service_h = NULL;
}
- ua_service_get_default_service(&g_service_h);
+ ua_get_default_service(&g_service_h);
}
ret = ua_service_get_name(g_service_h, &name);
return RET_SUCCESS;
}
-static int run_ua_service_get_default_service(MManager *mm, struct menu_data *menu)
+static int run_ua_get_default_service(MManager *mm, struct menu_data *menu)
{
int ret = UA_ERROR_NONE;
- msg("ua_service_get_default_service");
+ msg("ua_get_default_service");
if (g_service_h) {
ua_service_destroy(g_service_h);
g_service_h = NULL;
}
- ret = ua_service_get_default_service(&g_service_h);
+ ret = ua_get_default_service(&g_service_h);
if (UA_ERROR_NONE == ret)
__update_service_info();
- msg(" - ua_service_get_default_service() ret: [0x%X] [%s]",
+ msg(" - ua_get_default_service() ret: [0x%X] [%s]",
ret, uat_get_error_str(ret));
return RET_SUCCESS;
NULL, run_ua_service_remove, NULL},
{ "6", "ua_service_destroy",
NULL, run_ua_service_destroy, NULL},
- { "7", "ua_service_get_default_service",
- NULL, run_ua_service_get_default_service, NULL },
+ { "7", "ua_get_default_service",
+ NULL, run_ua_get_default_service, NULL },
{ "8", "ua_get_service_by_name",
menu_ua_get_service_by_name, NULL, NULL },
{ "9", ANSI_COLOR_LIGHTMAGENTA "ua_foreach_services" ANSI_COLOR_NORMAL,