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