char *client_creds = NULL;
char *user_creds = NULL;
char *client_session = "";
- int client_creds_method = CLIENT_METHOD_SMACK;
- int user_creds_method = USER_METHOD_UID;
+ enum cynara_client_creds client_creds_method = CLIENT_METHOD_SMACK;
+ enum cynara_user_creds user_creds_method = USER_METHOD_UID;
char err_msg[256] = {0, };
retv_if(unique_name == NULL, FALSE);
gatt_client_senders = NULL;
}
}
-
+#if 0
static void __bt_send_foreach_event(gpointer data, gpointer user_data)
{
char *sender = data;
_bt_send_event_to_dest(sender, BT_DEVICE_EVENT,BLUETOOTH_EVENT_GATT_CHAR_VAL_CHANGED,
param);
}
-
+#endif
void _bt_send_char_value_changed_event(void *param)
{
#if 0
return BLUETOOTH_ERROR_NONE;
}
-#if defined(TIZEN_BT_FLIGHTMODE_ENABLED) || !defined(TIZEN_WEARABLE)
+#if defined(TIZEN_TELEPHONY_ENABLED) || (!defined(TIZEN_WEARABLE) && defined(ENABLE_TIZEN_2_4))
static void __bt_service_flight_ps_mode_cb(keynode_t *node, void *data)
{
gboolean flight_mode = FALSE;
tethering_h tethering = NULL;
#endif
int result = BLUETOOTH_ERROR_NONE;
+#ifndef AUTO_ACCEPT
int request_type = BT_AGENT_EVENT_AUTHORIZE_REQUEST;
+#endif
BT_DBG("+");
goto done;
}
- if (!strcasecmp(uuid, OPP_UUID))
- request_type = BT_AGENT_EVENT_EXCHANGE_REQUEST;
- else if (!strcasecmp(uuid, PBAP_UUID))
- request_type = BT_AGENT_EVENT_PBAP_REQUEST;
- else if (!strcasecmp(uuid, MAP_UUID))
- request_type = BT_AGENT_EVENT_MAP_REQUEST;
-
if (trust) {
BT_INFO("Trusted device, so authorize\n");
gap_agent_reply_authorize(agent,
- GAP_AGENT_ACCEPT, NULL);
+ GAP_AGENT_ACCEPT, NULL);
} else {
#ifdef AUTO_ACCEPT
gap_agent_reply_authorize(agent, GAP_AGENT_ACCEPT, NULL);
#else
+ if (!strcasecmp(uuid, OPP_UUID))
+ request_type = BT_AGENT_EVENT_EXCHANGE_REQUEST;
+ else if (!strcasecmp(uuid, PBAP_UUID))
+ request_type = BT_AGENT_EVENT_PBAP_REQUEST;
+ else if (!strcasecmp(uuid, MAP_UUID))
+ request_type = BT_AGENT_EVENT_MAP_REQUEST;
+
_bt_launch_system_popup(request_type, name, NULL, NULL,
- _gap_agent_get_path(agent));
+ _gap_agent_get_path(agent));
#endif
}
#include "bt-service-dpm.h"
static dpm_policy_t policy_table[DPM_POLICY_END] = {
- [DPM_POLICY_ALLOW_BLUETOOTH] = {DPM_BT_ERROR},
- [DPM_POLICY_BLUETOOTH_DEVICE_RESTRICTION] = {DPM_STATUS_ERROR},
- [DPM_POLICY_BLUETOOTH_UUID_RESTRICTION] = {DPM_STATUS_ERROR},
- [DPM_POLICY_BLUETOOTH_DEVICES_WHITELIST] = {NULL},
- [DPM_POLICY_BLUETOOTH_DEVICES_BLACKLIST] = {NULL},
- [DPM_POLICY_BLUETOOTH_UUIDS_WHITELIST] = {NULL},
- [DPM_POLICY_BLUETOOTH_UUIDS_BLACKLIST] = {NULL},
- [DPM_POLICY_ALLOW_BLUETOOTH_OUTGOING_CALL] = {DPM_STATUS_ERROR},
- [DPM_POLICY_BLUETOOTH_PAIRING_STATE] = {DPM_STATUS_ERROR},
- [DPM_POLICY_BLUETOOTH_DESKTOP_CONNECTIVITY_STATE] = {DPM_STATUS_ERROR},
- [DPM_POLICY_BLUETOOTH_DISCOVERABLE_STATE] = {DPM_STATUS_ERROR},
- [DPM_POLICY_BLUETOOTH_LIMITED_DISCOVERABLE_STATE] = {DPM_STATUS_ERROR},
- [DPM_POLICY_BLUETOOTH_DATA_TRANSFER_STATE] = {DPM_STATUS_ERROR},
+ [DPM_POLICY_ALLOW_BLUETOOTH] = {{DPM_BT_ERROR}},
+ [DPM_POLICY_BLUETOOTH_DEVICE_RESTRICTION] = {{DPM_STATUS_ERROR}},
+ [DPM_POLICY_BLUETOOTH_UUID_RESTRICTION] = {{DPM_STATUS_ERROR}},
+ [DPM_POLICY_BLUETOOTH_DEVICES_WHITELIST] = {{NULL}},
+ [DPM_POLICY_BLUETOOTH_DEVICES_BLACKLIST] = {{NULL}},
+ [DPM_POLICY_BLUETOOTH_UUIDS_WHITELIST] = {{NULL}},
+ [DPM_POLICY_BLUETOOTH_UUIDS_BLACKLIST] = {{NULL}},
+ [DPM_POLICY_ALLOW_BLUETOOTH_OUTGOING_CALL] = {{DPM_STATUS_ERROR}},
+ [DPM_POLICY_BLUETOOTH_PAIRING_STATE] = {{DPM_STATUS_ERROR}},
+ [DPM_POLICY_BLUETOOTH_DESKTOP_CONNECTIVITY_STATE] = {{DPM_STATUS_ERROR}},
+ [DPM_POLICY_BLUETOOTH_DISCOVERABLE_STATE] = {{DPM_STATUS_ERROR}},
+ [DPM_POLICY_BLUETOOTH_LIMITED_DISCOVERABLE_STATE] = {{DPM_STATUS_ERROR}},
+ [DPM_POLICY_BLUETOOTH_DATA_TRANSFER_STATE] = {{DPM_STATUS_ERROR}},
};
}
return err;
-}
\ No newline at end of file
+}
} else if (strcasecmp(member, "AdvertisingEnabled") == 0) {
BT_DBG("Advertising Enabled");
int slot_id;
- const char *sender;
int event;
int adv_handle;
gboolean status = FALSE;
/* Send event to application */
_bt_set_advertising_status(slot_id, status);
- sender = _bt_get_adv_slot_owner(slot_id);
adv_handle = _bt_get_adv_slot_adv_handle(slot_id);
if (status)
adv_handle);
#if 0
+ const char *sender;
+ sender = _bt_get_adv_slot_owner(slot_id);
_bt_send_event_to_dest(sender, BT_ADAPTER_EVENT,
event,
param);
static void __bt_sigterm_handler(int signo, siginfo_t *info, void *data)
{
- int ret;
-
BT_INFO("signal [%d] is sent by [%d]", signo, info->si_pid);
#ifndef TIZEN_TV
+ int ret;
ret = _bt_recover_adapter();
if (ret != BLUETOOTH_ERROR_NONE)
BT_ERR("_bt_recover_adapter is failed : %d", ret);
static gboolean __bt_check_bt_service(void *data)
{
- int bt_status = VCONFKEY_BT_STATUS_OFF;
- int bt_le_status = VCONFKEY_BT_LE_STATUS_OFF;
bt_status_t status = BT_DEACTIVATED;
bt_le_status_t le_status = BT_LE_DEACTIVATED;
+#ifndef TIZEN_TV
+ int bt_status = VCONFKEY_BT_STATUS_OFF;
+ int bt_le_status = VCONFKEY_BT_LE_STATUS_OFF;
int flight_mode_deactivation = 0;
int bt_off_due_to_timeout = 0;
+#endif
#if 0
int ps_mode_deactivation = 0;
#endif