return result;
}
-#ifdef TIZEN_PROFILE_WEARABLE
gboolean __bluetooth_is_privileged_process(void)
{
FILE *fp = NULL;
fclose(fp);
return FALSE;
}
-#endif
BT_EXPORT_API int bluetooth_set_advertising(int handle, gboolean enable)
{
BT_CHECK_ENABLED_ANY(return);
-#ifdef TIZEN_PROFILE_WEARABLE
- use_reserved_slot = __bluetooth_is_privileged_process();
-#endif
+ if (TIZEN_PROFILE_WEARABLE)
+ use_reserved_slot = __bluetooth_is_privileged_process();
BT_INIT_PARAMS();
BT_ALLOC_PARAMS(in_param1, in_param2, in_param3, in_param4, out_param);
BT_CHECK_ENABLED_ANY(return);
-#ifdef TIZEN_PROFILE_WEARABLE
+ if (TIZEN_PROFILE_WEARABLE)
use_reserved_slot = __bluetooth_is_privileged_process();
-#endif
BT_INIT_PARAMS();
BT_ALLOC_PARAMS(in_param1, in_param2, in_param3, in_param4, out_param);
if (length > BLUETOOTH_ADVERTISING_DATA_LENGTH_MAX - 3)
return BLUETOOTH_ERROR_INVALID_PARAM;
-#ifdef TIZEN_PROFILE_WEARABLE
- use_reserved_slot = __bluetooth_is_privileged_process();
-#endif
+ if (TIZEN_PROFILE_WEARABLE)
+ use_reserved_slot = __bluetooth_is_privileged_process();
BT_INIT_PARAMS();
BT_ALLOC_PARAMS(in_param1, in_param2, in_param3, in_param4, out_param);
if (length > BLUETOOTH_SCAN_RESP_DATA_LENGTH_MAX)
return BLUETOOTH_ERROR_INVALID_PARAM;
-#ifdef TIZEN_PROFILE_WEARABLE
- use_reserved_slot = __bluetooth_is_privileged_process();
-#endif
+ if (TIZEN_PROFILE_WEARABLE)
+ use_reserved_slot = __bluetooth_is_privileged_process();
BT_INIT_PARAMS();
BT_ALLOC_PARAMS(in_param1, in_param2, in_param3, in_param4, out_param);