X-Git-Url: http://review.tizen.org/git/?a=blobdiff_plain;f=bt-api%2Fbt-opp-client.c;h=5d2a53d1c12b36af8c766022d091d88901b432b4;hb=8c3d323cef31e296fc7d9ae43ff1dc407c1489cd;hp=b69d2bd935b194ba83cefbe3661b2c97354c3fab;hpb=94976d690606f1d5f3460c38245a18f97b4c5095;p=platform%2Fcore%2Fconnectivity%2Fbluetooth-frwk.git diff --git a/bt-api/bt-opp-client.c b/bt-api/bt-opp-client.c index b69d2bd..5d2a53d 100644 --- a/bt-api/bt-opp-client.c +++ b/bt-api/bt-opp-client.c @@ -23,10 +23,7 @@ #include "bt-common.h" #include "bt-request-sender.h" #include "bt-event-handler.h" - -#ifdef TIZEN_FEATURE_BT_DPM #include "bt-dpm.h" -#endif static void __bt_get_file_size(char **files, unsigned long *file_size, int *count) { @@ -77,7 +74,6 @@ BT_EXPORT_API int bluetooth_opc_push_files(bluetooth_device_address_t *remote_ad return BLUETOOTH_ERROR_PERMISSION_DEINED; } -#ifdef TIZEN_FEATURE_BT_DPM if (_bt_check_dpm(BT_DPM_ADDRESS, remote_address) == BT_DPM_RESTRICTED) { BT_ERR("Blacklist device"); return BLUETOOTH_ERROR_DEVICE_POLICY_RESTRICTION; @@ -100,7 +96,6 @@ BT_EXPORT_API int bluetooth_opc_push_files(bluetooth_device_address_t *remote_ad return BLUETOOTH_ERROR_DEVICE_POLICY_RESTRICTION; } } -#endif __bt_get_file_size(file_name_array, &size, &file_count); retv_if(file_count == 0, BLUETOOTH_ERROR_INVALID_PARAM);