1e25b4a2fSMatthias Ringwald /* 2e25b4a2fSMatthias Ringwald * Copyright (C) 2014 BlueKitchen GmbH 3e25b4a2fSMatthias Ringwald * 4e25b4a2fSMatthias Ringwald * Redistribution and use in source and binary forms, with or without 5e25b4a2fSMatthias Ringwald * modification, are permitted provided that the following conditions 6e25b4a2fSMatthias Ringwald * are met: 7e25b4a2fSMatthias Ringwald * 8e25b4a2fSMatthias Ringwald * 1. Redistributions of source code must retain the above copyright 9e25b4a2fSMatthias Ringwald * notice, this list of conditions and the following disclaimer. 10e25b4a2fSMatthias Ringwald * 2. Redistributions in binary form must reproduce the above copyright 11e25b4a2fSMatthias Ringwald * notice, this list of conditions and the following disclaimer in the 12e25b4a2fSMatthias Ringwald * documentation and/or other materials provided with the distribution. 13e25b4a2fSMatthias Ringwald * 3. Neither the name of the copyright holders nor the names of 14e25b4a2fSMatthias Ringwald * contributors may be used to endorse or promote products derived 15e25b4a2fSMatthias Ringwald * from this software without specific prior written permission. 16e25b4a2fSMatthias Ringwald * 4. Any redistribution, use, or modification is done solely for 17e25b4a2fSMatthias Ringwald * personal benefit and not for any commercial purpose or for 18e25b4a2fSMatthias Ringwald * monetary gain. 19e25b4a2fSMatthias Ringwald * 20e25b4a2fSMatthias Ringwald * THIS SOFTWARE IS PROVIDED BY BLUEKITCHEN GMBH AND CONTRIBUTORS 21e25b4a2fSMatthias Ringwald * ``AS IS'' AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT 22e25b4a2fSMatthias 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, 25e25b4a2fSMatthias Ringwald * INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, 26e25b4a2fSMatthias Ringwald * BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS 27e25b4a2fSMatthias Ringwald * OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED 28e25b4a2fSMatthias Ringwald * AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, 29e25b4a2fSMatthias Ringwald * OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF 30e25b4a2fSMatthias Ringwald * THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF 31e25b4a2fSMatthias Ringwald * SUCH DAMAGE. 32e25b4a2fSMatthias Ringwald * 33e25b4a2fSMatthias Ringwald * Please inquire about commercial licensing options at 34e25b4a2fSMatthias Ringwald * [email protected] 35e25b4a2fSMatthias Ringwald * 36e25b4a2fSMatthias Ringwald */ 37e25b4a2fSMatthias Ringwald 38e25b4a2fSMatthias Ringwald /* 39e25b4a2fSMatthias Ringwald * btstack_link_key_db_wiced_dct.c 40e25b4a2fSMatthias Ringwald * 41e25b4a2fSMatthias Ringwald * Persistent Link Key implemenetation for WICED using DCT mechanism 42e25b4a2fSMatthias Ringwald */ 43e25b4a2fSMatthias Ringwald 4480e33422SMatthias Ringwald #ifndef BTSTACK_LINK_KEY_WICED_DCT_H 4580e33422SMatthias Ringwald #define BTSTACK_LINK_KEY_WICED_DCT_H 46e25b4a2fSMatthias Ringwald 47e25b4a2fSMatthias Ringwald #include "btstack_config.h" 48e25b4a2fSMatthias Ringwald #include "classic/btstack_link_key_db.h" 49e25b4a2fSMatthias Ringwald 50e25b4a2fSMatthias Ringwald #if defined __cplusplus 51e25b4a2fSMatthias Ringwald extern "C" { 52e25b4a2fSMatthias Ringwald #endif 53e25b4a2fSMatthias Ringwald 54e25b4a2fSMatthias Ringwald /** 55e25b4a2fSMatthias Ringwald * @brief Get btstack_link_key_db_t instance 56e25b4a2fSMatthias Ringwald */ 57e25b4a2fSMatthias Ringwald const btstack_link_key_db_t * btstack_link_key_db_wiced_dct_instance(void); 58e25b4a2fSMatthias Ringwald 59e25b4a2fSMatthias Ringwald /* 60e25b4a2fSMatthias Ringwald * @brief Delete all link keys 61e25b4a2fSMatthias Ringwald */ 62e25b4a2fSMatthias Ringwald void btstack_link_key_db_wiced_dct_delete_all(void); 63e25b4a2fSMatthias Ringwald 6485447f54SMatthias Ringwald /* 6585447f54SMatthias Ringwald * @brief Get Size of Link DB DCT part 6685447f54SMatthias Ringwald */ 6785447f54SMatthias Ringwald int btstack_link_key_db_wiced_dct_get_storage_size(void); 6885447f54SMatthias Ringwald 69e25b4a2fSMatthias Ringwald /* API_END */ 70e25b4a2fSMatthias Ringwald 71e25b4a2fSMatthias Ringwald #if defined __cplusplus 72e25b4a2fSMatthias Ringwald } 73e25b4a2fSMatthias Ringwald #endif 74e25b4a2fSMatthias Ringwald 7580e33422SMatthias Ringwald #endif // BTSTACK_LINK_KEY_DB_MEMORY_H 76