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