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