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__
52 char filename[FILE_PATH];
69 mmsound_ipc_t sound_msg;
72 typedef void (*mm_ipc_callback_t)(int code, int size);
74 int MMSoundGetTime(char *position);
75 int MMIpcCreate(const int key);
76 int MMIpcDestroy(const int key);
77 int MMIpcSendMsg(const int key, mm_ipc_msg_t *msg);
78 int MMIpcRecvMsg(const int key, mm_ipc_msg_t *msg);
80 int MMIpcSendMsgAsync(const char *ipcname, mm_ipc_msg_t *msg, mm_ipc_callback_t callback);
81 int MMIpcRecvMsgAsync(const char *ipcname, mm_ipc_msg_t **msg, mm_ipc_callback_t callback);
82 int MMIpcRecvData(const char *ipcname, void *data, int *size);
83 int MMIpcSendDataAsync(const char *ipcname, void *data, int size, mm_ipc_callback_t callback);
84 int __mm_sound_lock(void);
85 int __mm_sound_unlock(void);
87 #endif /* __MM_SOUND_IPC_H__ */