To use \mbox{\hyperlink{group__Eio__Monitor_ga3acbc014c793f051c39a2216a0481757}{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\+ED
\item E\+I\+O\+\_\+\+M\+O\+N\+I\+T\+O\+R\+\_\+\+F\+I\+L\+E\+\_\+\+D\+E\+L\+E\+T\+ED
\item E\+I\+O\+\_\+\+M\+O\+N\+I\+T\+O\+R\+\_\+\+F\+I\+L\+E\+\_\+\+M\+O\+D\+I\+F\+I\+ED
\item E\+I\+O\+\_\+\+M\+O\+N\+I\+T\+O\+R\+\_\+\+F\+I\+L\+E\+\_\+\+C\+L\+O\+S\+ED
\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\+ED
\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\+ED
\item E\+I\+O\+\_\+\+M\+O\+N\+I\+T\+O\+R\+\_\+\+D\+I\+R\+E\+C\+T\+O\+R\+Y\+\_\+\+C\+L\+O\+S\+ED
\item E\+I\+O\+\_\+\+M\+O\+N\+I\+T\+O\+R\+\_\+\+S\+E\+L\+F\+\_\+\+R\+E\+N\+A\+ME
\item E\+I\+O\+\_\+\+M\+O\+N\+I\+T\+O\+R\+\_\+\+S\+E\+L\+F\+\_\+\+D\+E\+L\+E\+T\+ED
\end{DoxyItemize}

As nothing is worth an example, here it is \+: 
\begin{DoxyCode}{0}
\DoxyCodeLine{\textcolor{preprocessor}{\#include <\mbox{\hyperlink{Eina_8h}{Eina.h}}>}}
\DoxyCodeLine{\textcolor{preprocessor}{\#include <Ecore.h>}}
\DoxyCodeLine{\textcolor{preprocessor}{\#include <Eio.h>}}
\DoxyCodeLine{}
\DoxyCodeLine{\textcolor{keywordtype}{void} file\_modified(\textcolor{keywordtype}{void} *data, \textcolor{keywordtype}{int} type, \textcolor{keywordtype}{void} *event)}
\DoxyCodeLine{\{}
\DoxyCodeLine{   \textcolor{keyword}{const} \textcolor{keywordtype}{char} *filename = (\textcolor{keyword}{const} \textcolor{keywordtype}{char} *)data;}
\DoxyCodeLine{   printf(\textcolor{stringliteral}{"file \%s "}, filename);}
\DoxyCodeLine{   \textcolor{keywordflow}{if}( type == \mbox{\hyperlink{group__Eio__Monitor_gafdc00b88fb71d255c1244643bf238f78}{EIO\_MONITOR\_FILE\_MODIFIED}} )}
\DoxyCodeLine{      printf(\textcolor{stringliteral}{"is being modified"});}
\DoxyCodeLine{   \textcolor{keywordflow}{else} \textcolor{keywordflow}{if}( type == \mbox{\hyperlink{group__Eio__Monitor_ga6883e9d26906ab7f8dd7af582c93100d}{EIO\_MONITOR\_FILE\_CLOSED}} )}
\DoxyCodeLine{      printf(\textcolor{stringliteral}{"is no longer being modified"});}
\DoxyCodeLine{   \textcolor{keywordflow}{else} printf(\textcolor{stringliteral}{"got unexpected changes"});}
\DoxyCodeLine{   printf(\textcolor{stringliteral}{"\(\backslash\)n"});}
\DoxyCodeLine{\}}
\DoxyCodeLine{}
\DoxyCodeLine{\textcolor{keywordtype}{int} main(\textcolor{keywordtype}{int} argc, \textcolor{keywordtype}{char} **argv) \{}
\DoxyCodeLine{   Eio\_Monitor *monitor  = NULL,}
\DoxyCodeLine{               *monitor2 = NULL;}
\DoxyCodeLine{   \mbox{\hyperlink{group__Eio__Helper_ga89ffd478ac602179bf7877ed6adc90a9}{eio\_init}}();}
\DoxyCodeLine{   \textcolor{keyword}{const} \textcolor{keywordtype}{char} *filename = \mbox{\hyperlink{group__Eina__Stringshare__Group_ga5293082680141132ffcacc28866ef0ef}{eina\_stringshare\_add}}(\textcolor{stringliteral}{"/tmp/eio\_notify\_testfile"});}
\DoxyCodeLine{}
\DoxyCodeLine{   monitor  = \mbox{\hyperlink{group__Eio__Monitor_ga3acbc014c793f051c39a2216a0481757}{eio\_monitor\_add}}(filename);}
\DoxyCodeLine{   \mbox{\hyperlink{group__Ecore__Event__Group_gae75b0b1b2c50e73b8e42afc628b00a62}{ecore\_event\_handler\_add}}(\mbox{\hyperlink{group__Eio__Monitor_gafdc00b88fb71d255c1244643bf238f78}{EIO\_MONITOR\_FILE\_MODIFIED}}, (\mbox{\hyperlink{group__Ecore__Event__Group_ga64b4df04cbafda481593d0bc29617c6d}{Ecore\_Event\_Handler\_Cb}})file\_modified, filename);}
\DoxyCodeLine{   \mbox{\hyperlink{group__Ecore__Event__Group_gae75b0b1b2c50e73b8e42afc628b00a62}{ecore\_event\_handler\_add}}(\mbox{\hyperlink{group__Eio__Monitor_ga6883e9d26906ab7f8dd7af582c93100d}{EIO\_MONITOR\_FILE\_CLOSED}}, (\mbox{\hyperlink{group__Ecore__Event__Group_ga64b4df04cbafda481593d0bc29617c6d}{Ecore\_Event\_Handler\_Cb}})file\_modified, filename);}
\DoxyCodeLine{}
\DoxyCodeLine{   \mbox{\hyperlink{group__Ecore__Main__Loop__Group_gaf103b9f668bb3e4fed12e52c6180132d}{ecore\_main\_loop\_begin}}();}
\DoxyCodeLine{   \mbox{\hyperlink{group__Eio__Helper_ga8eea29cef62953a2916aecb08b222d66}{eio\_shutdown}}();}
\DoxyCodeLine{   \mbox{\hyperlink{group__Eina__Stringshare__Group_ga495411b0bc85b9c0d59ec7255a025260}{eina\_stringshare\_del}}(filename);}
\DoxyCodeLine{\}}
\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}
 