4 * Copyright (c) 2015 - 2016 Samsung Electronics Co., Ltd. All rights reserved.
6 * Contact: Nilesh Trimbake <t.shripati@samsung.com>
8 * Licensed under the Apache License, Version 2.0 (the "License");
9 * you may not use this file except in compliance with the License.
10 * You may obtain a copy of the License at
12 * http://www.apache.org/licenses/LICENSE-2.0
14 * Unless required by applicable law or agreed to in writing, software
15 * distributed under the License is distributed on an "AS IS" BASIS,
16 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
17 * See the License for the specific language governing permissions and
18 * limitations under the License.
22 #ifndef __BT_SERVICE_AVRCP_CONTROLLER_H__
23 #define __BT_SERVICE_AVRCP_CONTROLLER_H__
25 #include "bt-service-event-receiver.h"
31 #include <oal-manager.h>
33 #include <bt-service-audio-common.h>
34 #include <oal-avrcp-ct.h>
41 unsigned int total_tracks;
44 } _bt_avrcp_ct_media_metadata_attr_t;
48 } _bt_avrcp_ct_property_value_t;
51 RC_PASS_CMD_PLAY = 0x01,
56 RC_PASS_CMD_PRESS_FAST_FORWARD,
57 RC_PASS_CMD_RELEASE_FAST_FORWARD,
58 RC_PASS_CMD_PRESS_REWIND,
59 RC_PASS_CMD_RELEASE_REWIND,
60 RC_PASS_CMD_VOLUME_UP,
61 RC_PASS_CMD_VOLUME_DOWN
62 } _bt_avrcp_ct_pass_cmd_key_code_t;
64 int _bt_avrcp_connect_remote_target(bluetooth_device_address_t *address);
66 int _bt_avrcp_disconnect_remote_target(bluetooth_device_address_t *address);
68 int _bt_avrcp_control_cmd(int type);
70 int _bt_avrcp_control_cmd_to_dest(int type, bluetooth_device_address_t *address);
72 int _bt_avrcp_control_set_property(int type, unsigned int value);
74 int _bt_avrcp_transport_set_property(int type, unsigned int value);
76 int _bt_avrcp_control_get_property(int type);
78 int _bt_avrcp_control_get_track_info(void);
80 void _bt_set_control_device_path(const char *path);
82 void _bt_remove_control_device_path(const char *path);
84 void _bt_avrcp_ctrl_event_handler(int oal_event, gpointer event_data);
88 #endif /* __cplusplus */
89 #endif /* __BT_SERVICE_AVRCP_CONTROLLER_H__ */