}
}
+int _bt_hal_convert_disc_reason_to_status(int reason)
+{
+ switch (reason) {
+ case 1:
+ return BT_STATUS_CONN_TOUT; //"Link loss"
+ case 2:
+ return BT_STATUS_CONN_TERM_LOCAL_HOST; //"Connection terminated by local host";
+ case 3:
+ return BT_STATUS_CONN_TERM_RMT_HOST; //"Connection terminated by local host";
+ case 0:
+ default:
+ return BT_STATUS_FAIL;
+ }
+}
+
void _bt_hal_logging_connection(gboolean connect, int addr_type)
{
static int le_conn = 0;
if (size > 0) {
uuid_value = (char **)g_variant_get_strv(temp_value, &size);
- DBG("Size items %d", size);
+ DBG("Size items %zu", size);
}
if (temp_value)