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