* @retval #WIFI_AWARE_ERROR_NONE
* @retval #WIFI_AWARE_ERROR_INVALID_PARAMETER
* @retval #WIFI_AWARE_ERROR_OUT_OF_MEMORY
+ * @retval #WIFI_AWARE_ERROR_NOT_INITIALIZED
* @see wifi_aware_publish_destroy()
*/
int wifi_aware_publish_create(wifi_aware_publish_h *publish);
* @return 0 on success, otherwise a negative error value
* @retval #WIFI_AWARE_ERROR_NONE
* @retval #WIFI_AWARE_ERROR_INVALID_PARAMETER
+ * @retval #WIFI_AWARE_ERROR_NOT_INITIALIZED
* @see wifi_aware_publish_create()
*/
int wifi_aware_publish_destroy(wifi_aware_publish_h publish);
* @retval #WIFI_AWARE_ERROR_NONE
* @retval #WIFI_AWARE_ERROR_INVALID_PARAMETER
* @retval #WIFI_AWARE_ERROR_OUT_OF_MEMORY
+ * @retval #WIFI_AWARE_ERROR_NOT_INITIALIZED
* @see wifi_aware_subscribe_destroy()
*/
int wifi_aware_subscribe_create(wifi_aware_subscribe_h *subscribe);
* @return 0 on success, otherwise a negative error value
* @retval #WIFI_AWARE_ERROR_NONE
* @retval #WIFI_AWARE_ERROR_INVALID_PARAMETER
+ * @retval #WIFI_AWARE_ERROR_NOT_INITIALIZED
* @see wifi_aware_subscribe_create()
*/
int wifi_aware_subscribe_destroy(wifi_aware_subscribe_h subscribe);
* @return 0 on success, otherwise a negative error value
* @retval #WIFI_AWARE_ERROR_NONE
* @retval #WIFI_AWARE_ERROR_INVALID_PARAMETER
+ * @retval #WIFI_AWARE_ERROR_NOT_INITIALIZED
* @see wifi_aware_publish_create()
*/
int wifi_aware_publish_set_ttl(wifi_aware_publish_h publish, unsigned short ttl);
* @return 0 on success, otherwise a negative error value
* @retval #WIFI_AWARE_ERROR_NONE
* @retval #WIFI_AWARE_ERROR_INVALID_PARAMETER
+ * @retval #WIFI_AWARE_ERROR_NOT_INITIALIZED
* @see wifi_aware_publish_create()
*/
int wifi_aware_publish_set_type(wifi_aware_publish_h publish, wifi_aware_publish_type_e publish_type);
* @return 0 on success, otherwise a negative error value
* @retval #WIFI_AWARE_ERROR_NONE
* @retval #WIFI_AWARE_ERROR_INVALID_PARAMETER
+ * @retval #WIFI_AWARE_ERROR_NOT_INITIALIZED
* @see wifi_aware_publish_create()
*/
int wifi_aware_publish_set_service_name(wifi_aware_publish_h publish, const char *service_name);
* @param[in] len The length of service specific information
* @return 0 on success, otherwise a negative error value
* @retval #WIFI_AWARE_ERROR_NONE
+ * @retval #WIFI_AWARE_ERROR_NOT_INITIALIZED
* @see wifi_aware_publish_create()
*/
int wifi_aware_publish_set_service_specific_info(wifi_aware_publish_h publish, const unsigned char *service_specific_info, size_t len);
* @remark The match filter is used to decide whether accepting a subscribe request or not.
* @return 0 on success, otherwise a negative error value
* @retval #WIFI_AWARE_ERROR_NONE
+ * @retval #WIFI_AWARE_ERROR_NOT_INITIALIZED
* @see wifi_aware_publish_create()
*/
int wifi_aware_publish_set_match_filter(wifi_aware_publish_h publish, const unsigned char *match_filter, size_t len);
* otherwise @c false if ranging is disabled.
* @return 0 on success, otherwise a negative error value
* @retval #WIFI_AWARE_ERROR_NONE
+ * @retval #WIFI_AWARE_ERROR_NOT_INITIALIZED
* @see wifi_aware_publish_create()
*/
int wifi_aware_publish_enable_ranging(wifi_aware_publish_h publish, bool enable);
* @return 0 on success, otherwise a negative error value
* @retval #WIFI_AWARE_ERROR_NONE
* @retval #WIFI_AWARE_ERROR_INVALID_PARAMETER
+ * @retval #WIFI_AWARE_ERROR_NOT_INITIALIZED
* @see wifi_aware_subscrbie_create()
*/
int wifi_aware_subscribe_set_ttl(wifi_aware_subscribe_h subscribe, unsigned short ttl);
* @return 0 on success, otherwise a negative error value
* @retval #WIFI_AWARE_ERROR_NONE
* @retval #WIFI_AWARE_ERROR_INVALID_PARAMETER
+ * @retval #WIFI_AWARE_ERROR_NOT_INITIALIZED
* @see wifi_aware_subscrbie_create()
*/
int wifi_aware_subscribe_set_type(wifi_aware_subscribe_h subscribe, wifi_aware_subscribe_type_e subscribe_type);
* @return 0 on success, otherwise a negative error value
* @retval #WIFI_AWARE_ERROR_NONE
* @retval #WIFI_AWARE_ERROR_INVALID_PARAMETER
+ * @retval #WIFI_AWARE_ERROR_NOT_INITIALIZED
* @see wifi_aware_subscrbie_create()
*/
int wifi_aware_subscribe_set_service_name(wifi_aware_subscribe_h subscribe, const char *service_name);
* @return 0 on success, otherwise a negative error value
* @retval #WIFI_AWARE_ERROR_NONE
* @retval #WIFI_AWARE_ERROR_INVALID_PARAMETER
+ * @retval #WIFI_AWARE_ERROR_NOT_INITIALIZED
* @see wifi_aware_subscrbie_create()
*/
int wifi_aware_subscribe_set_service_specific_info(wifi_aware_subscribe_h subscribe, const unsigned char *service_specific_info, size_t len);
* @return 0 on success, otherwise a negative error value
* @retval #WIFI_AWARE_ERROR_NONE
* @retval #WIFI_AWARE_ERROR_INVALID_PARAMETER
+ * @retval #WIFI_AWARE_ERROR_NOT_INITIALIZED
* @see wifi_aware_subscrbie_create()
*/
int wifi_aware_subscribe_set_match_filter(wifi_aware_subscribe_h subscribe, const unsigned char *match_filter, size_t len);
* @return 0 on success, otherwise a negative error value
* @retval #WIFI_AWARE_ERROR_NONE
* @retval #WIFI_AWARE_ERROR_INVALID_PARAMETER
+ * @retval #WIFI_AWARE_ERROR_NOT_INITIALIZED
* @see wifi_aware_subscrbie_create()
*/
int wifi_aware_subscribe_set_max_distance(wifi_aware_subscribe_h subscribe, int distance);
* @return 0 on success, otherwise a negative error value
* @retval #WIFI_AWARE_ERROR_NONE
* @retval #WIFI_AWARE_ERROR_INVALID_PARAMETER
+ * @retval #WIFI_AWARE_ERROR_NOT_INITIALIZED
* @see wifi_aware_subscrbie_create()
*/
int wifi_aware_subscribe_set_min_distance(wifi_aware_subscribe_h subscribe, int distance);
* @param[in] user_data The user data passed to the callback function
* @return 0 on success, otherwise a negative error value
* @retval #WIFI_AWARE_ERROR_NONE
- * @retval #WIFI_AWARE_ERROR_NOT_INITIALIZED
* @retval #WIFI_AWARE_ERROR_ALREADY_ENABLED
* @retval #WIFI_AWARE_ERROR_OUT_OF_MEMORY
* @retval #WIFI_AWARE_ERROR_OPERATION_FAILED
* @retval #WIFI_AWARE_ERROR_PERMISSION_DENIED
+ * @retval #WIFI_AWARE_ERROR_NOT_INITIALIZED
* @see wifi_aware_disable()
*/
int wifi_aware_enable(wifi_aware_enabled_cb callback, void *user_data);
* @privilege %http://tizen.org/privilege/network.set
* @return 0 on success, otherwise a negative error value
* @retval #WIFI_AWARE_ERROR_NONE
- * @retval #WIFI_AWARE_ERROR_NOT_INITIALIZED
* @retval #WIFI_AWARE_ERROR_INVALID_OPERATION
* @retval #WIFI_AWARE_ERROR_OPERATION_FAILED
* @retval #WIFI_AWARE_ERROR_PERMISSION_DENIED
+ * @retval #WIFI_AWARE_ERROR_NOT_INITIALIZED
* @see wifi_aware_enable()
*/
int wifi_aware_disable();
* @param[out] session The Wi-Fi Aware Session handle that is newly created on success
* @return 0 on success, otherwise a negative error value
* @retval #WIFI_AWARE_ERROR_NONE
- * @retval #WIFI_AWARE_ERROR_NOT_INITIALIZED
* @retval #WIFI_AWARE_ERROR_OUT_OF_MEMORY
* @retval #WIFI_AWARE_ERROR_INVALID_PARAMETER
+ * @retval #WIFI_AWARE_ERROR_NOT_INITIALIZED
* @see wifi_aware_session_destroy()
*/
int wifi_aware_session_create(wifi_aware_session_type_e session_type, wifi_aware_session_h *session);
* @param[in] session The Wi-Fi Aware Session handle
* @return 0 on success, otherwise a negative error value
* @retval #WIFI_AWARE_ERROR_NONE
- * @retval #WIFI_AWARE_ERROR_NOT_INITIALIZED
* @retval #WIFI_AWARE_ERROR_INVALID_PARAMETER
+ * @retval #WIFI_AWARE_ERROR_NOT_INITIALIZED
* @see wifi_aware_session_create()
*/
int wifi_aware_session_destroy(wifi_aware_session_h session);
* @param[in] user_data The user data to be passed to the callback function
* @return 0 on success, otherwise a negative error value
* @retval #WIFI_AWARE_ERROR_NONE
- * @retval #WIFI_AWARE_ERROR_NOT_INITIALIZED
* @retval #WIFI_AWARE_ERROR_INVALID_PARAMETER
+ * @retval #WIFI_AWARE_ERROR_NOT_INITIALIZED
* @see wifi_aware_session_unset_terminated_cb()
*/
int wifi_aware_session_set_terminated_cb(wifi_aware_session_h session,
* @param[in] session The Wi-Fi Aware Session
* @return 0 on success, otherwise a negative error value
* @retval #WIFI_AWARE_ERROR_NONE
- * @retval #WIFI_AWARE_ERROR_NOT_INITIALIZED
* @retval #WIFI_AWARE_ERROR_INVALID_PARAMETER
+ * @retval #WIFI_AWARE_ERROR_NOT_INITIALIZED
* @see wifi_aware_session_set_terminated_cb()
*/
int wifi_aware_session_unset_terminated_cb(wifi_aware_session_h session);
* @remark The function of the session, Publish or Subscribe, will be cancelled.
* @return 0 on success, otherwise a negative error value
* @retval #WIFI_AWARE_ERROR_NONE
- * @retval #WIFI_AWARE_ERROR_NOT_INITIALIZED
* @retval #WIFI_AWARE_ERROR_INVALID_PARAMETER
* @retval #WIFI_AWARE_ERROR_INVALID_OPERATION
* @retval #WIFI_AWARE_ERROR_OPERATION_FAILED
* @retval #WIFI_AWARE_ERROR_PERMISSION_DENIED
+ * @retval #WIFI_AWARE_ERROR_NOT_INITIALIZED
* @see wifi_aware_session_publish()
* @see wifi_aware_session_subscribe()
*/
* @param[in] user_data The user data passed to the callback function
* @return 0 on success, otherwise a negative error value
* @retval #WIFI_AWARE_ERROR_NONE
- * @retval #WIFI_AWARE_ERROR_NOT_INITIALIZED
* @retval #WIFI_AWARE_ERROR_INVALID_PARAMETER
* @retval #WIFI_AWARE_ERROR_INVALID_OPERATION
* @retval #WIFI_AWARE_ERROR_OPERATION_FAILED
* @retval #WIFI_AWARE_ERROR_PERMISSION_DENIED
+ * @retval #WIFI_AWARE_ERROR_NOT_INITIALIZED
* @see wifi_aware_session_stop()
*/
int wifi_aware_session_publish(wifi_aware_session_h session,
* @param[in] user_data The user data passed to the callback function
* @return 0 on success, otherwise a negative error value
* @retval #WIFI_AWARE_ERROR_NONE
- * @retval #WIFI_AWARE_ERROR_NOT_INITIALIZED
* @retval #WIFI_AWARE_ERROR_INVALID_PARAMETER
* @retval #WIFI_AWARE_ERROR_INVALID_OPERATION
* @retval #WIFI_AWARE_ERROR_OPERATION_FAILED
* @retval #WIFI_AWARE_ERROR_PERMISSION_DENIED
+ * @retval #WIFI_AWARE_ERROR_NOT_INITIALIZED
* @see wifi_aware_session_publish()
*/
int wifi_aware_session_update_publish(wifi_aware_session_h session,
* @param[in] user_data The user data passed to the callback function
* @return 0 on success, otherwise a negative error value
* @retval #WIFI_AWARE_ERROR_NONE
- * @retval #WIFI_AWARE_ERROR_NOT_INITIALIZED
* @retval #WIFI_AWARE_ERROR_INVALID_PARAMETER
* @retval #WIFI_AWARE_ERROR_INVALID_OPERATION
* @retval #WIFI_AWARE_ERROR_OPERATION_FAILED
* @retval #WIFI_AWARE_ERROR_PERMISSION_DENIED
+ * @retval #WIFI_AWARE_ERROR_NOT_INITIALIZED
* @see wifi_aware_session_stop()
*/
int wifi_aware_session_subscribe(wifi_aware_session_h,
* @param[in] user_data The user data passed to the callback function
* @return 0 on success, otherwise a negative error value
* @retval #WIFI_AWARE_ERROR_NONE
- * @retval #WIFI_AWARE_ERROR_NOT_INITIALIZED
* @retval #WIFI_AWARE_ERROR_INVALID_PARAMETER
* @retval #WIFI_AWARE_ERROR_INVALID_OPERATION
* @retval #WIFI_AWARE_ERROR_OPERATION_FAILED
* @retval #WIFI_AWARE_ERROR_PERMISSION_DENIED
+ * @retval #WIFI_AWARE_ERROR_NOT_INITIALIZED
* @see wifi_aware_session_subscribe()
*/
int wifi_aware_session_update_subscribe(wifi_aware_session_h session,
* @param[in] user_data The user data to be passed to the callback function
* @return 0 on success, otherwise a negative error value
* @retval #WIFI_AWARE_ERROR_NONE
- * @retval #WIFI_AWARE_ERROR_NOT_INITIALIZED
* @retval #WIFI_AWARE_ERROR_INVALID_PARAMETER
+ * @retval #WIFI_AWARE_ERROR_NOT_INITIALIZED
* @see wifi_aware_session_unset_service_discovered_cb()
*/
int wifi_aware_session_set_service_discovered_cb(wifi_aware_session_h session,
* @param[in] session The Wi-Fi Aware Session handle
* @return 0 on success, otherwise a negative error value
* @retval #WIFI_AWARE_ERROR_NONE
- * @retval #WIFI_AWARE_ERROR_NOT_INITIALIZED
* @retval #WIFI_AWARE_ERROR_INVALID_PARAMETER
+ * @retval #WIFI_AWARE_ERROR_NOT_INITIALIZED
* @see wifi_aware_session_set_service_discovered_cb()
*/
int wifi_aware_session_unset_service_discovered_cb(wifi_aware_session_h session);
* @param[in] user_data The user data passed to the callback function
* @return 0 on success, otherwise a negative error value
* @retval #WIFI_AWARE_ERROR_NONE
- * @retval #WIFI_AWARE_ERROR_NOT_INITIALIZED
* @retval #WIFI_AWARE_ERROR_INVALID_OPERATION
* @retval #WIFI_AWARE_ERROR_INVALID_PARAMETER
* @retval #WIFI_AWARE_ERROR_OUT_OF_MEMORY
* @retval #WIFI_AWARE_ERROR_OPERATION_FAILED
* @retval #WIFI_AWARE_ERROR_PERMISSION_DENIED
+ * @retval #WIFI_AWARE_ERROR_NOT_INITIALIZED
*/
int wifi_aware_session_send_message(
wifi_aware_session_h session,
* @return 0 on success, otherwise a negative error value
* @retval #WIFI_AWARE_ERROR_NONE
* @retval #WIFI_AWARE_ERROR_INVALID_PARAMETER
+ * @retval #WIFI_AWARE_ERROR_NOT_INITIALIZED
* @see wifi_aware_session_unset_message_received_cb()
*/
int wifi_aware_session_set_message_received_cb(wifi_aware_session_h session,
* @return 0 on success, otherwise a negative error value
* @retval #WIFI_AWARE_ERROR_NONE
* @retval #WIFI_AWARE_ERROR_INVALID_PARAMETER
+ * @retval #WIFI_AWARE_ERROR_NOT_INITIALIZED
* @see wifi_aware_session_set_message_received_cb()
*/
int wifi_aware_session_unset_message_received_cb(wifi_aware_session_h session);
* @remark The cloned Peer handle has to be freed by wifi_aware_peer_destroy()
* @return 0 on success, otherwise a negative error value
* @retval #WIFI_AWARE_ERROR_NONE
- * @retval #WIFI_AWARE_ERROR_NOT_INITIALIZED
* @retval #WIFI_AWARE_ERROR_INVALID_PARAMETER
* @retval #WIFI_AWARE_ERROR_OUT_OF_MEMORY
+ * @retval #WIFI_AWARE_ERROR_NOT_INITIALIZED
* @see wifi_aware_peer_destroy()
*/
int wifi_aware_peer_clone(wifi_aware_peer_h *cloned, wifi_aware_peer_h origin);
* @param[in] peer The Peer handle
* @return 0 on success, otherwise a negative error value
* @retval #WIFI_AWARE_ERROR_NONE
- * @retval #WIFI_AWARE_ERROR_NOT_INITIALIZED
* @retval #WIFI_AWARE_ERROR_INVALID_PARAMETER
+ * @retval #WIFI_AWARE_ERROR_NOT_INITIALIZED
* @see wifi_aware_peer_clone()
*/
int wifi_aware_peer_destroy(wifi_aware_peer_h peer);
* @param[out] mac The MAC address of the peer
* @return 0 on success, otherwise a negative error value
* @retval #WIFI_AWARE_ERROR_NONE
- * @retval #WIFI_AWARE_ERROR_NOT_INITIALIZED
* @retval #WIFI_AWARE_ERROR_INVALID_PARAMETER
* @retval #WIFI_AWARE_ERROR_OUT_OF_MEMORY
+ * @retval #WIFI_AWARE_ERROR_NOT_INITIALIZED
*/
int wifi_aware_peer_get_mac(wifi_aware_peer_h peer, unsigned char **mac);
* @param[out] data_path The Data Path handle
* @return 0 on success, otherwise a negative error value
* @retval #WIFI_AWARE_ERROR_NONE
- * @retval #WIFI_AWARE_ERROR_NOT_INITIALIZED
* @retval #WIFI_AWARE_ERROR_INVALID_PARAMETER
* @retval #WIFI_AWARE_ERROR_OUT_OF_MEMORY
+ * @retval #WIFI_AWARE_ERROR_NOT_INITIALIZED
* @see wifi_aware_data_path_destroy()
*/
int wifi_aware_data_path_create(wifi_aware_session_h session, wifi_aware_peer_h peer,
* @return 0 on success, otherwise a negative error value
* @retval #WIFI_AWARE_ERROR_NONE
* @retval #WIFI_AWARE_ERROR_INVALID_PARAMETER
+ * @retval #WIFI_AWARE_ERROR_NOT_INITIALIZED
* @see wifi_aware_data_path_create()
*/
int wifi_aware_data_path_set_security(wifi_aware_data_path_h data_path, wifi_aware_security_type_e security_type);
* @retval #WIFI_AWARE_ERROR_NONE
* @retval #WIFI_AWARE_ERROR_INVALID_PARAMETER
* @retval #WIFI_AWARE_ERROR_INVALID_OPERATION
+ * @retval #WIFI_AWARE_ERROR_NOT_INITIALIZED
* @see wifi_aware_data_path_create()
*/
int wifi_aware_data_path_set_psk(wifi_aware_data_path_h data_path, const char *key);
* @retval #WIFI_AWARE_ERROR_NONE
* @retval #WIFI_AWARE_ERROR_INVALID_PARAMETER
* @retval #WIFI_AWARE_ERROR_INVALID_OPERATION
+ * @retval #WIFI_AWARE_ERROR_NOT_INITIALIZED
* @see wifi_aware_data_path_create()
*/
int wifi_aware_data_path_set_pmk(wifi_aware_data_path_h data_path, const unsigned char *key);
* @return 0 on success, otherwise a negative error value
* @retval #WIFI_AWARE_ERROR_NONE
* @retval #WIFI_AWARE_ERROR_INVALID_PARAMETER
+ * @retval #WIFI_AWARE_ERROR_NOT_INITIALIZED
* @see wifi_aware_data_path_create()
*/
int wifi_aware_data_path_set_port(wifi_aware_data_path_h data_path, int port);
* @param[in] data_path The Data Path handle
* @return 0 on success, otherwise a negative error value
* @retval #WIFI_AWARE_ERROR_NONE
- * @retval #WIFI_AWARE_ERROR_NOT_INITIALIZED
* @retval #WIFI_AWARE_ERROR_INVALID_PARAMETER
+ * @retval #WIFI_AWARE_ERROR_NOT_INITIALIZED
* @see wifi_aware_data_path_create()
*/
int wifi_aware_data_path_destroy(wifi_aware_data_path_h data_path);
* @param[in] user_data The user data passed to the callback function
* @return 0 on success, otherwise a negative error value
* @retval #WIFI_AWARE_ERROR_NONE
- * @retval #WIFI_AWARE_ERROR_NOT_INITIALIZED
* @retval #WIFI_AWARE_ERROR_INVALID_OPERATION
* @retval #WIFI_AWARE_ERROR_INVALID_PARAMETER
* @retval #WIFI_AWARE_ERROR_OPERATION_FAILED
* @retval #WIFI_AWARE_ERROR_PERMISSION_DENIED
+ * @retval #WIFI_AWARE_ERROR_NOT_INITIALIZED
* @see wifi_aware_data_path_close()
*/
int wifi_aware_data_path_open(wifi_aware_data_path_h data_path,
* @privilege %http://tizen.org/privilege/network.set
* @param[in] data_path The Data Path handle
* @retval #WIFI_AWARE_ERROR_NONE
- * @retval #WIFI_AWARE_ERROR_NOT_INITIALIZED
* @retval #WIFI_AWARE_ERROR_INVALID_OPERATION
* @retval #WIFI_AWARE_ERROR_INVALID_PARAMETER
* @retval #WIFI_AWARE_ERROR_OPERATION_FAILED
* @retval #WIFI_AWARE_ERROR_PERMISSION_DENIED
+ * @retval #WIFI_AWARE_ERROR_NOT_INITIALIZED
* @see wifi_aware_data_path_open()
*/
int wifi_aware_data_path_close(wifi_aware_data_path_h data_path);
* @param[out] port The port
* @return 0 on success, otherwise a negative error value
* @retval #WIFI_AWARE_ERROR_NONE
- * @retval #WIFI_AWARE_ERROR_NOT_INITIALIZED
* @retval #WIFI_AWARE_ERROR_INVALID_PARAMETER
* @retval #WIFI_AWARE_ERROR_INVALID_OPERATION
+ * @retval #WIFI_AWARE_ERROR_NOT_INITIALIZED
*/
int wifi_aware_data_path_get_peer_port(wifi_aware_data_path_h data_path, int* port);
* @param[out] ipv6_address The IPv6 address of a peer
* @return 0 on success, otherwise a negative error value
* @retval #WIFI_AWARE_ERROR_NONE
- * @retval #WIFI_AWARE_ERROR_NOT_INITIALIZED
* @retval #WIFI_AWARE_ERROR_INVALID_PARAMETER
* @retval #WIFI_AWARE_ERROR_INVALID_OPERATION
+ * @retval #WIFI_AWARE_ERROR_NOT_INITIALIZED
*/
int wifi_aware_data_path_get_peer_ipv6_address(wifi_aware_data_path_h data_path, char **ipv6_address);
* @param[out] interface The interface name
* @return 0 on success, otherwise a negative error value
* @retval #WIFI_AWARE_ERROR_NONE
- * @retval #WIFI_AWARE_ERROR_NOT_INITIALIZED
* @retval #WIFI_AWARE_ERROR_INVALID_PARAMETER
* @retval #WIFI_AWARE_ERROR_INVALID_OPERATION
+ * @retval #WIFI_AWARE_ERROR_NOT_INITIALIZED
*/
int wifi_aware_data_path_get_interface(wifi_aware_data_path_h data_path, char **interface);
* @param[in] user_data The user data paseed to the callback function
* @return 0 on success, otherwise a negative error value
* @retval #WIFI_AWARE_ERROR_NONE
- * @retval #WIFI_AWARE_ERROR_NOT_INITIALIZED
* @retval #WIFI_AWARE_ERROR_INVALID_PARAMETER
+ * @retval #WIFI_AWARE_ERROR_NOT_INITIALIZED
* @see wifi_aware_data_path_unset_terminated_cb()
*/
int wifi_aware_data_path_set_terminated_cb(wifi_aware_data_path_h data_path, wifi_aware_data_path_terminated_cb callback, void *user_data);
* @param[in] data_path The Data Path handle
* @return 0 on success, otherwise a negative error value
* @retval #WIFI_AWARE_ERROR_NONE
- * @retval #WIFI_AWARE_ERROR_NOT_INITIALIZED
* @retval #WIFI_AWARE_ERROR_INVALID_PARAMETER
+ * @retval #WIFI_AWARE_ERROR_NOT_INITIALIZED
* @see wifi_aware_data_path_set_terminated_cb()
*/
int wifi_aware_data_path_unset_terminated_cb(wifi_aware_data_path_h data_path);
__WIFI_AWARE_FUNC_ENTER__;
CHECK_FEATURE_SUPPORTED(TIZEN_FEATURE_WIFI_AWARE);
+ RET_VAL_IF(!_wifi_aware_is_initialized(), WIFI_AWARE_ERROR_NOT_INITIALIZED, "Not initialized");
ret = _wifi_aware_publish_handle_create(publish);
RET_VAL_IF(ret != WIFI_AWARE_ERROR_NONE, ret, "Fail to create publish handle");
{
__WIFI_AWARE_FUNC_ENTER__;
CHECK_FEATURE_SUPPORTED(TIZEN_FEATURE_WIFI_AWARE);
+ RET_VAL_IF(!_wifi_aware_is_initialized(), WIFI_AWARE_ERROR_NOT_INITIALIZED, "Not initialized");
RET_VAL_IF(publish == NULL, WIFI_AWARE_ERROR_INVALID_PARAMETER, "wifi_aware_publish_h is NULL");
g_free(publish);
{
__WIFI_AWARE_FUNC_ENTER__;
CHECK_FEATURE_SUPPORTED(TIZEN_FEATURE_WIFI_AWARE);
+ RET_VAL_IF(!_wifi_aware_is_initialized(), WIFI_AWARE_ERROR_NOT_INITIALIZED, "Not initialized");
RET_VAL_IF(publish == NULL, WIFI_AWARE_ERROR_INVALID_PARAMETER, "wifi_aware_publish_h is NULL");
_wifi_aware_publish_set_ttl(publish, ttl);
{
__WIFI_AWARE_FUNC_ENTER__;
CHECK_FEATURE_SUPPORTED(TIZEN_FEATURE_WIFI_AWARE);
+ RET_VAL_IF(!_wifi_aware_is_initialized(), WIFI_AWARE_ERROR_NOT_INITIALIZED, "Not initialized");
RET_VAL_IF(publish == NULL, WIFI_AWARE_ERROR_INVALID_PARAMETER, "wifi_aware_publish_h is NULL");
RET_VAL_IF(publish_type != WIFI_AWARE_PUBLISH_TYPE_UNSOLICITED
&& publish_type != WIFI_AWARE_PUBLISH_TYPE_SOLICITED,
__WIFI_AWARE_FUNC_ENTER__;
int len = 0;
CHECK_FEATURE_SUPPORTED(TIZEN_FEATURE_WIFI_AWARE);
+ RET_VAL_IF(!_wifi_aware_is_initialized(), WIFI_AWARE_ERROR_NOT_INITIALIZED, "Not initialized");
RET_VAL_IF(publish == NULL, WIFI_AWARE_ERROR_INVALID_PARAMETER, "wifi_aware_publish_h is NULL");
len = strlen(service_name);
{
__WIFI_AWARE_FUNC_ENTER__;
CHECK_FEATURE_SUPPORTED(TIZEN_FEATURE_WIFI_AWARE);
+ RET_VAL_IF(!_wifi_aware_is_initialized(), WIFI_AWARE_ERROR_NOT_INITIALIZED, "Not initialized");
RET_VAL_IF(publish == NULL, WIFI_AWARE_ERROR_INVALID_PARAMETER, "wifi_aware_publish_h is NULL");
if (len > WIFI_AWARE_MAX_SERVICE_SPECIFIC_INFO_LEN) {
{
__WIFI_AWARE_FUNC_ENTER__;
CHECK_FEATURE_SUPPORTED(TIZEN_FEATURE_WIFI_AWARE);
+ RET_VAL_IF(!_wifi_aware_is_initialized(), WIFI_AWARE_ERROR_NOT_INITIALIZED, "Not initialized");
RET_VAL_IF(publish == NULL, WIFI_AWARE_ERROR_INVALID_PARAMETER, "wifi_aware_publish_h is NULL");
if (len > WIFI_AWARE_MAX_MATCH_FILTER_LEN) {
{
__WIFI_AWARE_FUNC_ENTER__;
CHECK_FEATURE_SUPPORTED(TIZEN_FEATURE_WIFI_AWARE);
+ RET_VAL_IF(!_wifi_aware_is_initialized(), WIFI_AWARE_ERROR_NOT_INITIALIZED, "Not initialized");
RET_VAL_IF(publish == NULL, WIFI_AWARE_ERROR_INVALID_PARAMETER, "wifi_aware_publish_h is NULL");
_wifi_aware_publish_enable_ranging(publish, enable);
__WIFI_AWARE_FUNC_ENTER__;
CHECK_FEATURE_SUPPORTED(TIZEN_FEATURE_WIFI_AWARE);
+ RET_VAL_IF(!_wifi_aware_is_initialized(), WIFI_AWARE_ERROR_NOT_INITIALIZED, "Not initialized");
ret = _wifi_aware_subscribe_handle_create(subscribe);
RET_VAL_IF(ret != WIFI_AWARE_ERROR_NONE, ret, "Fail to create subscribe handle");
{
__WIFI_AWARE_FUNC_ENTER__;
CHECK_FEATURE_SUPPORTED(TIZEN_FEATURE_WIFI_AWARE);
+ RET_VAL_IF(!_wifi_aware_is_initialized(), WIFI_AWARE_ERROR_NOT_INITIALIZED, "Not initialized");
RET_VAL_IF(subscribe == NULL, WIFI_AWARE_ERROR_INVALID_PARAMETER, "wifi_aware_subscribe_h is NULL");
g_free(subscribe);
{
__WIFI_AWARE_FUNC_ENTER__;
CHECK_FEATURE_SUPPORTED(TIZEN_FEATURE_WIFI_AWARE);
+ RET_VAL_IF(!_wifi_aware_is_initialized(), WIFI_AWARE_ERROR_NOT_INITIALIZED, "Not initialized");
RET_VAL_IF(subscribe == NULL, WIFI_AWARE_ERROR_INVALID_PARAMETER, "wifi_aware_subscribe_h is NULL");
_wifi_aware_subscribe_set_ttl(subscribe, ttl);
{
__WIFI_AWARE_FUNC_ENTER__;
CHECK_FEATURE_SUPPORTED(TIZEN_FEATURE_WIFI_AWARE);
+ RET_VAL_IF(!_wifi_aware_is_initialized(), WIFI_AWARE_ERROR_NOT_INITIALIZED, "Not initialized");
RET_VAL_IF(subscribe == NULL, WIFI_AWARE_ERROR_INVALID_PARAMETER, "wifi_aware_subscribe_h is NULL");
RET_VAL_IF(subscribe_type != WIFI_AWARE_SUBSCRIBE_TYPE_PASSIVE
&& subscribe_type != WIFI_AWARE_SUBSCRIBE_TYPE_ACTIVE,
__WIFI_AWARE_FUNC_ENTER__;
int len = 0;
CHECK_FEATURE_SUPPORTED(TIZEN_FEATURE_WIFI_AWARE);
+ RET_VAL_IF(!_wifi_aware_is_initialized(), WIFI_AWARE_ERROR_NOT_INITIALIZED, "Not initialized");
RET_VAL_IF(subscribe == NULL, WIFI_AWARE_ERROR_INVALID_PARAMETER, "wifi_aware_subscribe_h is NULL");
len = strlen(service_name);
{
__WIFI_AWARE_FUNC_ENTER__;
CHECK_FEATURE_SUPPORTED(TIZEN_FEATURE_WIFI_AWARE);
+ RET_VAL_IF(!_wifi_aware_is_initialized(), WIFI_AWARE_ERROR_NOT_INITIALIZED, "Not initialized");
RET_VAL_IF(subscribe == NULL, WIFI_AWARE_ERROR_INVALID_PARAMETER, "wifi_aware_subscribe_h is NULL");
if (len > WIFI_AWARE_MAX_SERVICE_SPECIFIC_INFO_LEN) {
{
__WIFI_AWARE_FUNC_ENTER__;
CHECK_FEATURE_SUPPORTED(TIZEN_FEATURE_WIFI_AWARE);
+ RET_VAL_IF(!_wifi_aware_is_initialized(), WIFI_AWARE_ERROR_NOT_INITIALIZED, "Not initialized");
RET_VAL_IF(subscribe == NULL, WIFI_AWARE_ERROR_INVALID_PARAMETER, "wifi_aware_subscribe_h is NULL");
if (len > WIFI_AWARE_MAX_MATCH_FILTER_LEN) {
{
__WIFI_AWARE_FUNC_ENTER__;
CHECK_FEATURE_SUPPORTED(TIZEN_FEATURE_WIFI_AWARE);
+ RET_VAL_IF(!_wifi_aware_is_initialized(), WIFI_AWARE_ERROR_NOT_INITIALIZED, "Not initialized");
RET_VAL_IF(subscribe == NULL, WIFI_AWARE_ERROR_INVALID_PARAMETER, "wifi_aware_subscribe_h is NULL");
RET_VAL_IF(distance <= 0, WIFI_AWARE_ERROR_INVALID_PARAMETER, "Distance should be positive value");
{
__WIFI_AWARE_FUNC_ENTER__;
CHECK_FEATURE_SUPPORTED(TIZEN_FEATURE_WIFI_AWARE);
+ RET_VAL_IF(!_wifi_aware_is_initialized(), WIFI_AWARE_ERROR_NOT_INITIALIZED, "Not initialized");
RET_VAL_IF(subscribe == NULL, WIFI_AWARE_ERROR_INVALID_PARAMETER, "wifi_aware_subscribe_h is NULL");
RET_VAL_IF(distance < 0, WIFI_AWARE_ERROR_INVALID_PARAMETER, "Distance should be zero or positive value");