#define DATA_WORKER_QDATA_MAX_SIZE (3840 * 2160 * 4) /* UHD BGRA8888 */
#define UNLIMITED_INSTANCE -1
-static void _ms_ipc_module_cleanup(muse_module_h m, void *jobj);
+static void _ms_ipc_module_cleanup(muse_module_h m);
static gboolean _ms_ipc_module_instance_creation_is_allowed(int module_idx);
static gpointer _ms_ipc_dispatch_worker(gpointer data);
static gboolean _ms_ipc_data_processing(int fd, muse_recv_data_head_t *header, muse_channel_info_t *ch);
static gpointer _ms_ipc_data_worker(gpointer data);
-static void _ms_ipc_module_cleanup(muse_module_h m, void *jobj)
+static void _ms_ipc_module_cleanup(muse_module_h m)
{
muse_return_if_fail(m);
ms_connection_unregister(m);
- muse_core_msg_object_free(jobj);
-
ms_exit_worker(m);
}
while (attempt_to_dispatch) {
memset(m->recv_msg, 0x00, sizeof(m->recv_msg));
- for (i = 0 ; i < MUSE_NUM_FD ; i++)
+ for (i = 0; i < MUSE_NUM_FD; i++)
m->ch[MUSE_CHANNEL_MSG].tbm_fd[i] = -1;
len = muse_core_msg_recv_fd(fd, m->recv_msg, MUSE_MSG_MAX_LENGTH, m->ch[MUSE_CHANNEL_MSG].tbm_fd);
}
}
- _ms_ipc_module_cleanup(m, jobj);
+ _ms_ipc_module_cleanup(m);
LOGD("Leave");
return NULL;