\hypertarget{group__Eio__Helper}{}\section{Eio Reference helper A\+PI}
\label{group__Eio__Helper}\index{Eio Reference helper A\+PI@{Eio Reference helper A\+PI}}


This are helper provided around core Eio A\+PI.  


\subsection*{Functions}
\begin{DoxyCompactItemize}
\item 
\hyperlink{group__Elua_ga3db3556eec8ef18cb8ddb43816974ac8}{E\+A\+PI} int \hyperlink{group__Eio__Helper_gac612fe5df9b9c93c275ee373745c2471}{eio\+\_\+init} (void)
\begin{DoxyCompactList}\small\item\em Initialize eio and all its required submodule. \end{DoxyCompactList}\item 
\hyperlink{group__Elua_ga3db3556eec8ef18cb8ddb43816974ac8}{E\+A\+PI} int \hyperlink{group__Eio__Helper_ga2281001078f6f99e3662bc889524831b}{eio\+\_\+shutdown} (void)
\begin{DoxyCompactList}\small\item\em Shutdown eio and all its submodule if possible. \end{DoxyCompactList}\item 
\hyperlink{group__Elua_ga3db3556eec8ef18cb8ddb43816974ac8}{E\+A\+PI} void \hyperlink{group__Eio__Helper_ga57bd4ee7646a1fc785a77f908924c416}{eio\+\_\+memory\+\_\+burst\+\_\+limit\+\_\+set} (size\+\_\+t limit)
\begin{DoxyCompactList}\small\item\em Set the limit to the maximum amount of memory used. \end{DoxyCompactList}\item 
\hyperlink{group__Elua_ga3db3556eec8ef18cb8ddb43816974ac8}{E\+A\+PI} size\+\_\+t \hyperlink{group__Eio__Helper_ga857f78deca5fd2310cfe8bdc3f89a51a}{eio\+\_\+memory\+\_\+burst\+\_\+limit\+\_\+get} (void)
\begin{DoxyCompactList}\small\item\em Get the actual limit to the maximum amount of memory used. \end{DoxyCompactList}\item 
\hyperlink{group__Elua_ga3db3556eec8ef18cb8ddb43816974ac8}{E\+A\+PI} void $\ast$ \hyperlink{group__Eio__Helper_ga44520dafc4a5066e9e1378d4a7a892c5}{eio\+\_\+file\+\_\+container\+\_\+get} (\hyperlink{group__Eio__List_ga1145f009745ecb4d9f6a01a9bc5a9ac0}{Eio\+\_\+\+File} $\ast$ls)
\begin{DoxyCompactList}\small\item\em Return the container during E\+IO operation. \end{DoxyCompactList}\item 
\hyperlink{group__Elua_ga3db3556eec8ef18cb8ddb43816974ac8}{E\+A\+PI} \hyperlink{group__Eina__Types__Group_ga3fe0caf72e93b1bab1ca8ee3ccf3f226}{Eina\+\_\+\+Bool} \hyperlink{group__Eio__Helper_gad93d85d644f29d726a76e7348b9aa0f2}{eio\+\_\+file\+\_\+cancel} (\hyperlink{group__Eio__List_ga1145f009745ecb4d9f6a01a9bc5a9ac0}{Eio\+\_\+\+File} $\ast$ls)
\begin{DoxyCompactList}\small\item\em Cancel any Eio\+\_\+\+File. \end{DoxyCompactList}\item 
\hyperlink{group__Elua_ga3db3556eec8ef18cb8ddb43816974ac8}{E\+A\+PI} \hyperlink{group__Eina__Types__Group_ga3fe0caf72e93b1bab1ca8ee3ccf3f226}{Eina\+\_\+\+Bool} \hyperlink{group__Eio__Helper_ga47d30b2024e432b2bc9bf21f879747b7}{eio\+\_\+file\+\_\+check} (\hyperlink{group__Eio__List_ga1145f009745ecb4d9f6a01a9bc5a9ac0}{Eio\+\_\+\+File} $\ast$ls)
\begin{DoxyCompactList}\small\item\em Check if an Eio\+\_\+\+File operation has been cancelled. \end{DoxyCompactList}\item 
\hyperlink{group__Elua_ga3db3556eec8ef18cb8ddb43816974ac8}{E\+A\+PI} \hyperlink{group__Eina__Types__Group_ga3fe0caf72e93b1bab1ca8ee3ccf3f226}{Eina\+\_\+\+Bool} \hyperlink{group__Eio__Helper_gab2573246b0d4face54be3ef149751efb}{eio\+\_\+file\+\_\+associate\+\_\+add} (\hyperlink{group__Eio__List_ga1145f009745ecb4d9f6a01a9bc5a9ac0}{Eio\+\_\+\+File} $\ast$ls, const char $\ast$key, const void $\ast$data, \hyperlink{group__Eina__Types__Group_gadbac560ba2bca5c61d97bfbb542018f3}{Eina\+\_\+\+Free\+\_\+\+Cb} free\+\_\+cb)
\begin{DoxyCompactList}\small\item\em Associate data with the current filtered file. \end{DoxyCompactList}\item 
\hyperlink{group__Elua_ga3db3556eec8ef18cb8ddb43816974ac8}{E\+A\+PI} \hyperlink{group__Eina__Types__Group_ga3fe0caf72e93b1bab1ca8ee3ccf3f226}{Eina\+\_\+\+Bool} \hyperlink{group__Eio__Helper_ga335a93b8e07bb926b1347c02303f58c6}{eio\+\_\+file\+\_\+associate\+\_\+direct\+\_\+add} (\hyperlink{group__Eio__List_ga1145f009745ecb4d9f6a01a9bc5a9ac0}{Eio\+\_\+\+File} $\ast$ls, const char $\ast$key, const void $\ast$data, \hyperlink{group__Eina__Types__Group_gadbac560ba2bca5c61d97bfbb542018f3}{Eina\+\_\+\+Free\+\_\+\+Cb} free\+\_\+cb)
\begin{DoxyCompactList}\small\item\em Associate data with the current filtered file. \end{DoxyCompactList}\item 
\hyperlink{group__Elua_ga3db3556eec8ef18cb8ddb43816974ac8}{E\+A\+PI} void $\ast$ \hyperlink{group__Eio__Helper_ga67e04d574f768dae03ab1143ed15990c}{eio\+\_\+file\+\_\+associate\+\_\+find} (\hyperlink{group__Eio__List_ga1145f009745ecb4d9f6a01a9bc5a9ac0}{Eio\+\_\+\+File} $\ast$ls, const char $\ast$key)
\begin{DoxyCompactList}\small\item\em Get the data associated during the filter callback inside the main loop. \end{DoxyCompactList}\item 
static double \hyperlink{group__Eio__Helper_ga01f812f6cabd9f6940169d809d4d1523}{eio\+\_\+file\+\_\+atime} (const \hyperlink{group__Eina__File__Group_gab15fe1278f044850fcb24417a47364a8}{Eina\+\_\+\+Stat} $\ast$stat)
\begin{DoxyCompactList}\small\item\em get access time from a Eina\+\_\+\+Stat \end{DoxyCompactList}\item 
static double \hyperlink{group__Eio__Helper_gaf5e7af8f2e5136c8a16b3e315d665d7c}{eio\+\_\+file\+\_\+mtime} (const \hyperlink{group__Eina__File__Group_gab15fe1278f044850fcb24417a47364a8}{Eina\+\_\+\+Stat} $\ast$stat)
\begin{DoxyCompactList}\small\item\em get modification time from a Eina\+\_\+\+Stat \end{DoxyCompactList}\item 
static long long \hyperlink{group__Eio__Helper_gad8597d8d8cf7546ceae4144d0b62ec94}{eio\+\_\+file\+\_\+size} (const \hyperlink{group__Eina__File__Group_gab15fe1278f044850fcb24417a47364a8}{Eina\+\_\+\+Stat} $\ast$stat)
\begin{DoxyCompactList}\small\item\em get the size of the file described in Eina\+\_\+\+Stat \end{DoxyCompactList}\item 
static \hyperlink{group__Eina__Types__Group_ga3fe0caf72e93b1bab1ca8ee3ccf3f226}{Eina\+\_\+\+Bool} \hyperlink{group__Eio__Helper_ga6eed8614724e0b3e83dd74d10a7b220b}{eio\+\_\+file\+\_\+is\+\_\+dir} (const \hyperlink{group__Eina__File__Group_gab15fe1278f044850fcb24417a47364a8}{Eina\+\_\+\+Stat} $\ast$stat)
\begin{DoxyCompactList}\small\item\em tell if the stated path was a directory or not. \end{DoxyCompactList}\item 
static \hyperlink{group__Eina__Types__Group_ga3fe0caf72e93b1bab1ca8ee3ccf3f226}{Eina\+\_\+\+Bool} \hyperlink{group__Eio__Helper_ga20b5b0abdeb0f7d9b406b3aa3b4567b3}{eio\+\_\+file\+\_\+is\+\_\+lnk} (const \hyperlink{group__Eina__File__Group_gab15fe1278f044850fcb24417a47364a8}{Eina\+\_\+\+Stat} $\ast$stat)
\begin{DoxyCompactList}\small\item\em tell if the stated path was a link or not. \end{DoxyCompactList}\end{DoxyCompactItemize}


\subsection{Detailed Description}
This are helper provided around core Eio A\+PI. 

This set of functions do provide helper to work around data provided by Eio without the need to look at system header. 

\subsection{Function Documentation}
\mbox{\Hypertarget{group__Eio__Helper_gac612fe5df9b9c93c275ee373745c2471}\label{group__Eio__Helper_gac612fe5df9b9c93c275ee373745c2471}} 
\index{Eio Reference helper A\+PI@{Eio Reference helper A\+PI}!eio\+\_\+init@{eio\+\_\+init}}
\index{eio\+\_\+init@{eio\+\_\+init}!Eio Reference helper A\+PI@{Eio Reference helper A\+PI}}
\subsubsection{\texorpdfstring{eio\+\_\+init()}{eio\_init()}}
{\footnotesize\ttfamily \hyperlink{group__Elua_ga3db3556eec8ef18cb8ddb43816974ac8}{E\+A\+PI} int eio\+\_\+init (\begin{DoxyParamCaption}\item[{void}]{ }\end{DoxyParamCaption})}



Initialize eio and all its required submodule. 

\begin{DoxyReturn}{Returns}
the current number of eio users. 
\end{DoxyReturn}
\begin{Desc}
\item[Examples\+: ]\par
\hyperlink{eio_file_ls_8c-example}{eio\+\_\+file\+\_\+ls.\+c}.\end{Desc}


References ecore\+\_\+init(), eina\+\_\+condition\+\_\+new(), eina\+\_\+init(), eina\+\_\+lock\+\_\+new(), eina\+\_\+log\+\_\+domain\+\_\+register(), E\+I\+N\+A\+\_\+\+L\+O\+G\+\_\+\+E\+RR, eina\+\_\+log\+\_\+timing(), eina\+\_\+spinlock\+\_\+new(), and E\+RR.

\mbox{\Hypertarget{group__Eio__Helper_ga2281001078f6f99e3662bc889524831b}\label{group__Eio__Helper_ga2281001078f6f99e3662bc889524831b}} 
\index{Eio Reference helper A\+PI@{Eio Reference helper A\+PI}!eio\+\_\+shutdown@{eio\+\_\+shutdown}}
\index{eio\+\_\+shutdown@{eio\+\_\+shutdown}!Eio Reference helper A\+PI@{Eio Reference helper A\+PI}}
\subsubsection{\texorpdfstring{eio\+\_\+shutdown()}{eio\_shutdown()}}
{\footnotesize\ttfamily \hyperlink{group__Elua_ga3db3556eec8ef18cb8ddb43816974ac8}{E\+A\+PI} int eio\+\_\+shutdown (\begin{DoxyParamCaption}\item[{void}]{ }\end{DoxyParamCaption})}



Shutdown eio and all its submodule if possible. 

\begin{DoxyReturn}{Returns}
the number of pending users of eio. 
\end{DoxyReturn}
\begin{Desc}
\item[Examples\+: ]\par
\hyperlink{eio_file_ls_8c-example}{eio\+\_\+file\+\_\+ls.\+c}.\end{Desc}


References eina\+\_\+log\+\_\+timing(), and E\+RR.

\mbox{\Hypertarget{group__Eio__Helper_ga57bd4ee7646a1fc785a77f908924c416}\label{group__Eio__Helper_ga57bd4ee7646a1fc785a77f908924c416}} 
\index{Eio Reference helper A\+PI@{Eio Reference helper A\+PI}!eio\+\_\+memory\+\_\+burst\+\_\+limit\+\_\+set@{eio\+\_\+memory\+\_\+burst\+\_\+limit\+\_\+set}}
\index{eio\+\_\+memory\+\_\+burst\+\_\+limit\+\_\+set@{eio\+\_\+memory\+\_\+burst\+\_\+limit\+\_\+set}!Eio Reference helper A\+PI@{Eio Reference helper A\+PI}}
\subsubsection{\texorpdfstring{eio\+\_\+memory\+\_\+burst\+\_\+limit\+\_\+set()}{eio\_memory\_burst\_limit\_set()}}
{\footnotesize\ttfamily \hyperlink{group__Elua_ga3db3556eec8ef18cb8ddb43816974ac8}{E\+A\+PI} void eio\+\_\+memory\+\_\+burst\+\_\+limit\+\_\+set (\begin{DoxyParamCaption}\item[{size\+\_\+t}]{limit }\end{DoxyParamCaption})}



Set the limit to the maximum amount of memory used. 


\begin{DoxyParams}{Parameters}
{\em limit} & The actual limit to set.\\
\hline
\end{DoxyParams}
Eio work by burst, allocating memory in a thread and moving it back to the main loop. This result in quite some huge memory usage if the main loop is to slow to cope with the speed of the thread. By setting this limit, the thread will block until enough memory has been freed to be below the limit again.

By default no limit is set and any value $<$ 0 will mean no limit.

\begin{DoxyNote}{Note}
You should give at least a reasonable amount of memory or the thread might stall. 
\end{DoxyNote}
\begin{DoxySince}{Since}
1.\+10 
\end{DoxySince}


References eina\+\_\+condition\+\_\+broadcast(), eina\+\_\+lock\+\_\+release(), and eina\+\_\+lock\+\_\+take().

\mbox{\Hypertarget{group__Eio__Helper_ga857f78deca5fd2310cfe8bdc3f89a51a}\label{group__Eio__Helper_ga857f78deca5fd2310cfe8bdc3f89a51a}} 
\index{Eio Reference helper A\+PI@{Eio Reference helper A\+PI}!eio\+\_\+memory\+\_\+burst\+\_\+limit\+\_\+get@{eio\+\_\+memory\+\_\+burst\+\_\+limit\+\_\+get}}
\index{eio\+\_\+memory\+\_\+burst\+\_\+limit\+\_\+get@{eio\+\_\+memory\+\_\+burst\+\_\+limit\+\_\+get}!Eio Reference helper A\+PI@{Eio Reference helper A\+PI}}
\subsubsection{\texorpdfstring{eio\+\_\+memory\+\_\+burst\+\_\+limit\+\_\+get()}{eio\_memory\_burst\_limit\_get()}}
{\footnotesize\ttfamily \hyperlink{group__Elua_ga3db3556eec8ef18cb8ddb43816974ac8}{E\+A\+PI} size\+\_\+t eio\+\_\+memory\+\_\+burst\+\_\+limit\+\_\+get (\begin{DoxyParamCaption}\item[{void}]{ }\end{DoxyParamCaption})}



Get the actual limit to the maximum amount of memory used. 

\begin{DoxyReturn}{Returns}
The current limit being set.
\end{DoxyReturn}
\begin{DoxySince}{Since}
1.\+10 
\end{DoxySince}
\begin{DoxySeeAlso}{See also}
\hyperlink{group__Eio__Helper_ga57bd4ee7646a1fc785a77f908924c416}{eio\+\_\+memory\+\_\+burst\+\_\+limit\+\_\+set} 
\end{DoxySeeAlso}
\mbox{\Hypertarget{group__Eio__Helper_ga44520dafc4a5066e9e1378d4a7a892c5}\label{group__Eio__Helper_ga44520dafc4a5066e9e1378d4a7a892c5}} 
\index{Eio Reference helper A\+PI@{Eio Reference helper A\+PI}!eio\+\_\+file\+\_\+container\+\_\+get@{eio\+\_\+file\+\_\+container\+\_\+get}}
\index{eio\+\_\+file\+\_\+container\+\_\+get@{eio\+\_\+file\+\_\+container\+\_\+get}!Eio Reference helper A\+PI@{Eio Reference helper A\+PI}}
\subsubsection{\texorpdfstring{eio\+\_\+file\+\_\+container\+\_\+get()}{eio\_file\_container\_get()}}
{\footnotesize\ttfamily \hyperlink{group__Elua_ga3db3556eec8ef18cb8ddb43816974ac8}{E\+A\+PI} void$\ast$ eio\+\_\+file\+\_\+container\+\_\+get (\begin{DoxyParamCaption}\item[{\hyperlink{group__Eio__List_ga1145f009745ecb4d9f6a01a9bc5a9ac0}{Eio\+\_\+\+File} $\ast$}]{ls }\end{DoxyParamCaption})}



Return the container during E\+IO operation. 


\begin{DoxyParams}{Parameters}
{\em ls} & The asynchronous I/O operation to retrieve container from. \\
\hline
\end{DoxyParams}
\begin{DoxyReturn}{Returns}
N\+U\+LL if not available, a D\+I\+RP if it is.
\end{DoxyReturn}
This is only available and make sense in the thread callback, not in the mainloop. \mbox{\Hypertarget{group__Eio__Helper_gad93d85d644f29d726a76e7348b9aa0f2}\label{group__Eio__Helper_gad93d85d644f29d726a76e7348b9aa0f2}} 
\index{Eio Reference helper A\+PI@{Eio Reference helper A\+PI}!eio\+\_\+file\+\_\+cancel@{eio\+\_\+file\+\_\+cancel}}
\index{eio\+\_\+file\+\_\+cancel@{eio\+\_\+file\+\_\+cancel}!Eio Reference helper A\+PI@{Eio Reference helper A\+PI}}
\subsubsection{\texorpdfstring{eio\+\_\+file\+\_\+cancel()}{eio\_file\_cancel()}}
{\footnotesize\ttfamily \hyperlink{group__Elua_ga3db3556eec8ef18cb8ddb43816974ac8}{E\+A\+PI} \hyperlink{group__Eina__Types__Group_ga3fe0caf72e93b1bab1ca8ee3ccf3f226}{Eina\+\_\+\+Bool} eio\+\_\+file\+\_\+cancel (\begin{DoxyParamCaption}\item[{\hyperlink{group__Eio__List_ga1145f009745ecb4d9f6a01a9bc5a9ac0}{Eio\+\_\+\+File} $\ast$}]{ls }\end{DoxyParamCaption})}



Cancel any Eio\+\_\+\+File. 


\begin{DoxyParams}{Parameters}
{\em ls} & The asynchronous I/O operation to cancel. \\
\hline
\end{DoxyParams}
\begin{DoxyReturn}{Returns}
E\+I\+N\+A\+\_\+\+F\+A\+L\+SE if the destruction is delayed, E\+I\+N\+A\+\_\+\+T\+R\+UE if it\textquotesingle{}s done.
\end{DoxyReturn}
This will cancel any kind of I/O operation and cleanup the mess. This means that it could take time to cancel an I/O. 

References E\+I\+N\+A\+\_\+\+F\+A\+L\+SE.

\mbox{\Hypertarget{group__Eio__Helper_ga47d30b2024e432b2bc9bf21f879747b7}\label{group__Eio__Helper_ga47d30b2024e432b2bc9bf21f879747b7}} 
\index{Eio Reference helper A\+PI@{Eio Reference helper A\+PI}!eio\+\_\+file\+\_\+check@{eio\+\_\+file\+\_\+check}}
\index{eio\+\_\+file\+\_\+check@{eio\+\_\+file\+\_\+check}!Eio Reference helper A\+PI@{Eio Reference helper A\+PI}}
\subsubsection{\texorpdfstring{eio\+\_\+file\+\_\+check()}{eio\_file\_check()}}
{\footnotesize\ttfamily \hyperlink{group__Elua_ga3db3556eec8ef18cb8ddb43816974ac8}{E\+A\+PI} \hyperlink{group__Eina__Types__Group_ga3fe0caf72e93b1bab1ca8ee3ccf3f226}{Eina\+\_\+\+Bool} eio\+\_\+file\+\_\+check (\begin{DoxyParamCaption}\item[{\hyperlink{group__Eio__List_ga1145f009745ecb4d9f6a01a9bc5a9ac0}{Eio\+\_\+\+File} $\ast$}]{ls }\end{DoxyParamCaption})}



Check if an Eio\+\_\+\+File operation has been cancelled. 


\begin{DoxyParams}{Parameters}
{\em ls} & The asynchronous I/O operation to check. \\
\hline
\end{DoxyParams}
\begin{DoxyReturn}{Returns}
E\+I\+N\+A\+\_\+\+T\+R\+UE if it was canceled, E\+I\+N\+A\+\_\+\+F\+A\+L\+SE other wise.
\end{DoxyReturn}
In case of an error it also return E\+I\+N\+A\+\_\+\+T\+R\+UE. \mbox{\Hypertarget{group__Eio__Helper_gab2573246b0d4face54be3ef149751efb}\label{group__Eio__Helper_gab2573246b0d4face54be3ef149751efb}} 
\index{Eio Reference helper A\+PI@{Eio Reference helper A\+PI}!eio\+\_\+file\+\_\+associate\+\_\+add@{eio\+\_\+file\+\_\+associate\+\_\+add}}
\index{eio\+\_\+file\+\_\+associate\+\_\+add@{eio\+\_\+file\+\_\+associate\+\_\+add}!Eio Reference helper A\+PI@{Eio Reference helper A\+PI}}
\subsubsection{\texorpdfstring{eio\+\_\+file\+\_\+associate\+\_\+add()}{eio\_file\_associate\_add()}}
{\footnotesize\ttfamily \hyperlink{group__Elua_ga3db3556eec8ef18cb8ddb43816974ac8}{E\+A\+PI} \hyperlink{group__Eina__Types__Group_ga3fe0caf72e93b1bab1ca8ee3ccf3f226}{Eina\+\_\+\+Bool} eio\+\_\+file\+\_\+associate\+\_\+add (\begin{DoxyParamCaption}\item[{\hyperlink{group__Eio__List_ga1145f009745ecb4d9f6a01a9bc5a9ac0}{Eio\+\_\+\+File} $\ast$}]{ls,  }\item[{const char $\ast$}]{key,  }\item[{const void $\ast$}]{data,  }\item[{\hyperlink{group__Eina__Types__Group_gadbac560ba2bca5c61d97bfbb542018f3}{Eina\+\_\+\+Free\+\_\+\+Cb}}]{free\+\_\+cb }\end{DoxyParamCaption})}



Associate data with the current filtered file. 


\begin{DoxyParams}{Parameters}
{\em ls} & The Eio\+\_\+\+File ls request currently calling the filter callback. \\
\hline
{\em key} & The key to associate data to. \\
\hline
{\em data} & The data to associate the data to. \\
\hline
{\em free\+\_\+cb} & Optionally a function to call to free the associated data, {\ttfamily data} is passed as the callback data parameter. If no {\ttfamily free\+\_\+cb} is provided the user {\ttfamily data} remains untouched. \\
\hline
\end{DoxyParams}
\begin{DoxyReturn}{Returns}
E\+I\+N\+A\+\_\+\+T\+R\+UE if insertion was fine.
\end{DoxyReturn}
This function can only be safely called from within the filter callback. If you don\textquotesingle{}t need to copy the key around you can use \hyperlink{group__Eio__Helper_ga335a93b8e07bb926b1347c02303f58c6}{eio\+\_\+file\+\_\+associate\+\_\+direct\+\_\+add} \mbox{\Hypertarget{group__Eio__Helper_ga335a93b8e07bb926b1347c02303f58c6}\label{group__Eio__Helper_ga335a93b8e07bb926b1347c02303f58c6}} 
\index{Eio Reference helper A\+PI@{Eio Reference helper A\+PI}!eio\+\_\+file\+\_\+associate\+\_\+direct\+\_\+add@{eio\+\_\+file\+\_\+associate\+\_\+direct\+\_\+add}}
\index{eio\+\_\+file\+\_\+associate\+\_\+direct\+\_\+add@{eio\+\_\+file\+\_\+associate\+\_\+direct\+\_\+add}!Eio Reference helper A\+PI@{Eio Reference helper A\+PI}}
\subsubsection{\texorpdfstring{eio\+\_\+file\+\_\+associate\+\_\+direct\+\_\+add()}{eio\_file\_associate\_direct\_add()}}
{\footnotesize\ttfamily \hyperlink{group__Elua_ga3db3556eec8ef18cb8ddb43816974ac8}{E\+A\+PI} \hyperlink{group__Eina__Types__Group_ga3fe0caf72e93b1bab1ca8ee3ccf3f226}{Eina\+\_\+\+Bool} eio\+\_\+file\+\_\+associate\+\_\+direct\+\_\+add (\begin{DoxyParamCaption}\item[{\hyperlink{group__Eio__List_ga1145f009745ecb4d9f6a01a9bc5a9ac0}{Eio\+\_\+\+File} $\ast$}]{ls,  }\item[{const char $\ast$}]{key,  }\item[{const void $\ast$}]{data,  }\item[{\hyperlink{group__Eina__Types__Group_gadbac560ba2bca5c61d97bfbb542018f3}{Eina\+\_\+\+Free\+\_\+\+Cb}}]{free\+\_\+cb }\end{DoxyParamCaption})}



Associate data with the current filtered file. 


\begin{DoxyParams}{Parameters}
{\em ls} & The Eio\+\_\+\+File ls request currently calling the filter callback. \\
\hline
{\em key} & The key to associate data to (will not be copied, and the pointer will not be used as long as the file is not notified). \\
\hline
{\em data} & The data to associate the data to. \\
\hline
{\em free\+\_\+cb} & The function to call to free the associated data, {\ttfamily free\+\_\+cb} will be called if not specified. \\
\hline
\end{DoxyParams}
\begin{DoxyReturn}{Returns}
E\+I\+N\+A\+\_\+\+T\+R\+UE if insertion was fine.
\end{DoxyReturn}
This function can only be safely called from within the filter callback. If you need eio to make a proper copy of the {\ttfamily key} to be safe use \hyperlink{group__Eio__Helper_gab2573246b0d4face54be3ef149751efb}{eio\+\_\+file\+\_\+associate\+\_\+add} instead. \mbox{\Hypertarget{group__Eio__Helper_ga67e04d574f768dae03ab1143ed15990c}\label{group__Eio__Helper_ga67e04d574f768dae03ab1143ed15990c}} 
\index{Eio Reference helper A\+PI@{Eio Reference helper A\+PI}!eio\+\_\+file\+\_\+associate\+\_\+find@{eio\+\_\+file\+\_\+associate\+\_\+find}}
\index{eio\+\_\+file\+\_\+associate\+\_\+find@{eio\+\_\+file\+\_\+associate\+\_\+find}!Eio Reference helper A\+PI@{Eio Reference helper A\+PI}}
\subsubsection{\texorpdfstring{eio\+\_\+file\+\_\+associate\+\_\+find()}{eio\_file\_associate\_find()}}
{\footnotesize\ttfamily \hyperlink{group__Elua_ga3db3556eec8ef18cb8ddb43816974ac8}{E\+A\+PI} void$\ast$ eio\+\_\+file\+\_\+associate\+\_\+find (\begin{DoxyParamCaption}\item[{\hyperlink{group__Eio__List_ga1145f009745ecb4d9f6a01a9bc5a9ac0}{Eio\+\_\+\+File} $\ast$}]{ls,  }\item[{const char $\ast$}]{key }\end{DoxyParamCaption})}



Get the data associated during the filter callback inside the main loop. 


\begin{DoxyParams}{Parameters}
{\em ls} & The Eio\+\_\+\+File ls request currently calling the notify callback. \\
\hline
{\em key} & The key pointing to the data to retrieve. \\
\hline
\end{DoxyParams}
\begin{DoxyReturn}{Returns}
the data associated with the key or {\ttfamily N\+U\+LL} if not found. 
\end{DoxyReturn}
\mbox{\Hypertarget{group__Eio__Helper_ga01f812f6cabd9f6940169d809d4d1523}\label{group__Eio__Helper_ga01f812f6cabd9f6940169d809d4d1523}} 
\index{Eio Reference helper A\+PI@{Eio Reference helper A\+PI}!eio\+\_\+file\+\_\+atime@{eio\+\_\+file\+\_\+atime}}
\index{eio\+\_\+file\+\_\+atime@{eio\+\_\+file\+\_\+atime}!Eio Reference helper A\+PI@{Eio Reference helper A\+PI}}
\subsubsection{\texorpdfstring{eio\+\_\+file\+\_\+atime()}{eio\_file\_atime()}}
{\footnotesize\ttfamily static double eio\+\_\+file\+\_\+atime (\begin{DoxyParamCaption}\item[{const \hyperlink{group__Eina__File__Group_gab15fe1278f044850fcb24417a47364a8}{Eina\+\_\+\+Stat} $\ast$}]{stat }\end{DoxyParamCaption})\hspace{0.3cm}{\ttfamily [inline]}, {\ttfamily [static]}}



get access time from a Eina\+\_\+\+Stat 


\begin{DoxyParams}{Parameters}
{\em stat} & the structure to get the atime from \\
\hline
\end{DoxyParams}
\begin{DoxyReturn}{Returns}
the last accessed time
\end{DoxyReturn}
This take care of doing type conversion to match rest of E\+FL time A\+PI. \begin{DoxyNote}{Note}
some filesystem don\textquotesingle{}t update that information. 
\end{DoxyNote}
\mbox{\Hypertarget{group__Eio__Helper_gaf5e7af8f2e5136c8a16b3e315d665d7c}\label{group__Eio__Helper_gaf5e7af8f2e5136c8a16b3e315d665d7c}} 
\index{Eio Reference helper A\+PI@{Eio Reference helper A\+PI}!eio\+\_\+file\+\_\+mtime@{eio\+\_\+file\+\_\+mtime}}
\index{eio\+\_\+file\+\_\+mtime@{eio\+\_\+file\+\_\+mtime}!Eio Reference helper A\+PI@{Eio Reference helper A\+PI}}
\subsubsection{\texorpdfstring{eio\+\_\+file\+\_\+mtime()}{eio\_file\_mtime()}}
{\footnotesize\ttfamily static double eio\+\_\+file\+\_\+mtime (\begin{DoxyParamCaption}\item[{const \hyperlink{group__Eina__File__Group_gab15fe1278f044850fcb24417a47364a8}{Eina\+\_\+\+Stat} $\ast$}]{stat }\end{DoxyParamCaption})\hspace{0.3cm}{\ttfamily [inline]}, {\ttfamily [static]}}



get modification time from a Eina\+\_\+\+Stat 


\begin{DoxyParams}{Parameters}
{\em stat} & the structure to get the mtime from \\
\hline
\end{DoxyParams}
\begin{DoxyReturn}{Returns}
the last modification time
\end{DoxyReturn}
This take care of doing type conversion to match rest of E\+FL time A\+PI. \mbox{\Hypertarget{group__Eio__Helper_gad8597d8d8cf7546ceae4144d0b62ec94}\label{group__Eio__Helper_gad8597d8d8cf7546ceae4144d0b62ec94}} 
\index{Eio Reference helper A\+PI@{Eio Reference helper A\+PI}!eio\+\_\+file\+\_\+size@{eio\+\_\+file\+\_\+size}}
\index{eio\+\_\+file\+\_\+size@{eio\+\_\+file\+\_\+size}!Eio Reference helper A\+PI@{Eio Reference helper A\+PI}}
\subsubsection{\texorpdfstring{eio\+\_\+file\+\_\+size()}{eio\_file\_size()}}
{\footnotesize\ttfamily static long long eio\+\_\+file\+\_\+size (\begin{DoxyParamCaption}\item[{const \hyperlink{group__Eina__File__Group_gab15fe1278f044850fcb24417a47364a8}{Eina\+\_\+\+Stat} $\ast$}]{stat }\end{DoxyParamCaption})\hspace{0.3cm}{\ttfamily [inline]}, {\ttfamily [static]}}



get the size of the file described in Eina\+\_\+\+Stat 


\begin{DoxyParams}{Parameters}
{\em stat} & the structure to get the size from \\
\hline
\end{DoxyParams}
\begin{DoxyReturn}{Returns}
the size of the file 
\end{DoxyReturn}
\mbox{\Hypertarget{group__Eio__Helper_ga6eed8614724e0b3e83dd74d10a7b220b}\label{group__Eio__Helper_ga6eed8614724e0b3e83dd74d10a7b220b}} 
\index{Eio Reference helper A\+PI@{Eio Reference helper A\+PI}!eio\+\_\+file\+\_\+is\+\_\+dir@{eio\+\_\+file\+\_\+is\+\_\+dir}}
\index{eio\+\_\+file\+\_\+is\+\_\+dir@{eio\+\_\+file\+\_\+is\+\_\+dir}!Eio Reference helper A\+PI@{Eio Reference helper A\+PI}}
\subsubsection{\texorpdfstring{eio\+\_\+file\+\_\+is\+\_\+dir()}{eio\_file\_is\_dir()}}
{\footnotesize\ttfamily static \hyperlink{group__Eina__Types__Group_ga3fe0caf72e93b1bab1ca8ee3ccf3f226}{Eina\+\_\+\+Bool} eio\+\_\+file\+\_\+is\+\_\+dir (\begin{DoxyParamCaption}\item[{const \hyperlink{group__Eina__File__Group_gab15fe1278f044850fcb24417a47364a8}{Eina\+\_\+\+Stat} $\ast$}]{stat }\end{DoxyParamCaption})\hspace{0.3cm}{\ttfamily [inline]}, {\ttfamily [static]}}



tell if the stated path was a directory or not. 


\begin{DoxyParams}{Parameters}
{\em stat} & the structure to get the size from \\
\hline
\end{DoxyParams}
\begin{DoxyReturn}{Returns}
E\+I\+N\+A\+\_\+\+T\+R\+UE, if it was. 
\end{DoxyReturn}
\mbox{\Hypertarget{group__Eio__Helper_ga20b5b0abdeb0f7d9b406b3aa3b4567b3}\label{group__Eio__Helper_ga20b5b0abdeb0f7d9b406b3aa3b4567b3}} 
\index{Eio Reference helper A\+PI@{Eio Reference helper A\+PI}!eio\+\_\+file\+\_\+is\+\_\+lnk@{eio\+\_\+file\+\_\+is\+\_\+lnk}}
\index{eio\+\_\+file\+\_\+is\+\_\+lnk@{eio\+\_\+file\+\_\+is\+\_\+lnk}!Eio Reference helper A\+PI@{Eio Reference helper A\+PI}}
\subsubsection{\texorpdfstring{eio\+\_\+file\+\_\+is\+\_\+lnk()}{eio\_file\_is\_lnk()}}
{\footnotesize\ttfamily static \hyperlink{group__Eina__Types__Group_ga3fe0caf72e93b1bab1ca8ee3ccf3f226}{Eina\+\_\+\+Bool} eio\+\_\+file\+\_\+is\+\_\+lnk (\begin{DoxyParamCaption}\item[{const \hyperlink{group__Eina__File__Group_gab15fe1278f044850fcb24417a47364a8}{Eina\+\_\+\+Stat} $\ast$}]{stat }\end{DoxyParamCaption})\hspace{0.3cm}{\ttfamily [inline]}, {\ttfamily [static]}}



tell if the stated path was a link or not. 


\begin{DoxyParams}{Parameters}
{\em stat} & the structure to get the size from \\
\hline
\end{DoxyParams}
\begin{DoxyReturn}{Returns}
E\+I\+N\+A\+\_\+\+T\+R\+UE, if it was. 
\end{DoxyReturn}
