16983e65eSMilanka Ringwald /* 26983e65eSMilanka Ringwald * Copyright (C) 2016 BlueKitchen GmbH 36983e65eSMilanka Ringwald * 46983e65eSMilanka Ringwald * Redistribution and use in source and binary forms, with or without 56983e65eSMilanka Ringwald * modification, are permitted provided that the following conditions 66983e65eSMilanka Ringwald * are met: 76983e65eSMilanka Ringwald * 86983e65eSMilanka Ringwald * 1. Redistributions of source code must retain the above copyright 96983e65eSMilanka Ringwald * notice, this list of conditions and the following disclaimer. 106983e65eSMilanka Ringwald * 2. Redistributions in binary form must reproduce the above copyright 116983e65eSMilanka Ringwald * notice, this list of conditions and the following disclaimer in the 126983e65eSMilanka Ringwald * documentation and/or other materials provided with the distribution. 136983e65eSMilanka Ringwald * 3. Neither the name of the copyright holders nor the names of 146983e65eSMilanka Ringwald * contributors may be used to endorse or promote products derived 156983e65eSMilanka Ringwald * from this software without specific prior written permission. 166983e65eSMilanka Ringwald * 4. Any redistribution, use, or modification is done solely for 176983e65eSMilanka Ringwald * personal benefit and not for any commercial purpose or for 186983e65eSMilanka Ringwald * monetary gain. 196983e65eSMilanka Ringwald * 206983e65eSMilanka Ringwald * THIS SOFTWARE IS PROVIDED BY BLUEKITCHEN GMBH AND CONTRIBUTORS 216983e65eSMilanka Ringwald * ``AS IS'' AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT 226983e65eSMilanka Ringwald * LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS 236983e65eSMilanka Ringwald * FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL MATTHIAS 246983e65eSMilanka Ringwald * RINGWALD OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, 256983e65eSMilanka Ringwald * INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, 266983e65eSMilanka Ringwald * BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS 276983e65eSMilanka Ringwald * OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED 286983e65eSMilanka Ringwald * AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, 296983e65eSMilanka Ringwald * OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF 306983e65eSMilanka Ringwald * THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF 316983e65eSMilanka Ringwald * SUCH DAMAGE. 326983e65eSMilanka Ringwald * 336983e65eSMilanka Ringwald * Please inquire about commercial licensing options at 346983e65eSMilanka Ringwald * [email protected] 356983e65eSMilanka Ringwald * 366983e65eSMilanka Ringwald */ 376983e65eSMilanka Ringwald 386983e65eSMilanka Ringwald /* 396983e65eSMilanka Ringwald * avrcp.h 406983e65eSMilanka Ringwald * 416983e65eSMilanka Ringwald * Audio/Video Remote Control Profile 426983e65eSMilanka Ringwald * 436983e65eSMilanka Ringwald */ 446983e65eSMilanka Ringwald 45*01dc6e35SMilanka Ringwald #ifndef __AVRCP_TARGET_H 46*01dc6e35SMilanka Ringwald #define __AVRCP_TARGET_H 476983e65eSMilanka Ringwald 486983e65eSMilanka Ringwald #include <stdint.h> 496983e65eSMilanka Ringwald #include "avrcp.h" 506983e65eSMilanka Ringwald 516983e65eSMilanka Ringwald #if defined __cplusplus 526983e65eSMilanka Ringwald extern "C" { 536983e65eSMilanka Ringwald #endif 546983e65eSMilanka Ringwald 556983e65eSMilanka Ringwald /* API_START */ 566983e65eSMilanka Ringwald 576983e65eSMilanka Ringwald 586983e65eSMilanka Ringwald /** 59*01dc6e35SMilanka Ringwald * @brief AVDTP Source service record. 606983e65eSMilanka Ringwald * @param service 616983e65eSMilanka Ringwald * @param service_record_handle 626983e65eSMilanka Ringwald * @param browsing 1 - supported, 0 - not supported 636983e65eSMilanka Ringwald * @param supported_features 16-bit bitmap, see AVDTP_SINK_SF_* values in avdtp.h 646983e65eSMilanka Ringwald * @param service_name 656983e65eSMilanka Ringwald * @param service_provider_name 666983e65eSMilanka Ringwald */ 676983e65eSMilanka Ringwald void avrcp_target_create_sdp_record(uint8_t * service, uint32_t service_record_handle, uint8_t browsing, uint16_t supported_features, const char * service_name, const char * service_provider_name); 686983e65eSMilanka Ringwald 69*01dc6e35SMilanka Ringwald void avrcp_target_init(void); 70*01dc6e35SMilanka Ringwald 71*01dc6e35SMilanka Ringwald void avrcp_target_register_packet_handler(btstack_packet_handler_t callback); 72*01dc6e35SMilanka Ringwald 73*01dc6e35SMilanka Ringwald uint8_t avrcp_target_connect(bd_addr_t bd_addr, uint16_t * avrcp_cid); 74*01dc6e35SMilanka Ringwald 75*01dc6e35SMilanka Ringwald uint8_t avrcp_target_disconnect(uint16_t avrcp_cid); 76*01dc6e35SMilanka Ringwald 77*01dc6e35SMilanka Ringwald 786983e65eSMilanka Ringwald /* API_END */ 796983e65eSMilanka Ringwald #if defined __cplusplus 806983e65eSMilanka Ringwald } 816983e65eSMilanka Ringwald #endif 826983e65eSMilanka Ringwald 83*01dc6e35SMilanka Ringwald #endif // __AVRCP_TARGET_H