summaryrefslogtreecommitdiff
path: root/include/mm_sound_msg.h
diff options
context:
space:
mode:
Diffstat (limited to 'include/mm_sound_msg.h')
-rw-r--r--include/mm_sound_msg.h103
1 files changed, 103 insertions, 0 deletions
diff --git a/include/mm_sound_msg.h b/include/mm_sound_msg.h
new file mode 100644
index 0000000..4b1789b
--- /dev/null
+++ b/include/mm_sound_msg.h
@@ -0,0 +1,103 @@
+/*
+ * libmm-sound
+ *
+ * Copyright (c) 2000 - 2011 Samsung Electronics Co., Ltd. All rights reserved.
+ *
+ * Contact: Seungbae Shin <seungbae.shin@samsung.com>
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ *
+ */
+
+#ifndef __MM_SOUND_MSG_H__
+#define __MM_SOUND_MSG_H__
+
+#include <sys/time.h>
+#include <unistd.h>
+#include <mm_ipc.h>
+
+#define KEY_BASE_PATH "/tmp"
+#define RCV_MSG 0x21 /* rcv key */
+#define SND_MSG 0x24 /* snd key */
+#define CB_MSG 0x64 /* cb key */
+
+#define MEMTYPE_SUPPORT_MAX (1024 * 1024) /* 1MB */
+
+enum {
+ MM_SOUND_MSG_REQ_FILE = 1,
+ MM_SOUND_MSG_REQ_MEMORY = 2,
+ MM_SOUND_MSG_REQ_STOP = 3,
+ MM_SOUND_MSG_RES_FILE = 4,
+ MM_SOUND_MSG_RES_MEMORY = 5,
+ MM_SOUND_MSG_RES_STOP = 6,
+ MM_SOUND_MSG_INF_STOP_CB = 7,
+ MM_SOUND_MSG_RES_ERROR = 8,
+ MM_SOUND_MSG_INF_DESTROY_CB = 9,
+#ifdef PULSE_CLIENT
+ MM_SOUND_MSG_REQ_GET_AUDIO_ROUTE = 16,
+ MM_SOUND_MSG_RES_GET_AUDIO_ROUTE = 17,
+ MM_SOUND_MSG_REQ_SET_AUDIO_ROUTE = 18,
+ MM_SOUND_MSG_RES_SET_AUDIO_ROUTE = 19,
+#endif // PULSE_CLIENT
+ MM_SOUND_MSG_REQ_IS_BT_A2DP_ON = 20,
+ MM_SOUND_MSG_RES_IS_BT_A2DP_ON = 21,
+ MM_SOUND_MSG_REQ_DTMF = 22,
+ MM_SOUND_MSG_RES_DTMF = 23,
+ MM_SOUND_MSG_REQ_IS_ROUTE_AVAILABLE,
+ MM_SOUND_MSG_RES_IS_ROUTE_AVAILABLE,
+ MM_SOUND_MSG_REQ_FOREACH_AVAILABLE_ROUTE_CB,
+ MM_SOUND_MSG_RES_FOREACH_AVAILABLE_ROUTE_CB,
+ MM_SOUND_MSG_INF_FOREACH_AVAILABLE_ROUTE_CB,
+ MM_SOUND_MSG_REQ_SET_ACTIVE_ROUTE,
+ MM_SOUND_MSG_RES_SET_ACTIVE_ROUTE,
+ MM_SOUND_MSG_REQ_SET_ACTIVE_ROUTE_AUTO,
+ MM_SOUND_MSG_RES_SET_ACTIVE_ROUTE_AUTO,
+ MM_SOUND_MSG_REQ_GET_ACTIVE_DEVICE,
+ MM_SOUND_MSG_RES_GET_ACTIVE_DEVICE,
+ MM_SOUND_MSG_REQ_ADD_ACTIVE_DEVICE_CB,
+ MM_SOUND_MSG_RES_ADD_ACTIVE_DEVICE_CB,
+ MM_SOUND_MSG_REQ_REMOVE_ACTIVE_DEVICE_CB,
+ MM_SOUND_MSG_RES_REMOVE_ACTIVE_DEVICE_CB,
+ MM_SOUND_MSG_INF_ACTIVE_DEVICE_CB,
+ MM_SOUND_MSG_REQ_ADD_AVAILABLE_ROUTE_CB,
+ MM_SOUND_MSG_RES_ADD_AVAILABLE_ROUTE_CB,
+ MM_SOUND_MSG_REQ_REMOVE_AVAILABLE_ROUTE_CB,
+ MM_SOUND_MSG_RES_REMOVE_AVAILABLE_ROUTE_CB,
+ MM_SOUND_MSG_INF_AVAILABLE_ROUTE_CB,
+ MM_SOUND_MSG_REQ_ADD_VOLUME_CB,
+ MM_SOUND_MSG_RES_ADD_VOLUME_CB,
+ MM_SOUND_MSG_REQ_REMOVE_VOLUME_CB,
+ MM_SOUND_MSG_RES_REMOVE_VOLUME_CB,
+ MM_SOUND_MSG_INF_VOLUME_CB,
+ MM_SOUND_MSG_REQ_SET_PATH_FOR_ACTIVE_DEVICE,
+ MM_SOUND_MSG_RES_SET_PATH_FOR_ACTIVE_DEVICE,
+ MM_SOUND_MSG_REQ_GET_AUDIO_PATH,
+ MM_SOUND_MSG_RES_GET_AUDIO_PATH,
+ MM_SOUND_MSG_REQ_ADD_DEVICE_CONNECTED_CB,
+ MM_SOUND_MSG_RES_ADD_DEVICE_CONNECTED_CB,
+ MM_SOUND_MSG_REQ_REMOVE_DEVICE_CONNECTED_CB,
+ MM_SOUND_MSG_RES_REMOVE_DEVICE_CONNECTED_CB,
+ MM_SOUND_MSG_INF_DEVICE_CONNECTED_CB,
+ MM_SOUND_MSG_REQ_ADD_DEVICE_INFO_CHANGED_CB,
+ MM_SOUND_MSG_RES_ADD_DEVICE_INFO_CHANGED_CB,
+ MM_SOUND_MSG_REQ_REMOVE_DEVICE_INFO_CHANGED_CB,
+ MM_SOUND_MSG_RES_REMOVE_DEVICE_INFO_CHANGED_CB,
+ MM_SOUND_MSG_INF_DEVICE_INFO_CHANGED_CB,
+ MM_SOUND_MSG_REQ_GET_CONNECTED_DEVICE_LIST,
+ MM_SOUND_MSG_RES_GET_CONNECTED_DEVICE_LIST,
+};
+
+#define DSIZE sizeof(mm_ipc_msg_t)-sizeof(long) /* data size for rcv & snd */
+
+#endif /* __MM_SOUND_MSG_H__ */
+