* Add ecore_thread_main_loop_begin and ecore_thread_main_loop_end.
Usefull to protect EFL call from another thread.
+2011-09-12 Mike Blumenkrantz
+
+ * Add ecore_con_server_fd_get, ecore_con_client_fd_get for manipulating
+ server file descriptors.
EAPI double ecore_con_server_timeout_get(Ecore_Con_Server *svr);
/**
+ * Get the fd that the server is connected to
+ *
+ * @param svr The server object
+ * @return The fd, or -1 on failure
+ *
+ * This function returns the fd which is used by the underlying server connection.
+ * It should not be tampered with unless you REALLY know what you are doing.
+ * @note This function is only valid for servers created with ecore_con_server_connect()
+ * @since 1.1
+ */
+EAPI int ecore_con_server_fd_get(Ecore_Con_Server *svr);
+
+/**
+ * Get the fd that the client is connected to
+ *
+ * @param cl The client object
+ * @return The fd, or -1 on failure
+ *
+ * This function returns the fd which is used by the underlying client connection.
+ * It should not be tampered with unless you REALLY know what you are doing.
+ * @since 1.1
+ */
+EAPI int ecore_con_client_fd_get(Ecore_Con_Client *cl);
+/**
* @}
*/
_ecore_con_client_flush(cl);
}
+EAPI int
+ecore_con_server_fd_get(Ecore_Con_Server *svr)
+{
+ if (!ECORE_MAGIC_CHECK(svr, ECORE_MAGIC_CON_SERVER))
+ {
+ ECORE_MAGIC_FAIL(svr, ECORE_MAGIC_CON_SERVER, __func__);
+ return -1;
+ }
+ if (svr->created) return -1;
+ return ecore_main_fd_handler_fd_get(svr->fd_handler);
+}
+
+EAPI int
+ecore_con_client_fd_get(Ecore_Con_Client *cl)
+{
+ if (!ECORE_MAGIC_CHECK(cl, ECORE_MAGIC_CON_CLIENT))
+ {
+ ECORE_MAGIC_FAIL(cl, ECORE_MAGIC_CON_CLIENT, __func__);
+ return -1;
+ }
+ return ecore_main_fd_handler_fd_get(cl->fd_handler);
+}
+
/**
* @}
*/