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