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__
29 #include "mm_sound_device.h"
56 char filename[FILE_PATH];
59 mm_sound_device_t device_handle;
63 int changed_device_info_type;
69 int route_list[MM_SOUND_ROUTE_NUM];
90 char name[MM_SOUND_NAME_NUM];
96 mmsound_ipc_t sound_msg;
99 typedef void (*mm_ipc_callback_t)(int code, int size);
101 int MMSoundGetTime(char *position);
102 int MMIpcCreate(const int key);
103 int MMIpcDestroy(const int key);
104 int MMIpcSendMsg(const int key, mm_ipc_msg_t *msg);
105 int MMIpcRecvMsg(const int key, mm_ipc_msg_t *msg);
107 int MMIpcSendMsgAsync(const char *ipcname, mm_ipc_msg_t *msg, mm_ipc_callback_t callback);
108 int MMIpcRecvMsgAsync(const char *ipcname, mm_ipc_msg_t **msg, mm_ipc_callback_t callback);
109 int MMIpcRecvData(const char *ipcname, void *data, int *size);
110 int MMIpcSendDataAsync(const char *ipcname, void *data, int size, mm_ipc_callback_t callback);
111 int __mm_sound_lock(void);
112 int __mm_sound_unlock(void);
114 #endif /* __MM_SOUND_IPC_H__ */