Cody sync.: merge tizen 2.4 code from spin git
[platform/core/connectivity/bluetooth-frwk.git] / bt-service / include / bt-service-avrcp-controller.h
1 /*
2  * Bluetooth-frwk
3  *
4  * Copyright (c) 2014 - 2015 Samsung Electronics Co., Ltd. All rights reserved.
5  *
6  * Contact:  Hocheol Seo <hocheol.seo@samsung.com>
7  *               Chanyeol Park <chanyeol.park@samsung.com>
8   *              Rakesh M K<rakesh.mk@samsung.com>
9  *
10  * Licensed under the Apache License, Version 2.0 (the "License");
11  * you may not use this file except in compliance with the License.
12  * You may obtain a copy of the License at
13  *
14  *              http://www.apache.org/licenses/LICENSE-2.0
15  *
16  * Unless required by applicable law or agreed to in writing, software
17  * distributed under the License is distributed on an "AS IS" BASIS,
18  * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
19  * See the License for the specific language governing permissions and
20  * limitations under the License.
21  *
22  */
23
24
25 #ifndef _BT_SERVICE_AVRCP_CONTROLLER_H_
26 #define _BT_SERVICE_AVRCP_CONTROLLER_H_
27
28 #include <glib.h>
29 #include <sys/types.h>
30 #include <gio/gio.h>
31
32 #include "bluetooth-api.h"
33 #include "bluetooth-media-control.h"
34
35 #ifdef __cplusplus
36 extern "C" {
37 #endif
38
39
40 #define BT_MEDIA_CONTROL_PATH "%s/player0"
41
42 int _bt_avrcp_control_cmd(int type);
43
44 int _bt_avrcp_control_set_property(int type, unsigned int value);
45
46 int _bt_avrcp_control_get_property(int type, unsigned int *value);
47
48 int _bt_avrcp_control_get_track_info(media_metadata_attributes_t *metadata);
49
50 void _bt_handle_avrcp_control_event(GVariant *reply, const char *path);
51
52 void _bt_set_control_device_path(const char *path);
53
54 void _bt_remove_control_device_path(const char *path);
55
56 #ifdef __cplusplus
57 }
58 #endif /* __cplusplus */
59 #endif /*_BT_SERVICE_AVRCP_CONTROLLER_H_*/
60
61