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