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