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