Cody sync.: merge tizen 2.4 code from spin git
[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
31 #include "bluetooth-api.h"
32 #include "bluetooth-media-control.h"
33
34 #ifdef __cplusplus
35 extern "C" {
36 #endif
37
38 #define BT_MEDIA_OBJECT_PATH "/Musicplayer"
39
40 #define BT_AVRCP_ERROR (__bt_avrcp_error_quark())
41
42 #define BT_ERROR_INTERNAL "InternalError"
43 #define BT_ERROR_INVALID_PARAM "InvalidParameters"
44 #define BT_ERROR_INVALID_INTERFACE "InvalidInterface"
45
46 typedef enum {
47         BT_AVRCP_ERROR_NONE,
48         BT_AVRCP_ERROR_INTERNAL,
49         BT_AVRCP_ERROR_INVALID_PARAM,
50         BT_AVRCP_ERROR_NOT_SUPPORTED,
51         BT_AVRCP_ERROR_INVALID_INTERFACE
52 } bt_avrcp_error_t;
53
54 int _bt_register_media_player(void);
55
56 int _bt_unregister_media_player(void);
57
58 int _bt_avrcp_set_track_info(media_metadata_attributes_t *meta_data);
59
60 int _bt_avrcp_set_properties(media_player_settings_t *properties);
61
62 int _bt_avrcp_set_property(int type, unsigned int value);
63
64 #ifdef __cplusplus
65 }
66 #endif /* __cplusplus */
67 #endif /*_BT_SERVICE_AVRCP_H_*/
68