From 842b16019dfd27250bcb0fac2d66c4685d994b12 Mon Sep 17 00:00:00 2001 From: gastal Date: Fri, 11 May 2012 14:08:07 +0000 Subject: [PATCH] Adding a warning to the file handler callback saying that the function can't be used to monitor regular files, like text files Author: Guilherme Iscaro git-svn-id: svn+ssh://svn.enlightenment.org/var/svn/e/trunk/ecore@70932 7cbeb6ba-43b4-40fd-8cce-4c39aea84d33 --- src/lib/ecore/Ecore.h | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/lib/ecore/Ecore.h b/src/lib/ecore/Ecore.h index a749edd..b6941cd 100644 --- a/src/lib/ecore/Ecore.h +++ b/src/lib/ecore/Ecore.h @@ -1069,6 +1069,9 @@ typedef Eina_Bool (*Ecore_Win32_Handle_Cb)(void *data, Ecore_Win32_Handler *wh); * Some systems, notably xlib, handle their own buffering, and would otherwise * not work with select(). These systems should use a @a buf_func. This is a * most annoying hack, only ecore_x uses it, so refer to that for an example. + * + * @warning This function should @b not be used for monitoring "normal" files, like text files. + * */ EAPI Ecore_Fd_Handler *ecore_main_fd_handler_add(int fd, Ecore_Fd_Handler_Flags flags, Ecore_Fd_Cb func, const void *data, Ecore_Fd_Cb buf_func, const void *buf_data); /** -- 2.7.4