xref: /btstack/src/classic/btstack_link_key_db_static.h (revision 2fca4dad957cd7b88f4657ed51e89c12615dda72)
1ba9e989aSMatthias Ringwald /*
2ba9e989aSMatthias Ringwald  * Copyright (C) 2014 BlueKitchen GmbH
3ba9e989aSMatthias Ringwald  *
4ba9e989aSMatthias Ringwald  * Redistribution and use in source and binary forms, with or without
5ba9e989aSMatthias Ringwald  * modification, are permitted provided that the following conditions
6ba9e989aSMatthias Ringwald  * are met:
7ba9e989aSMatthias Ringwald  *
8ba9e989aSMatthias Ringwald  * 1. Redistributions of source code must retain the above copyright
9ba9e989aSMatthias Ringwald  *    notice, this list of conditions and the following disclaimer.
10ba9e989aSMatthias Ringwald  * 2. Redistributions in binary form must reproduce the above copyright
11ba9e989aSMatthias Ringwald  *    notice, this list of conditions and the following disclaimer in the
12ba9e989aSMatthias Ringwald  *    documentation and/or other materials provided with the distribution.
13ba9e989aSMatthias Ringwald  * 3. Neither the name of the copyright holders nor the names of
14ba9e989aSMatthias Ringwald  *    contributors may be used to endorse or promote products derived
15ba9e989aSMatthias Ringwald  *    from this software without specific prior written permission.
16ba9e989aSMatthias Ringwald  * 4. Any redistribution, use, or modification is done solely for
17ba9e989aSMatthias Ringwald  *    personal benefit and not for any commercial purpose or for
18ba9e989aSMatthias Ringwald  *    monetary gain.
19ba9e989aSMatthias Ringwald  *
20ba9e989aSMatthias Ringwald  * THIS SOFTWARE IS PROVIDED BY BLUEKITCHEN GMBH AND CONTRIBUTORS
21ba9e989aSMatthias Ringwald  * ``AS IS'' AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
22ba9e989aSMatthias 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,
25ba9e989aSMatthias Ringwald  * INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING,
26ba9e989aSMatthias Ringwald  * BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS
27ba9e989aSMatthias Ringwald  * OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED
28ba9e989aSMatthias Ringwald  * AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY,
29ba9e989aSMatthias Ringwald  * OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF
30ba9e989aSMatthias Ringwald  * THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
31ba9e989aSMatthias Ringwald  * SUCH DAMAGE.
32ba9e989aSMatthias Ringwald  *
33ba9e989aSMatthias Ringwald  * Please inquire about commercial licensing options at
34ba9e989aSMatthias Ringwald  * [email protected]
35ba9e989aSMatthias Ringwald  *
36ba9e989aSMatthias Ringwald  */
37ba9e989aSMatthias Ringwald 
38ba9e989aSMatthias Ringwald /**
39fe5a6c4eSMilanka Ringwald  * @title Static Link Key Storage
40fe5a6c4eSMilanka Ringwald  *
41fe5a6c4eSMilanka Ringwald  * Static Link Key Storage implementation to use during development/porting:
42ba9e989aSMatthias Ringwald  *  - Link keys have to be manually added to this file to make them usable
43ba9e989aSMatthias Ringwald  *  + Link keys are preserved on reflash in constrast to the program flash based link key store
44fe5a6c4eSMilanka Ringwald  *
45ba9e989aSMatthias Ringwald  */
46ba9e989aSMatthias Ringwald 
4780e33422SMatthias Ringwald #ifndef BTSTACK_LINK_KEY_DB_STATIC_H
4880e33422SMatthias Ringwald #define BTSTACK_LINK_KEY_DB_STATIC_H
49ba9e989aSMatthias Ringwald 
50ba9e989aSMatthias Ringwald #include "btstack_link_key_db.h"
51ba9e989aSMatthias Ringwald 
52ba9e989aSMatthias Ringwald #if defined __cplusplus
53ba9e989aSMatthias Ringwald extern "C" {
54ba9e989aSMatthias Ringwald #endif
55ba9e989aSMatthias Ringwald 
56fe5a6c4eSMilanka Ringwald /* API_START */
57fe5a6c4eSMilanka Ringwald 
58ba9e989aSMatthias Ringwald /*
59ba9e989aSMatthias Ringwald  * @brief
60ba9e989aSMatthias Ringwald  */
61ba9e989aSMatthias Ringwald const btstack_link_key_db_t * btstack_link_key_db_static_instance(void);
62ba9e989aSMatthias Ringwald 
63ba9e989aSMatthias Ringwald /* API_END */
64ba9e989aSMatthias Ringwald 
65ba9e989aSMatthias Ringwald #if defined __cplusplus
66ba9e989aSMatthias Ringwald }
67ba9e989aSMatthias Ringwald #endif
68ba9e989aSMatthias Ringwald 
6980e33422SMatthias Ringwald #endif // BTSTACK_LINK_KEY_DB_STATIC_H
70