175397433e8024fb07d5801778cc572ac1d5ea5bfSzymon Janc/* 275397433e8024fb07d5801778cc572ac1d5ea5bfSzymon Janc * 375397433e8024fb07d5801778cc572ac1d5ea5bfSzymon Janc * BlueZ - Bluetooth protocol stack for Linux 475397433e8024fb07d5801778cc572ac1d5ea5bfSzymon Janc * 575397433e8024fb07d5801778cc572ac1d5ea5bfSzymon Janc * Copyright (C) 2011 ST-Ericsson SA 675397433e8024fb07d5801778cc572ac1d5ea5bfSzymon Janc * 775397433e8024fb07d5801778cc572ac1d5ea5bfSzymon Janc * Author: Szymon Janc <szymon.janc@tieto.com> for ST-Ericsson 875397433e8024fb07d5801778cc572ac1d5ea5bfSzymon Janc * 975397433e8024fb07d5801778cc572ac1d5ea5bfSzymon Janc * 1075397433e8024fb07d5801778cc572ac1d5ea5bfSzymon Janc * This program is free software; you can redistribute it and/or modify 1175397433e8024fb07d5801778cc572ac1d5ea5bfSzymon Janc * it under the terms of the GNU General Public License as published by 1275397433e8024fb07d5801778cc572ac1d5ea5bfSzymon Janc * the Free Software Foundation; either version 2 of the License, or 1375397433e8024fb07d5801778cc572ac1d5ea5bfSzymon Janc * (at your option) any later version. 1475397433e8024fb07d5801778cc572ac1d5ea5bfSzymon Janc * 1575397433e8024fb07d5801778cc572ac1d5ea5bfSzymon Janc * This program is distributed in the hope that it will be useful, 1675397433e8024fb07d5801778cc572ac1d5ea5bfSzymon Janc * but WITHOUT ANY WARRANTY; without even the implied warranty of 1775397433e8024fb07d5801778cc572ac1d5ea5bfSzymon Janc * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 1875397433e8024fb07d5801778cc572ac1d5ea5bfSzymon Janc * GNU General Public License for more details. 1975397433e8024fb07d5801778cc572ac1d5ea5bfSzymon Janc * 2075397433e8024fb07d5801778cc572ac1d5ea5bfSzymon Janc * You should have received a copy of the GNU General Public License 2175397433e8024fb07d5801778cc572ac1d5ea5bfSzymon Janc * along with this program; if not, write to the Free Software 2275397433e8024fb07d5801778cc572ac1d5ea5bfSzymon Janc * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA 2375397433e8024fb07d5801778cc572ac1d5ea5bfSzymon Janc * 2475397433e8024fb07d5801778cc572ac1d5ea5bfSzymon Janc */ 2575397433e8024fb07d5801778cc572ac1d5ea5bfSzymon Janc 2675397433e8024fb07d5801778cc572ac1d5ea5bfSzymon Janc#include "adapter.h" 2775397433e8024fb07d5801778cc572ac1d5ea5bfSzymon Janc#include "oob.h" 2875397433e8024fb07d5801778cc572ac1d5ea5bfSzymon Janc 2975397433e8024fb07d5801778cc572ac1d5ea5bfSzymon Jancstatic oob_read_cb_t local_oob_read_cb = NULL; 3075397433e8024fb07d5801778cc572ac1d5ea5bfSzymon Janc 3175397433e8024fb07d5801778cc572ac1d5ea5bfSzymon Jancvoid oob_register_cb(oob_read_cb_t cb) 3275397433e8024fb07d5801778cc572ac1d5ea5bfSzymon Janc{ 3375397433e8024fb07d5801778cc572ac1d5ea5bfSzymon Janc local_oob_read_cb = cb; 3475397433e8024fb07d5801778cc572ac1d5ea5bfSzymon Janc} 3575397433e8024fb07d5801778cc572ac1d5ea5bfSzymon Janc 3675397433e8024fb07d5801778cc572ac1d5ea5bfSzymon Jancvoid oob_read_local_data_complete(struct btd_adapter *adapter, uint8_t *hash, 3775397433e8024fb07d5801778cc572ac1d5ea5bfSzymon Janc uint8_t *randomizer) 3875397433e8024fb07d5801778cc572ac1d5ea5bfSzymon Janc{ 3975397433e8024fb07d5801778cc572ac1d5ea5bfSzymon Janc if (local_oob_read_cb) 4075397433e8024fb07d5801778cc572ac1d5ea5bfSzymon Janc local_oob_read_cb(adapter, hash, randomizer); 4175397433e8024fb07d5801778cc572ac1d5ea5bfSzymon Janc} 42