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 23d9f53676SMatthias Ringwald * FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL MATTHIAS 24d9f53676SMatthias Ringwald * RINGWALD 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 /** 39d9f53676SMatthias Ringwald * interface to provide link key storage via BTstack's TLV storage 40d9f53676SMatthias Ringwald */ 41d9f53676SMatthias Ringwald 42*80e33422SMatthias Ringwald #ifndef BTSTACK_LINK_KEY_DB_TLV_H 43*80e33422SMatthias Ringwald #define BTSTACK_LINK_KEY_DB_TLV_H 44d9f53676SMatthias Ringwald 45d9f53676SMatthias Ringwald #include "btstack_tlv.h" 46d9f53676SMatthias Ringwald #include "classic/btstack_link_key_db.h" 47d9f53676SMatthias Ringwald 48d9f53676SMatthias Ringwald #if defined __cplusplus 49d9f53676SMatthias Ringwald extern "C" { 50d9f53676SMatthias Ringwald #endif 51d9f53676SMatthias Ringwald 52d9f53676SMatthias Ringwald /* API_START */ 53d9f53676SMatthias Ringwald 54d9f53676SMatthias Ringwald /** 55d9f53676SMatthias Ringwald * Init Link Key DB using TLV 56d9f53676SMatthias Ringwald * @param btstack_tlv_impl of btstack_tlv interface 57d9f53676SMatthias Ringwald * @Param btstack_tlv_context of btstack_tlv_interface 58d9f53676SMatthias Ringwald */ 59d9f53676SMatthias 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); 60d9f53676SMatthias Ringwald 61d9f53676SMatthias Ringwald /* API_END */ 62d9f53676SMatthias Ringwald 63d9f53676SMatthias Ringwald #if defined __cplusplus 64d9f53676SMatthias Ringwald } 65d9f53676SMatthias Ringwald #endif 66d9f53676SMatthias Ringwald 67*80e33422SMatthias Ringwald #endif // BTSTACK_LINK_KEY_DB_TLV_H 68