xref: /btstack/platform/posix/le_device_db_fs.h (revision 9ed01c3693842b1b02ee2db742f92c16bad7a415)
1*9ed01c36SMatthias Ringwald /*
2*9ed01c36SMatthias Ringwald  * Copyright (C) 2016 BlueKitchen GmbH
3*9ed01c36SMatthias Ringwald  *
4*9ed01c36SMatthias Ringwald  * Redistribution and use in source and binary forms, with or without
5*9ed01c36SMatthias Ringwald  * modification, are permitted provided that the following conditions
6*9ed01c36SMatthias Ringwald  * are met:
7*9ed01c36SMatthias Ringwald  *
8*9ed01c36SMatthias Ringwald  * 1. Redistributions of source code must retain the above copyright
9*9ed01c36SMatthias Ringwald  *    notice, this list of conditions and the following disclaimer.
10*9ed01c36SMatthias Ringwald  * 2. Redistributions in binary form must reproduce the above copyright
11*9ed01c36SMatthias Ringwald  *    notice, this list of conditions and the following disclaimer in the
12*9ed01c36SMatthias Ringwald  *    documentation and/or other materials provided with the distribution.
13*9ed01c36SMatthias Ringwald  * 3. Neither the name of the copyright holders nor the names of
14*9ed01c36SMatthias Ringwald  *    contributors may be used to endorse or promote products derived
15*9ed01c36SMatthias Ringwald  *    from this software without specific prior written permission.
16*9ed01c36SMatthias Ringwald  * 4. Any redistribution, use, or modification is done solely for
17*9ed01c36SMatthias Ringwald  *    personal benefit and not for any commercial purpose or for
18*9ed01c36SMatthias Ringwald  *    monetary gain.
19*9ed01c36SMatthias Ringwald  *
20*9ed01c36SMatthias Ringwald  * THIS SOFTWARE IS PROVIDED BY BLUEKITCHEN GMBH AND CONTRIBUTORS
21*9ed01c36SMatthias Ringwald  * ``AS IS'' AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
22*9ed01c36SMatthias Ringwald  * LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS
23*9ed01c36SMatthias Ringwald  * FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL MATTHIAS
24*9ed01c36SMatthias Ringwald  * RINGWALD OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT,
25*9ed01c36SMatthias Ringwald  * INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING,
26*9ed01c36SMatthias Ringwald  * BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS
27*9ed01c36SMatthias Ringwald  * OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED
28*9ed01c36SMatthias Ringwald  * AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY,
29*9ed01c36SMatthias Ringwald  * OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF
30*9ed01c36SMatthias Ringwald  * THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
31*9ed01c36SMatthias Ringwald  * SUCH DAMAGE.
32*9ed01c36SMatthias Ringwald  *
33*9ed01c36SMatthias Ringwald  * Please inquire about commercial licensing options at
34*9ed01c36SMatthias Ringwald  * [email protected]
35*9ed01c36SMatthias Ringwald  *
36*9ed01c36SMatthias Ringwald  */
37*9ed01c36SMatthias Ringwald 
38*9ed01c36SMatthias Ringwald #ifndef __LE_DEVICE_DB_FS_H
39*9ed01c36SMatthias Ringwald #define __LE_DEVICE_DB_FS_H
40*9ed01c36SMatthias Ringwald 
41*9ed01c36SMatthias Ringwald #include "ble/le_device_db.h"
42*9ed01c36SMatthias Ringwald 
43*9ed01c36SMatthias Ringwald #if defined __cplusplus
44*9ed01c36SMatthias Ringwald extern "C" {
45*9ed01c36SMatthias Ringwald #endif
46*9ed01c36SMatthias Ringwald 
47*9ed01c36SMatthias Ringwald /*
48*9ed01c36SMatthias Ringwald  * @brief Get le device db implementation that stores bonding information in /tmp
49*9ed01c36SMatthias Ringwald  */
50*9ed01c36SMatthias Ringwald const le_device_db_t * le_device_db_fs_instance(void);
51*9ed01c36SMatthias Ringwald 
52*9ed01c36SMatthias Ringwald /* API_END */
53*9ed01c36SMatthias Ringwald 
54*9ed01c36SMatthias Ringwald #if defined __cplusplus
55*9ed01c36SMatthias Ringwald }
56*9ed01c36SMatthias Ringwald #endif
57*9ed01c36SMatthias Ringwald 
58*9ed01c36SMatthias Ringwald #endif // __LE_DEVICE_DB_FS_H
59