_ms_connection_module_instance_info(m, connection, queue, API_DESTROY);
+ LOGI("[%d] g_cond_signal", fd);
+ g_cond_signal(&connection->cond);
+
ms_connection_unlock(connection);
LOGD("Leave");
return MM_ERROR_NONE;
}
-gboolean ms_connection_get_state(ms_connection_state_e *state)
+gboolean ms_connection_get_state(ms_connection_state_e *state, int *out_fd)
{
int idx, fd, ep_fd, fd_count, errsv;
struct epoll_event *p_event;
ms_connection_t *connection = NULL;
muse_return_val_if_fail(ms_get_instance(), MM_ERROR_UNKNOWN);
+ muse_return_val_if_fail(out_fd, MM_ERROR_INVALID_ARGUMENT);
connection = ms_get_instance()->connection;
}
*state = MUSE_CONNECTION_STATE_DISCONNECTED;
}
+ *out_fd = fd;
}
return TRUE;