3 * Copyright (c) 2015 - 2016 Samsung Electronics Co., Ltd. All rights reserved.
5 * Contact: Nilesh Trimbake <t.shripati@samsung.com>
7 * Licensed under the Apache License, Version 2.0 (the "License");
8 * you may not use this file except in compliance with the License.
9 * You may obtain a copy of the License at
11 * http://www.apache.org/licenses/LICENSE-2.0
13 * Unless required by applicable law or agreed to in writing, software
14 * distributed under the License is distributed on an "AS IS" BASIS,
15 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
16 * See the License for the specific language governing permissions and
17 * limitations under the License.
22 #ifndef _BT_HAL_AVRCP_CTRL_DBUS_HANDLER_H_
23 #define _BT_HAL_AVRCP_CTRL_DBUS_HANDLER_H_
26 #include <sys/types.h>
29 #include "bt-hal-log.h"
30 #include "bt-hal-msg.h"
32 #include "bt-hal-event-receiver.h"
49 } media_player_control_cmd;
55 } media_player_equalizer_status;
58 REPEAT_MODE_OFF = 0x01,
63 } media_player_repeat_status;
66 SHUFFLE_MODE_OFF = 0x01,
70 } media_player_shuffle_status;
77 } media_player_scan_status;
80 STATUS_STOPPED = 0x00,
87 } media_player_status;
92 } bt_player_settinngs_t;
94 void _bt_hal_register_avrcp_ctrl_dbus_handler_cb(handle_stack_msg cb);
96 void _bt_hal_unregister_avrcp_ctrl_dbus_handler_cb();
98 bt_status_t _bt_hal_dbus_handler_avrcp_ctrl_connect(bt_bdaddr_t *bd_addr);
100 bt_status_t _bt_hal_dbus_handler_avrcp_ctrl_disconnect(bt_bdaddr_t *bd_addr);
102 bt_status_t _bt_hal_dbus_handler_avrcp_ctrl_cmd(bt_bdaddr_t *bd_addr, uint8_t key_code, uint8_t key_state);
104 bt_status_t _bt_hal_dbus_handler_avrcp_ctrl_set_property(bt_bdaddr_t *bd_addr, uint8_t type, uint8_t value);
106 int _bt_media_attr_to_type(const char *str);
108 int _bt_media_attrval_to_val(int type, const char *value);
112 #endif /* __cplusplus */
113 #endif /* _BT_HAL_AVRCP_CTRL_DBUS_HANDLER_H_*/