int result;
BT_CHECK_PARAMETER(local_address, return);
- BT_CHECK_ENABLED(return);
BT_INIT_PARAMS();
BT_ALLOC_PARAMS(in_param1, in_param2, in_param3, in_param4, out_param);
int result;
BT_CHECK_PARAMETER(local_name, return);
- BT_CHECK_ENABLED(return);
BT_INIT_PARAMS();
BT_ALLOC_PARAMS(in_param1, in_param2, in_param3, in_param4, out_param);
BT_CHECK_PARAMETER(discoverable_mode_ptr, return);
- /* Requirement in OSP */
- if (bluetooth_check_adapter() == BLUETOOTH_ADAPTER_DISABLED) {
- if (vconf_get_int(BT_FILE_VISIBLE_TIME, &timeout) != 0) {
- BT_ERR("Fail to get the timeout value");
- return BLUETOOTH_ERROR_INTERNAL;
- }
-
- if (timeout == -1) {
- *discoverable_mode_ptr = BLUETOOTH_DISCOVERABLE_MODE_GENERAL_DISCOVERABLE;
- } else {
- *discoverable_mode_ptr = BLUETOOTH_DISCOVERABLE_MODE_CONNECTABLE;
- }
-
- return BLUETOOTH_ERROR_NONE;
- }
-
BT_INIT_PARAMS();
BT_ALLOC_PARAMS(in_param1, in_param2, in_param3, in_param4, out_param);