X-Git-Url: http://review.tizen.org/git/?a=blobdiff_plain;f=bt-api%2Fbt-hdp.c;h=36aa058d801819bd7fffd1f4db163dda3dbd156b;hb=25986f9247de588fc3bb272c5acf6544434f46bf;hp=23c9cb7b3f4b8f2a9eb063e3d8b7172369ba15be;hpb=5f5b6fa5e56703d0d16409aee366a7701888a583;p=platform%2Fcore%2Fconnectivity%2Fbluetooth-frwk.git diff --git a/bt-api/bt-hdp.c b/bt-api/bt-hdp.c index 23c9cb7..36aa058 100644 --- a/bt-api/bt-hdp.c +++ b/bt-api/bt-hdp.c @@ -98,7 +98,7 @@ BT_EXPORT_API int bluetooth_hdp_activate(unsigned short data_type, BT_DBG("+"); - BT_CHECK_ENABLED(); + BT_CHECK_ENABLED(return); /*For source role is mandatory */ if (role == HDP_ROLE_SOURCE && channel_type == HDP_QOS_ANY) { @@ -739,8 +739,8 @@ BT_EXPORT_API int bluetooth_hdp_deactivate(const char *app_handle) { BT_DBG("+"); - BT_CHECK_ENABLED(); - BT_CHECK_PARAMETER(app_handle); + BT_CHECK_ENABLED(return); + BT_CHECK_PARAMETER(app_handle, return); return __bt_hdp_internal_destroy_application(app_handle); } @@ -914,7 +914,7 @@ BT_EXPORT_API int bluetooth_hdp_send_data(unsigned int channel_id, BT_DBG("+"); - BT_CHECK_ENABLED(); + BT_CHECK_ENABLED(return); if ((channel_id == 0) || (NULL == buffer) || (size == 0)) { BT_DBG("Invalid arguments..\n"); @@ -982,9 +982,9 @@ BT_EXPORT_API int bluetooth_hdp_connect(const char *app_handle, BT_DBG("+"); - BT_CHECK_ENABLED(); - BT_CHECK_PARAMETER(app_handle); - BT_CHECK_PARAMETER(device_address); + BT_CHECK_ENABLED(return); + BT_CHECK_PARAMETER(app_handle, return); + BT_CHECK_PARAMETER(device_address, return); if (channel_type == HDP_QOS_RELIABLE) { role = "Reliable"; @@ -1106,8 +1106,8 @@ BT_EXPORT_API int bluetooth_hdp_disconnect(unsigned int channel_id, BT_DBG("+\n"); - BT_CHECK_ENABLED(); - BT_CHECK_PARAMETER(device_address); + BT_CHECK_ENABLED(return); + BT_CHECK_PARAMETER(device_address, return); hdp_obj_info_t *info = __bt_hdp_internal_gslist_obj_find_using_fd(channel_id); if (NULL == info) {