To use \hyperlink{group__Eio__Monitor_ga94d53797f31ffdaed9d548725b26cce4}{eio\+\_\+monitor\+\_\+add()}, you have to define callbacks for events declared by eio.

Available events are \+:
\begin{DoxyItemize}
\item E\+I\+O\+\_\+\+M\+O\+N\+I\+T\+O\+R\+\_\+\+F\+I\+L\+E\+\_\+\+C\+R\+E\+A\+T\+E\+D
\item E\+I\+O\+\_\+\+M\+O\+N\+I\+T\+O\+R\+\_\+\+F\+I\+L\+E\+\_\+\+D\+E\+L\+E\+T\+E\+D
\item E\+I\+O\+\_\+\+M\+O\+N\+I\+T\+O\+R\+\_\+\+F\+I\+L\+E\+\_\+\+M\+O\+D\+I\+F\+I\+E\+D
\item E\+I\+O\+\_\+\+M\+O\+N\+I\+T\+O\+R\+\_\+\+F\+I\+L\+E\+\_\+\+C\+L\+O\+S\+E\+D
\item E\+I\+O\+\_\+\+M\+O\+N\+I\+T\+O\+R\+\_\+\+D\+I\+R\+E\+C\+T\+O\+R\+Y\+\_\+\+C\+R\+E\+A\+T\+E\+D
\item E\+I\+O\+\_\+\+M\+O\+N\+I\+T\+O\+R\+\_\+\+D\+I\+R\+E\+C\+T\+O\+R\+Y\+\_\+\+D\+E\+L\+E\+T\+E\+D
\item E\+I\+O\+\_\+\+M\+O\+N\+I\+T\+O\+R\+\_\+\+D\+I\+R\+E\+C\+T\+O\+R\+Y\+\_\+\+C\+L\+O\+S\+E\+D
\item E\+I\+O\+\_\+\+M\+O\+N\+I\+T\+O\+R\+\_\+\+S\+E\+L\+F\+\_\+\+R\+E\+N\+A\+M\+E
\item E\+I\+O\+\_\+\+M\+O\+N\+I\+T\+O\+R\+\_\+\+S\+E\+L\+F\+\_\+\+D\+E\+L\+E\+T\+E\+D
\end{DoxyItemize}

As nothing is worth an example, here it is \+: 
\begin{DoxyCode}
\textcolor{preprocessor}{#include <\hyperlink{Eina_8h}{Eina.h}>}
\textcolor{preprocessor}{#include <Ecore.h>}
\textcolor{preprocessor}{#include <\hyperlink{Eio_8h}{Eio.h}>}

\textcolor{keywordtype}{void} file\_modified(\textcolor{keywordtype}{void} *data, \textcolor{keywordtype}{int} type, \textcolor{keywordtype}{void} *event)
\{
   \textcolor{keyword}{const} \textcolor{keywordtype}{char} *filename = (\textcolor{keyword}{const} \textcolor{keywordtype}{char} *)data;
   printf(\textcolor{stringliteral}{"file %s "}, filename);
   \textcolor{keywordflow}{if}( type == \hyperlink{group__Eio__Monitor_gae56edd04b84880985b40524ec6e1ca53}{EIO\_MONITOR\_FILE\_MODIFIED} )
      printf(\textcolor{stringliteral}{"is being modified"});
   \textcolor{keywordflow}{else} \textcolor{keywordflow}{if}( type == \hyperlink{group__Eio__Monitor_gace402c5431fe9365e784e5492fb7e37c}{EIO\_MONITOR\_FILE\_CLOSED} )
      printf(\textcolor{stringliteral}{"is not more being modified"});
   \textcolor{keywordflow}{else} printf(\textcolor{stringliteral}{"got unexpected changes"});
   printf(\textcolor{stringliteral}{"\(\backslash\)n"});
\}

\textcolor{keywordtype}{int} main(\textcolor{keywordtype}{int} argc, \textcolor{keywordtype}{char} **argv) \{
   Eio\_Monitor *monitor  = NULL,
               *monitor2 = NULL;
   \hyperlink{group__Eio__Helper_gac612fe5df9b9c93c275ee373745c2471}{eio\_init}();
   \textcolor{keyword}{const} \textcolor{keywordtype}{char} *filename = \hyperlink{group__Eina__Stringshare__Group_gac7a3f073cafb7af63b2c7cc2eabd1c1f}{eina\_stringshare\_add}(\textcolor{stringliteral}{"/tmp/eio\_notify\_testfile"});

   monitor  = \hyperlink{group__Eio__Monitor_ga94d53797f31ffdaed9d548725b26cce4}{eio\_monitor\_add}(filename);
   \hyperlink{group__Ecore__Event__Group_gae75b0b1b2c50e73b8e42afc628b00a62}{ecore\_event\_handler\_add}(\hyperlink{group__Eio__Monitor_gae56edd04b84880985b40524ec6e1ca53}{EIO\_MONITOR\_FILE\_MODIFIED}, (
      \hyperlink{group__Ecore__Event__Group_ga64b4df04cbafda481593d0bc29617c6d}{Ecore\_Event\_Handler\_Cb})file\_modified, filename);
   \hyperlink{group__Ecore__Event__Group_gae75b0b1b2c50e73b8e42afc628b00a62}{ecore\_event\_handler\_add}(\hyperlink{group__Eio__Monitor_gace402c5431fe9365e784e5492fb7e37c}{EIO\_MONITOR\_FILE\_CLOSED}, (
      \hyperlink{group__Ecore__Event__Group_ga64b4df04cbafda481593d0bc29617c6d}{Ecore\_Event\_Handler\_Cb})file\_modified, filename);

   \hyperlink{group__Ecore__Main__Loop__Group_gaf103b9f668bb3e4fed12e52c6180132d}{ecore\_main\_loop\_begin}();
   \hyperlink{group__Eio__Helper_ga2281001078f6f99e3662bc889524831b}{eio\_shutdown}();
   \hyperlink{group__Eina__Stringshare__Group_ga4453d2aff2b325c7b45048f30df9b1f5}{eina\_stringshare\_del}(filename);
\}
\end{DoxyCode}
 Build the example doing \+: \begin{DoxyVerb}gcc -o tutorial_monitor_add tutorial_monitor_add.c `pkg-config --libs --cflags eio ecore ecore-file eina`
* then create the file /tmp/eio_notify_testfile :
* touch /tmp/eio_notify_testfile
* and launch tutorial_monitor_add, and in another terminal, write into /tmp/eio_notify_testfile, doing for example :
* echo "test" >> /tmp/eio_notify_testfile
* \end{DoxyVerb}
 