summaryrefslogtreecommitdiff
path: root/src/wifi-aware.c
diff options
context:
space:
mode:
authorCheoleun Moon <chleun.moon@samsung.com>2020-01-21 22:53:53 +0900
committerCheoleun Moon <chleun.moon@samsung.com>2020-01-21 22:53:53 +0900
commitf95c36bee08956949cdf9e81bbb64f78cafb1f16 (patch)
tree3c308a6d0b9acc004b1be98af57774688e87cb28 /src/wifi-aware.c
parentced776a04f4849bde0bd8a4f5b71982dc1ad171f (diff)
downloadwifi-aware-f95c36bee08956949cdf9e81bbb64f78cafb1f16.tar.gz
wifi-aware-f95c36bee08956949cdf9e81bbb64f78cafb1f16.tar.bz2
wifi-aware-f95c36bee08956949cdf9e81bbb64f78cafb1f16.zip
Add discovery_result_cb
Diffstat (limited to 'src/wifi-aware.c')
-rw-r--r--src/wifi-aware.c9
1 files changed, 5 insertions, 4 deletions
diff --git a/src/wifi-aware.c b/src/wifi-aware.c
index 1cb293a..1f70346 100644
--- a/src/wifi-aware.c
+++ b/src/wifi-aware.c
@@ -44,14 +44,14 @@ API int wifi_aware_initialize(wifi_aware_h *wifi_aware)
RET_VAL_IF(wifi_aware == NULL, WIFI_AWARE_ERROR_INVALID_PARAMETER,
"parameter(wifi_aware) is NULL");
- ret = _wifi_aware_init();
- RET_VAL_IF(ret != WIFI_AWARE_ERROR_NONE, ret, "_wifi_aware_init failed [%s]",
- _wifi_aware_convert_error_type_to_string(ret));
-
ret = _wifi_aware_handle_create(wifi_aware);
RET_VAL_IF(ret != WIFI_AWARE_ERROR_NONE, ret, "_wifi_aware_handle_create failed [%s]",
_wifi_aware_convert_error_type_to_string(ret));
+ ret = _wifi_aware_init(wifi_aware);
+ RET_VAL_IF(ret != WIFI_AWARE_ERROR_NONE, ret, "_wifi_aware_init failed [%s]",
+ _wifi_aware_convert_error_type_to_string(ret));
+
__WIFI_AWARE_FUNC_EXIT__;
return WIFI_AWARE_ERROR_NONE;
}
@@ -84,6 +84,7 @@ API int wifi_aware_set_received_message_cb(wifi_aware_h wifi_aware,
{
__WIFI_AWARE_FUNC_ENTER__;
CHECK_FEATURE_SUPPORTED(TIZEN_FEATURE_WIFI_AWARE);
+ RET_ERR_IF_HANDLE_IS_NOT_VALID_OR_NOT_INITIALIZED(wifi_aware);
__WIFI_AWARE_FUNC_EXIT__;
return WIFI_AWARE_ERROR_NONE;