fafc5752a9e889c8438d0993260b17a11815a211
[platform/core/connectivity/bluetooth-frwk.git] / bt-service / include / bt-service-avrcp.h
1 /*
2  * Bluetooth-frwk
3  *
4  * Copyright (c) 2000 - 2011 Samsung Electronics Co., Ltd. All rights reserved.
5  *
6  * Contact:  Hocheol Seo <hocheol.seo@samsung.com>
7  *               Girishashok Joshi <girish.joshi@samsung.com>
8  *               Chanyeol Park <chanyeol.park@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_H_
26 #define _BT_SERVICE_AVRCP_H_
27
28 #include <glib.h>
29 #include <sys/types.h>
30 #include <dbus/dbus-glib.h>
31 #include <dbus/dbus-glib-lowlevel.h>
32
33 #include "bluetooth-api.h"
34 #include "bluetooth-media-control.h"
35
36 #ifdef __cplusplus
37 extern "C" {
38 #endif
39
40 #define BLUEZ_MEDIA_PLAYER_INTERFACE    "org.bluez.MediaPlayer"
41 #define BT_MEDIA_OBJECT_PATH "/Musicplayer"
42
43 #define BT_MEDIA_CONTROL_PATH "%s/player0"
44
45 int _bt_register_media_player(void);
46
47 int _bt_unregister_media_player(void);
48
49 int _bt_avrcp_set_track_info(media_metadata_attributes_t *meta_data);
50
51 int _bt_avrcp_set_properties(media_player_settings_t *properties);
52
53 int _bt_avrcp_set_property(int type, unsigned int value);
54
55 int _bt_avrcp_control_cmd(int type);
56
57 int _bt_avrcp_control_set_property(int type, unsigned int value);
58
59 int _bt_avrcp_control_get_property(int type, unsigned int *value);
60
61 int _bt_avrcp_control_get_track_info(media_metadata_attributes_t *metadata);
62
63 void _bt_handle_avrcp_control_event(DBusMessageIter *msg_iter, const char *path);
64
65 #ifdef __cplusplus
66 }
67 #endif /* __cplusplus */
68 #endif /*_BT_SERVICE_AVRCP_H_*/
69