goto done;
}
+#ifdef AUTO_ACCEPT
+ gap_agent_reply_pin_code(agent, GAP_AGENT_ACCEPT, "0000",
+ NULL);
+ goto done;
+#endif
+
g_variant_get(reply_temp,"(@a{sv})", &reply); /* Format of reply a{sv}*/
tmp_value = g_variant_lookup_value(reply, "Class", G_VARIANT_TYPE_UINT32);
goto done;
}
+#ifdef AUTO_ACCEPT
+ gap_agent_reply_pin_code(agent, GAP_AGENT_ACCEPT, "0000",
+ NULL);
+ goto done;
+#endif
+
g_variant_get(reply_temp,"(@a{sv})", &reply); /* Format of reply a{sv}*/
tmp_value = g_variant_lookup_value (reply, "Address", G_VARIANT_TYPE_STRING);
goto done;
}
+#ifdef AUTO_ACCEPT
+ gap_agent_reply_pin_code(agent, GAP_AGENT_ACCEPT, "0000",
+ NULL);
+ goto done;
+#endif
+
g_variant_get(reply_temp,"(@a{sv})", &reply); /* Format of reply a{sv}*/
tmp_value = g_variant_lookup_value (reply, "Address", G_VARIANT_TYPE_STRING);
goto done;
}
+#ifdef AUTO_ACCEPT
+ gap_agent_reply_pin_code(agent, GAP_AGENT_ACCEPT, str_passkey,
+ NULL);
+ goto done;
+#endif
+
g_variant_get(reply_temp,"(@a{sv})", &reply); /* Format of reply a{sv}*/
tmp_value = g_variant_lookup_value (reply, "Address", G_VARIANT_TYPE_STRING);
BT_DBG("+");
+#ifdef AUTO_ACCEPT
+ gap_agent_reply_authorize(agent, GAP_AGENT_ACCEPT,
+ NULL);
+ goto done;
+#endif
+
/* Check if already Media connection exsist */
if (!strcasecmp(uuid, A2DP_UUID)) {
gboolean ret = FALSE;