#include <bluetooth/bluetooth.h>
#include <bluetooth/hci.h>
#include <bluetooth/sdp.h>
#include <bluetooth/bluetooth.h>
#include <bluetooth/hci.h>
#include <bluetooth/sdp.h>
oob_requests = g_slist_append(oob_requests, oob_request);
oob_request->msg = dbus_message_ref(msg);
oob_requests = g_slist_append(oob_requests, oob_request);
oob_request->msg = dbus_message_ref(msg);
+ handler = g_new0(struct oob_handler, 1);
+#ifdef __TIZEN_PATCH__
+ handler->read_local_cb = (oob_read_local_cb_t)oob_read_local_data_complete;
+#else
+ handler->read_local_cb = oob_read_local_data_complete;
+#endif
+ handler->user_data = dbus_message_ref(oob_request->msg);
+
+ btd_adapter_set_oob_handler(oob_request->adapter, handler);
+
if (!g_dbus_register_interface(connection, path, OOB_INTERFACE,
oob_methods, NULL, NULL, adapter, NULL)) {
error("OOB interface init failed on path %s", path);
if (!g_dbus_register_interface(connection, path, OOB_INTERFACE,
oob_methods, NULL, NULL, adapter, NULL)) {
error("OOB interface init failed on path %s", path);