9ad82393058047c359a2d18835183531fab73d3f
[platform/core/connectivity/bluetooth-frwk.git] / bt-service-adaptation / services / include / bt-service-avrcp-tg.h
1 /*
2  * Copyright (c) 2011 Samsung Electronics Co., Ltd All Rights Reserved
3  *
4  * Licensed under the Apache License, Version 2.0 (the "License");
5  * you may not use this file except in compliance with the License.
6  * You may obtain a copy of the License at
7  *
8  *              http://www.apache.org/licenses/LICENSE-2.0
9  *
10  * Unless required by applicable law or agreed to in writing, software
11  * distributed under the License is distributed on an "AS IS" BASIS,
12  * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13  * See the License for the specific language governing permissions and
14  * limitations under the License.
15  *
16  */
17
18
19 #ifndef _BT_SERVICE_AVRCP_TG_H_
20 #define _BT_SERVICE_AVRCP_TG_H_
21
22 #include <glib.h>
23 #include <sys/types.h>
24
25 #include "bluetooth-api.h"
26 #include "bluetooth-media-control.h"
27
28 #ifdef __cplusplus
29 extern "C" {
30 #endif
31
32 #if 0
33
34 #define BT_MEDIA_OBJECT_PATH "/Musicplayer"
35
36 #define BT_AVRCP_ERROR (__bt_avrcp_error_quark())
37
38 #define BT_ERROR_INTERNAL "InternalError"
39 #define BT_ERROR_INVALID_PARAM "InvalidParameters"
40 #define BT_ERROR_INVALID_INTERFACE "InvalidInterface"
41
42 typedef enum {
43         BT_AVRCP_ERROR_NONE,
44         BT_AVRCP_ERROR_INTERNAL,
45         BT_AVRCP_ERROR_INVALID_PARAM,
46         BT_AVRCP_ERROR_NOT_SUPPORTED,
47         BT_AVRCP_ERROR_INVALID_INTERFACE
48 } bt_avrcp_error_t;
49
50 int _bt_register_media_player(void);
51
52 int _bt_unregister_media_player(void);
53 #endif
54
55 int _bt_avrcp_connect_remote_ctrl(bluetooth_device_address_t *address);
56
57 int _bt_avrcp_disconnect_remote_ctrl(bluetooth_device_address_t *address);
58
59 int _bt_avrcp_set_track_info(media_metadata_attributes_t *meta_data);
60
61 int _bt_avrcp_target_notify_volume(bluetooth_device_address_t *address, unsigned int volume);
62
63 int _bt_avrcp_target_get_volume(bluetooth_device_address_t *address, unsigned int *volume);
64
65 int _bt_avrcp_set_properties(media_player_settings_t *properties);
66
67 int _bt_avrcp_set_property(int type, unsigned int value);
68
69 int _bt_service_avrcp_enable(void);
70 int _bt_service_avrcp_disable(void);
71
72 #ifdef __cplusplus
73 }
74 #endif /* __cplusplus */
75 #endif /*_BT_SERVICE_AVRCP_TG_H_*/