tizen 2.3 release
[framework/api/wav-player.git] / include / wav_player_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_WAV_PLAYER_PRIVATE_H__
18 #define __TIZEN_MEDIA_WAV_PLAYER_PRIVATE_H__
19
20 #include <tizen.h>
21 #include <sound_manager.h>
22 #include <sound_manager_internal.h>
23 #include <wav_player.h>
24
25 #ifdef __cplusplus
26 extern "C"
27 {
28 #endif
29
30 #define WAV_PLAYER_ERROR_CLASS          TIZEN_ERROR_MULTIMEDIA_CLASS | 0x50
31
32 /**
33  * @file wav_player_private.h
34  * @brief This file contains the WAV player API
35  */
36
37 /**
38  * @addtogroup CAPI_MEDIA_WAV_PLAYER_MODULE
39  * @{
40  */
41
42
43 typedef struct _cb_data_{
44         wav_player_playback_completed_cb cb;
45         void * user_data;
46 } _cb_data;
47
48 /**
49  * @}
50  */
51
52 #ifdef __cplusplus
53 }
54 #endif
55
56 int __convert_wav_player_error_code(const char *func, int code);
57 void __internal_complete_cb(void *user_data, int id);
58
59 #endif /* __TIZEN_MEDIA_WAV_PLAYER_PRIVATE_H__ */