1*efda0b48SMatthias Ringwald /* 2*efda0b48SMatthias Ringwald * Copyright (C) 2014 BlueKitchen GmbH 3*efda0b48SMatthias Ringwald * 4*efda0b48SMatthias Ringwald * Redistribution and use in source and binary forms, with or without 5*efda0b48SMatthias Ringwald * modification, are permitted provided that the following conditions 6*efda0b48SMatthias Ringwald * are met: 7*efda0b48SMatthias Ringwald * 8*efda0b48SMatthias Ringwald * 1. Redistributions of source code must retain the above copyright 9*efda0b48SMatthias Ringwald * notice, this list of conditions and the following disclaimer. 10*efda0b48SMatthias Ringwald * 2. Redistributions in binary form must reproduce the above copyright 11*efda0b48SMatthias Ringwald * notice, this list of conditions and the following disclaimer in the 12*efda0b48SMatthias Ringwald * documentation and/or other materials provided with the distribution. 13*efda0b48SMatthias Ringwald * 3. Neither the name of the copyright holders nor the names of 14*efda0b48SMatthias Ringwald * contributors may be used to endorse or promote products derived 15*efda0b48SMatthias Ringwald * from this software without specific prior written permission. 16*efda0b48SMatthias Ringwald * 4. Any redistribution, use, or modification is done solely for 17*efda0b48SMatthias Ringwald * personal benefit and not for any commercial purpose or for 18*efda0b48SMatthias Ringwald * monetary gain. 19*efda0b48SMatthias Ringwald * 20*efda0b48SMatthias Ringwald * THIS SOFTWARE IS PROVIDED BY BLUEKITCHEN GMBH AND CONTRIBUTORS 21*efda0b48SMatthias Ringwald * ``AS IS'' AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT 22*efda0b48SMatthias Ringwald * LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS 23*efda0b48SMatthias Ringwald * FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL MATTHIAS 24*efda0b48SMatthias Ringwald * RINGWALD OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, 25*efda0b48SMatthias Ringwald * INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, 26*efda0b48SMatthias Ringwald * BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS 27*efda0b48SMatthias Ringwald * OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED 28*efda0b48SMatthias Ringwald * AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, 29*efda0b48SMatthias Ringwald * OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF 30*efda0b48SMatthias Ringwald * THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF 31*efda0b48SMatthias Ringwald * SUCH DAMAGE. 32*efda0b48SMatthias Ringwald * 33*efda0b48SMatthias Ringwald * Please inquire about commercial licensing options at 34*efda0b48SMatthias Ringwald * [email protected] 35*efda0b48SMatthias Ringwald * 36*efda0b48SMatthias Ringwald */ 37*efda0b48SMatthias Ringwald 38*efda0b48SMatthias Ringwald /* 39*efda0b48SMatthias Ringwald * sdp_rfcomm_query.h 40*efda0b48SMatthias Ringwald */ 41*efda0b48SMatthias Ringwald 42*efda0b48SMatthias Ringwald #ifndef __SDP_QUERY_RFCOMM_H 43*efda0b48SMatthias Ringwald #define __SDP_QUERY_RFCOMM_H 44*efda0b48SMatthias Ringwald 45*efda0b48SMatthias Ringwald #include "btstack_util.h" 46*efda0b48SMatthias Ringwald 47*efda0b48SMatthias Ringwald #define SDP_SERVICE_NAME_LEN 20 48*efda0b48SMatthias Ringwald 49*efda0b48SMatthias Ringwald #if defined __cplusplus 50*efda0b48SMatthias Ringwald extern "C" { 51*efda0b48SMatthias Ringwald #endif 52*efda0b48SMatthias Ringwald 53*efda0b48SMatthias Ringwald /* API_START */ 54*efda0b48SMatthias Ringwald 55*efda0b48SMatthias Ringwald /** 56*efda0b48SMatthias Ringwald * @brief Searches SDP records on a remote device for RFCOMM services with a given UUID. 57*efda0b48SMatthias Ringwald */ 58*efda0b48SMatthias Ringwald void sdp_client_query_rfcomm_channel_and_name_for_uuid(btstack_packet_handler_t callback, bd_addr_t remote, uint16_t uuid); 59*efda0b48SMatthias Ringwald 60*efda0b48SMatthias Ringwald /** 61*efda0b48SMatthias Ringwald * @brief Searches SDP records on a remote device for RFCOMM services with a given service search pattern. 62*efda0b48SMatthias Ringwald */ 63*efda0b48SMatthias Ringwald void sdp_client_query_rfcomm_channel_and_name_for_search_pattern(btstack_packet_handler_t callback, bd_addr_t remote, uint8_t * des_serviceSearchPattern); 64*efda0b48SMatthias Ringwald /* API_END */ 65*efda0b48SMatthias Ringwald 66*efda0b48SMatthias Ringwald #if defined __cplusplus 67*efda0b48SMatthias Ringwald } 68*efda0b48SMatthias Ringwald #endif 69*efda0b48SMatthias Ringwald 70*efda0b48SMatthias Ringwald #endif // __SDP_QUERY_RFCOMM_H 71