tizen 2.3 release
[framework/api/sound-manager.git] / include / sound_manager_private.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 #ifndef __TIZEN_MEDIA_SOUND_MANAGER_PRIVATE_H__
18 #define __TIZEN_MEDIA_SOUND_MANAGER_PRIVATE_H__
19
20 #ifdef __cplusplus
21 extern "C"
22 {
23 #endif
24
25 #include <stdio.h>
26 #include <limits.h>
27 #include <string.h>
28 #include <malloc.h>
29 #include <unistd.h>
30 #include <dlog.h>
31 #include <mm_session.h>
32 #include <mm_session_private.h>
33 #include <mm_sound.h>
34 #include <mm_sound_private.h>
35 #include "sound_manager_internal.h"
36
37 #define SOUND_SESSION_TYPE_DEFAULT SOUND_SESSION_TYPE_MEDIA
38
39 typedef struct {
40         int is_registered;
41         void *user_data;
42         sound_session_interrupted_cb user_cb;
43 }_session_interrupt_info_s;
44
45 typedef struct {
46         void *user_data;
47         sound_manager_volume_changed_cb user_cb;
48 }_volume_changed_info_s;
49
50 typedef struct {
51         void *user_data;
52         sound_device_connected_cb user_cb;
53 }_device_connected_info_s;
54
55 typedef struct {
56         void *user_data;
57         sound_device_information_changed_cb user_cb;
58 }_device_changed_info_s;
59
60 int __convert_sound_manager_error_code(const char *func, int code);
61
62 void __session_interrupt_cb(session_msg_t msg, session_event_t event, void *user_data);
63
64 #ifdef __cplusplus
65 }
66 #endif
67
68 #endif /* __TIZEN_MEDIA_SOUND_MANAGER_PRIVATE_H__ */