4 * Copyright (c) 2000 - 2011 Samsung Electronics Co., Ltd. All rights reserved.
6 * Contact: Seungbae Shin <seungbae.shin@samsung.com>
8 * Licensed under the Apache License, Version 2.0 (the "License");
9 * you may not use this file except in compliance with the License.
10 * You may obtain a copy of the License at
12 * http://www.apache.org/licenses/LICENSE-2.0
14 * Unless required by applicable law or agreed to in writing, software
15 * distributed under the License is distributed on an "AS IS" BASIS,
16 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
17 * See the License for the specific language governing permissions and
18 * limitations under the License.
22 #ifndef __MM_SOUND_IPC_H__
23 #define __MM_SOUND_IPC_H__
54 char filename[FILE_PATH];
61 int route_list[MM_SOUND_ROUTE_NUM];
78 mmsound_ipc_t sound_msg;
81 typedef void (*mm_ipc_callback_t)(int code, int size);
83 int MMSoundGetTime(char *position);
84 int MMIpcCreate(const int key);
85 int MMIpcDestroy(const int key);
86 int MMIpcSendMsg(const int key, mm_ipc_msg_t *msg);
87 int MMIpcRecvMsg(const int key, mm_ipc_msg_t *msg);
89 int MMIpcSendMsgAsync(const char *ipcname, mm_ipc_msg_t *msg, mm_ipc_callback_t callback);
90 int MMIpcRecvMsgAsync(const char *ipcname, mm_ipc_msg_t **msg, mm_ipc_callback_t callback);
91 int MMIpcRecvData(const char *ipcname, void *data, int *size);
92 int MMIpcSendDataAsync(const char *ipcname, void *data, int size, mm_ipc_callback_t callback);
93 int __mm_sound_lock(void);
94 int __mm_sound_unlock(void);
96 #endif /* __MM_SOUND_IPC_H__ */