12531c97eSMatthias Ringwald /* 22531c97eSMatthias Ringwald * Copyright (C) 2009-2012 by Matthias Ringwald 32531c97eSMatthias Ringwald * 42531c97eSMatthias Ringwald * Redistribution and use in source and binary forms, with or without 52531c97eSMatthias Ringwald * modification, are permitted provided that the following conditions 62531c97eSMatthias Ringwald * are met: 72531c97eSMatthias Ringwald * 82531c97eSMatthias Ringwald * 1. Redistributions of source code must retain the above copyright 92531c97eSMatthias Ringwald * notice, this list of conditions and the following disclaimer. 102531c97eSMatthias Ringwald * 2. Redistributions in binary form must reproduce the above copyright 112531c97eSMatthias Ringwald * notice, this list of conditions and the following disclaimer in the 122531c97eSMatthias Ringwald * documentation and/or other materials provided with the distribution. 132531c97eSMatthias Ringwald * 3. Neither the name of the copyright holders nor the names of 142531c97eSMatthias Ringwald * contributors may be used to endorse or promote products derived 152531c97eSMatthias Ringwald * from this software without specific prior written permission. 162531c97eSMatthias Ringwald * 4. Any redistribution, use, or modification is done solely for 172531c97eSMatthias Ringwald * personal benefit and not for any commercial purpose or for 182531c97eSMatthias Ringwald * monetary gain. 192531c97eSMatthias Ringwald * 202531c97eSMatthias Ringwald * THIS SOFTWARE IS PROVIDED BY MATTHIAS RINGWALD AND CONTRIBUTORS 212531c97eSMatthias Ringwald * ``AS IS'' AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT 222531c97eSMatthias Ringwald * LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS 232531c97eSMatthias Ringwald * FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL MATTHIAS 242531c97eSMatthias Ringwald * RINGWALD OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, 252531c97eSMatthias Ringwald * INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, 262531c97eSMatthias Ringwald * BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS 272531c97eSMatthias Ringwald * OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED 282531c97eSMatthias Ringwald * AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, 292531c97eSMatthias Ringwald * OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF 302531c97eSMatthias Ringwald * THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF 312531c97eSMatthias Ringwald * SUCH DAMAGE. 322531c97eSMatthias Ringwald * 3351acb414SMatthias Ringwald * Please inquire about commercial licensing options at [email protected] 342531c97eSMatthias Ringwald * 352531c97eSMatthias Ringwald */ 362531c97eSMatthias Ringwald 372531c97eSMatthias Ringwald 38*80e33422SMatthias Ringwald #ifndef RFCOMM_SERVICE_DB_COCOA_H 39*80e33422SMatthias Ringwald #define RFCOMM_SERVICE_DB_COCOA_H 402531c97eSMatthias Ringwald 412531c97eSMatthias Ringwald #include <stdint.h> 422531c97eSMatthias Ringwald 432531c97eSMatthias Ringwald #if defined __cplusplus 442531c97eSMatthias Ringwald extern "C" { 452531c97eSMatthias Ringwald #endif 462531c97eSMatthias Ringwald 472531c97eSMatthias Ringwald /** 482531c97eSMatthias Ringwald * @brief retrieve rfcomm channel in a persistent way 492531c97eSMatthias Ringwald * @return channel number 502531c97eSMatthias Ringwald */ 512531c97eSMatthias Ringwald 522531c97eSMatthias Ringwald uint8_t rfcomm_service_db_channel_for_service(const char *servicename); 532531c97eSMatthias Ringwald 542531c97eSMatthias Ringwald #if defined __cplusplus 552531c97eSMatthias Ringwald } 562531c97eSMatthias Ringwald #endif 572531c97eSMatthias Ringwald 582531c97eSMatthias Ringwald #endif 59