1*d9f53676SMatthias Ringwald /* 2*d9f53676SMatthias Ringwald * Copyright (C) 2014 BlueKitchen GmbH 3*d9f53676SMatthias Ringwald * 4*d9f53676SMatthias Ringwald * Redistribution and use in source and binary forms, with or without 5*d9f53676SMatthias Ringwald * modification, are permitted provided that the following conditions 6*d9f53676SMatthias Ringwald * are met: 7*d9f53676SMatthias Ringwald * 8*d9f53676SMatthias Ringwald * 1. Redistributions of source code must retain the above copyright 9*d9f53676SMatthias Ringwald * notice, this list of conditions and the following disclaimer. 10*d9f53676SMatthias Ringwald * 2. Redistributions in binary form must reproduce the above copyright 11*d9f53676SMatthias Ringwald * notice, this list of conditions and the following disclaimer in the 12*d9f53676SMatthias Ringwald * documentation and/or other materials provided with the distribution. 13*d9f53676SMatthias Ringwald * 3. Neither the name of the copyright holders nor the names of 14*d9f53676SMatthias Ringwald * contributors may be used to endorse or promote products derived 15*d9f53676SMatthias Ringwald * from this software without specific prior written permission. 16*d9f53676SMatthias Ringwald * 4. Any redistribution, use, or modification is done solely for 17*d9f53676SMatthias Ringwald * personal benefit and not for any commercial purpose or for 18*d9f53676SMatthias Ringwald * monetary gain. 19*d9f53676SMatthias Ringwald * 20*d9f53676SMatthias Ringwald * THIS SOFTWARE IS PROVIDED BY BLUEKITCHEN GMBH AND CONTRIBUTORS 21*d9f53676SMatthias Ringwald * ``AS IS'' AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT 22*d9f53676SMatthias Ringwald * LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS 23*d9f53676SMatthias Ringwald * FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL MATTHIAS 24*d9f53676SMatthias Ringwald * RINGWALD OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, 25*d9f53676SMatthias Ringwald * INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, 26*d9f53676SMatthias Ringwald * BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS 27*d9f53676SMatthias Ringwald * OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED 28*d9f53676SMatthias Ringwald * AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, 29*d9f53676SMatthias Ringwald * OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF 30*d9f53676SMatthias Ringwald * THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF 31*d9f53676SMatthias Ringwald * SUCH DAMAGE. 32*d9f53676SMatthias Ringwald * 33*d9f53676SMatthias Ringwald * Please inquire about commercial licensing options at 34*d9f53676SMatthias Ringwald * [email protected] 35*d9f53676SMatthias Ringwald * 36*d9f53676SMatthias Ringwald */ 37*d9f53676SMatthias Ringwald 38*d9f53676SMatthias Ringwald /** 39*d9f53676SMatthias Ringwald * interface to provide link key storage via BTstack's TLV storage 40*d9f53676SMatthias Ringwald */ 41*d9f53676SMatthias Ringwald 42*d9f53676SMatthias Ringwald #ifndef __BTSTACK_LINK_KEY_DB_TLV_H 43*d9f53676SMatthias Ringwald #define __BTSTACK_LINK_KEY_DB_TLV_H 44*d9f53676SMatthias Ringwald 45*d9f53676SMatthias Ringwald #include "btstack_tlv.h" 46*d9f53676SMatthias Ringwald #include "classic/btstack_link_key_db.h" 47*d9f53676SMatthias Ringwald 48*d9f53676SMatthias Ringwald #if defined __cplusplus 49*d9f53676SMatthias Ringwald extern "C" { 50*d9f53676SMatthias Ringwald #endif 51*d9f53676SMatthias Ringwald 52*d9f53676SMatthias Ringwald /* API_START */ 53*d9f53676SMatthias Ringwald 54*d9f53676SMatthias Ringwald /** 55*d9f53676SMatthias Ringwald * Init Link Key DB using TLV 56*d9f53676SMatthias Ringwald * @param btstack_tlv_impl of btstack_tlv interface 57*d9f53676SMatthias Ringwald * @Param btstack_tlv_context of btstack_tlv_interface 58*d9f53676SMatthias Ringwald */ 59*d9f53676SMatthias Ringwald const btstack_link_key_db_t * btstack_link_key_db_tlv_get_instance(const btstack_tlv_t * btstack_tlv_impl, void * btstack_tlv_context); 60*d9f53676SMatthias Ringwald 61*d9f53676SMatthias Ringwald /* API_END */ 62*d9f53676SMatthias Ringwald 63*d9f53676SMatthias Ringwald #if defined __cplusplus 64*d9f53676SMatthias Ringwald } 65*d9f53676SMatthias Ringwald #endif 66*d9f53676SMatthias Ringwald 67*d9f53676SMatthias Ringwald #endif // __BTSTACK_LINK_KEY_DB_TLV_H 68