\hypertarget{group__Eio__Eet}{}\section{Eio asynchronous A\+PI for Eet file.}
\label{group__Eio__Eet}\index{Eio asynchronous A\+P\+I for Eet file.@{Eio asynchronous A\+P\+I for Eet file.}}


This set of functions help in the asynchronous use of Eet.  


\subsection*{Functions}
\begin{DoxyCompactItemize}
\item 
\mbox{\hyperlink{group__Eio_ga1145f009745ecb4d9f6a01a9bc5a9ac0}{Eio\+\_\+\+File}} $\ast$ \mbox{\hyperlink{group__Eio__Eet_ga135ceeacfde4ae8c45e0557a9da7d885}{eio\+\_\+eet\+\_\+open}} (const char $\ast$filename, \mbox{\hyperlink{group__Eet__File__Group_gace4c717b4aadfe603183524c18951572}{Eet\+\_\+\+File\+\_\+\+Mode}} mode, Eio\+\_\+\+Eet\+\_\+\+Open\+\_\+\+Cb eet\+\_\+cb, Eio\+\_\+\+Error\+\_\+\+Cb error\+\_\+cb, const void $\ast$data)
\begin{DoxyCompactList}\small\item\em Open an eet file on disk, and returns a handle to it asynchronously. \end{DoxyCompactList}\item 
\mbox{\hyperlink{group__Eio_ga1145f009745ecb4d9f6a01a9bc5a9ac0}{Eio\+\_\+\+File}} $\ast$ \mbox{\hyperlink{group__Eio__Eet_ga8437244d0d963a562da07bd153cd0999}{eio\+\_\+eet\+\_\+close}} (\mbox{\hyperlink{group__Eet__File__Group_ga8d9779184a9870c1a225f1f40c76e8a7}{Eet\+\_\+\+File}} $\ast$ef, Eio\+\_\+\+Done\+\_\+\+Cb done\+\_\+cb, Eio\+\_\+\+Eet\+\_\+\+Error\+\_\+\+Cb error\+\_\+cb, const void $\ast$data)
\begin{DoxyCompactList}\small\item\em Close an eet file handle and flush pending writes asynchronously. \end{DoxyCompactList}\item 
\mbox{\hyperlink{group__Eio_ga1145f009745ecb4d9f6a01a9bc5a9ac0}{Eio\+\_\+\+File}} $\ast$ \mbox{\hyperlink{group__Eio__Eet_ga034295d67b22c4e996d63e2c3c1f108b}{eio\+\_\+eet\+\_\+sync}} (\mbox{\hyperlink{group__Eet__File__Group_ga8d9779184a9870c1a225f1f40c76e8a7}{Eet\+\_\+\+File}} $\ast$ef, Eio\+\_\+\+Done\+\_\+\+Cb done\+\_\+cb, Eio\+\_\+\+Eet\+\_\+\+Error\+\_\+\+Cb error\+\_\+cb, const void $\ast$data)
\begin{DoxyCompactList}\small\item\em Sync content of an eet file handle, flushing pending writes asynchronously. \end{DoxyCompactList}\item 
\mbox{\hyperlink{group__Eio_ga1145f009745ecb4d9f6a01a9bc5a9ac0}{Eio\+\_\+\+File}} $\ast$ \mbox{\hyperlink{group__Eio__Eet_ga2819c64dce4f8b54f6642d816dbd2233}{eio\+\_\+eet\+\_\+data\+\_\+write\+\_\+cipher}} (\mbox{\hyperlink{group__Eet__File__Group_ga8d9779184a9870c1a225f1f40c76e8a7}{Eet\+\_\+\+File}} $\ast$ef, \mbox{\hyperlink{group__Eet__Data__Group_ga4baec0e840012480a0958c5c3bca276d}{Eet\+\_\+\+Data\+\_\+\+Descriptor}} $\ast$edd, const char $\ast$name, const char $\ast$cipher\+\_\+key, void $\ast$write\+\_\+data, int compress, Eio\+\_\+\+Done\+\_\+\+Int\+\_\+\+Cb done\+\_\+cb, Eio\+\_\+\+Error\+\_\+\+Cb error\+\_\+cb, const void $\ast$user\+\_\+data)
\begin{DoxyCompactList}\small\item\em Write a data structure from memory and store in an eet file using a cipher asynchronously. \end{DoxyCompactList}\item 
\mbox{\hyperlink{group__Eio_ga1145f009745ecb4d9f6a01a9bc5a9ac0}{Eio\+\_\+\+File}} $\ast$ \mbox{\hyperlink{group__Eio__Eet_gabe71a65e96db73c8ce4fa66dba41051e}{eio\+\_\+eet\+\_\+data\+\_\+read\+\_\+cipher}} (\mbox{\hyperlink{group__Eet__File__Group_ga8d9779184a9870c1a225f1f40c76e8a7}{Eet\+\_\+\+File}} $\ast$ef, \mbox{\hyperlink{group__Eet__Data__Group_ga4baec0e840012480a0958c5c3bca276d}{Eet\+\_\+\+Data\+\_\+\+Descriptor}} $\ast$edd, const char $\ast$name, const char $\ast$cipher\+\_\+key, Eio\+\_\+\+Done\+\_\+\+E\+Read\+\_\+\+Cb done\+\_\+cb, Eio\+\_\+\+Error\+\_\+\+Cb error\+\_\+cb, const void $\ast$data)
\begin{DoxyCompactList}\small\item\em Read a data structure from an eet file and decodes it using a cipher asynchronously. \end{DoxyCompactList}\item 
\mbox{\hyperlink{group__Eio_ga1145f009745ecb4d9f6a01a9bc5a9ac0}{Eio\+\_\+\+File}} $\ast$ \mbox{\hyperlink{group__Eio__Eet_gadc5cb95afd7becb77680bbd43fb7898f}{eio\+\_\+eet\+\_\+data\+\_\+image\+\_\+write\+\_\+cipher}} (\mbox{\hyperlink{group__Eet__File__Group_ga8d9779184a9870c1a225f1f40c76e8a7}{Eet\+\_\+\+File}} $\ast$ef, const char $\ast$name, const char $\ast$cipher\+\_\+key, void $\ast$write\+\_\+data, unsigned int w, unsigned int h, int alpha, int compress, int quality, int lossy, Eio\+\_\+\+Done\+\_\+\+Int\+\_\+\+Cb done\+\_\+cb, Eio\+\_\+\+Error\+\_\+\+Cb error\+\_\+cb, const void $\ast$user\+\_\+data)
\begin{DoxyCompactList}\small\item\em Write image data to the named key in an eet file asynchronously. \end{DoxyCompactList}\item 
\mbox{\hyperlink{group__Eio_ga1145f009745ecb4d9f6a01a9bc5a9ac0}{Eio\+\_\+\+File}} $\ast$ \mbox{\hyperlink{group__Eio__Eet_ga665eca1d69d9fd9651a06e9bb97072ab}{eio\+\_\+eet\+\_\+read\+\_\+direct}} (\mbox{\hyperlink{group__Eet__File__Group_ga8d9779184a9870c1a225f1f40c76e8a7}{Eet\+\_\+\+File}} $\ast$ef, const char $\ast$name, Eio\+\_\+\+Done\+\_\+\+Data\+\_\+\+Cb done\+\_\+cb, Eio\+\_\+\+Error\+\_\+\+Cb error\+\_\+cb, const void $\ast$data)
\begin{DoxyCompactList}\small\item\em Read a specified entry from an eet file and return data. \end{DoxyCompactList}\item 
\mbox{\hyperlink{group__Eio_ga1145f009745ecb4d9f6a01a9bc5a9ac0}{Eio\+\_\+\+File}} $\ast$ \mbox{\hyperlink{group__Eio__Eet_ga8a90bfb46de7480918b218e3d3212ef8}{eio\+\_\+eet\+\_\+read\+\_\+cipher}} (\mbox{\hyperlink{group__Eet__File__Group_ga8d9779184a9870c1a225f1f40c76e8a7}{Eet\+\_\+\+File}} $\ast$ef, const char $\ast$name, const char $\ast$cipher\+\_\+key, Eio\+\_\+\+Done\+\_\+\+Read\+\_\+\+Cb done\+\_\+cb, Eio\+\_\+\+Error\+\_\+\+Cb error\+\_\+cb, const void $\ast$data)
\begin{DoxyCompactList}\small\item\em Read a specified entry from an eet file and return data. \end{DoxyCompactList}\item 
\mbox{\hyperlink{group__Eio_ga1145f009745ecb4d9f6a01a9bc5a9ac0}{Eio\+\_\+\+File}} $\ast$ \mbox{\hyperlink{group__Eio__Eet_ga69ecbf0e75cdda97547f277befd25bec}{eio\+\_\+eet\+\_\+write\+\_\+cipher}} (\mbox{\hyperlink{group__Eet__File__Group_ga8d9779184a9870c1a225f1f40c76e8a7}{Eet\+\_\+\+File}} $\ast$ef, const char $\ast$name, void $\ast$write\+\_\+data, int size, int compress, const char $\ast$cipher\+\_\+key, Eio\+\_\+\+Done\+\_\+\+Int\+\_\+\+Cb done\+\_\+cb, Eio\+\_\+\+Error\+\_\+\+Cb error\+\_\+cb, const void $\ast$user\+\_\+data)
\begin{DoxyCompactList}\small\item\em Write a specified entry to an eet file handle using a cipher. \end{DoxyCompactList}\end{DoxyCompactItemize}


\subsection{Detailed Description}
This set of functions help in the asynchronous use of Eet. 



\subsection{Function Documentation}
\mbox{\Hypertarget{group__Eio__Eet_ga135ceeacfde4ae8c45e0557a9da7d885}\label{group__Eio__Eet_ga135ceeacfde4ae8c45e0557a9da7d885}} 
\index{Eio asynchronous A\+P\+I for Eet file.@{Eio asynchronous A\+P\+I for Eet file.}!eio\+\_\+eet\+\_\+open@{eio\+\_\+eet\+\_\+open}}
\index{eio\+\_\+eet\+\_\+open@{eio\+\_\+eet\+\_\+open}!Eio asynchronous A\+P\+I for Eet file.@{Eio asynchronous A\+P\+I for Eet file.}}
\subsubsection{\texorpdfstring{eio\+\_\+eet\+\_\+open()}{eio\_eet\_open()}}
{\footnotesize\ttfamily \mbox{\hyperlink{group__Eio_ga1145f009745ecb4d9f6a01a9bc5a9ac0}{Eio\+\_\+\+File}}$\ast$ eio\+\_\+eet\+\_\+open (\begin{DoxyParamCaption}\item[{const char $\ast$}]{filename,  }\item[{\mbox{\hyperlink{group__Eet__File__Group_gace4c717b4aadfe603183524c18951572}{Eet\+\_\+\+File\+\_\+\+Mode}}}]{mode,  }\item[{Eio\+\_\+\+Eet\+\_\+\+Open\+\_\+\+Cb}]{eet\+\_\+cb,  }\item[{Eio\+\_\+\+Error\+\_\+\+Cb}]{error\+\_\+cb,  }\item[{const void $\ast$}]{data }\end{DoxyParamCaption})}



Open an eet file on disk, and returns a handle to it asynchronously. 


\begin{DoxyParams}{Parameters}
{\em filename} & The file path to the eet file. eg\+: {\ttfamily \char`\"{}/tmp/file.\+eet\char`\"{}}. \\
\hline
{\em mode} & The mode for opening. Either E\+E\+T\+\_\+\+F\+I\+L\+E\+\_\+\+M\+O\+D\+E\+\_\+\+R\+E\+AD, E\+E\+T\+\_\+\+F\+I\+L\+E\+\_\+\+M\+O\+D\+E\+\_\+\+W\+R\+I\+TE or E\+E\+T\+\_\+\+F\+I\+L\+E\+\_\+\+M\+O\+D\+E\+\_\+\+R\+E\+A\+D\+\_\+\+W\+R\+I\+TE. \\
\hline
{\em eet\+\_\+cb} & The callback to call when the file has been successfully opened. \\
\hline
{\em error\+\_\+cb} & Callback called in the main loop when the file can\textquotesingle{}t be opened. \\
\hline
{\em data} & Unmodified user data passed to callbacks \\
\hline
\end{DoxyParams}
\begin{DoxyReturn}{Returns}
N\+U\+LL in case of a failure.
\end{DoxyReturn}
This function calls \mbox{\hyperlink{group__Eet__File__Group_ga5f55956b860aa2c77af9b1a880c4c256}{eet\+\_\+open()}} from another thread using Ecore\+\_\+\+Thread. \mbox{\Hypertarget{group__Eio__Eet_ga8437244d0d963a562da07bd153cd0999}\label{group__Eio__Eet_ga8437244d0d963a562da07bd153cd0999}} 
\index{Eio asynchronous A\+P\+I for Eet file.@{Eio asynchronous A\+P\+I for Eet file.}!eio\+\_\+eet\+\_\+close@{eio\+\_\+eet\+\_\+close}}
\index{eio\+\_\+eet\+\_\+close@{eio\+\_\+eet\+\_\+close}!Eio asynchronous A\+P\+I for Eet file.@{Eio asynchronous A\+P\+I for Eet file.}}
\subsubsection{\texorpdfstring{eio\+\_\+eet\+\_\+close()}{eio\_eet\_close()}}
{\footnotesize\ttfamily \mbox{\hyperlink{group__Eio_ga1145f009745ecb4d9f6a01a9bc5a9ac0}{Eio\+\_\+\+File}}$\ast$ eio\+\_\+eet\+\_\+close (\begin{DoxyParamCaption}\item[{\mbox{\hyperlink{group__Eet__File__Group_ga8d9779184a9870c1a225f1f40c76e8a7}{Eet\+\_\+\+File}} $\ast$}]{ef,  }\item[{Eio\+\_\+\+Done\+\_\+\+Cb}]{done\+\_\+cb,  }\item[{Eio\+\_\+\+Eet\+\_\+\+Error\+\_\+\+Cb}]{error\+\_\+cb,  }\item[{const void $\ast$}]{data }\end{DoxyParamCaption})}



Close an eet file handle and flush pending writes asynchronously. 


\begin{DoxyParams}{Parameters}
{\em ef} & A valid eet file handle. \\
\hline
{\em done\+\_\+cb} & Callback called from the main loop when the file has been closed. \\
\hline
{\em error\+\_\+cb} & Callback called in the main loop when the file can\textquotesingle{}t be closed. \\
\hline
{\em data} & Unmodified user data passed to callbacks \\
\hline
\end{DoxyParams}
\begin{DoxyReturn}{Returns}
N\+U\+LL in case of a failure.
\end{DoxyReturn}
This function will call \mbox{\hyperlink{group__Eet__File__Group_ga1675fef1f6012c1e02ae313d13dc3e03}{eet\+\_\+close()}} from another thread by using Ecore\+\_\+\+Thread. You should assume that the Eet\+\_\+\+File is dead after this function is called. \mbox{\Hypertarget{group__Eio__Eet_ga034295d67b22c4e996d63e2c3c1f108b}\label{group__Eio__Eet_ga034295d67b22c4e996d63e2c3c1f108b}} 
\index{Eio asynchronous A\+P\+I for Eet file.@{Eio asynchronous A\+P\+I for Eet file.}!eio\+\_\+eet\+\_\+sync@{eio\+\_\+eet\+\_\+sync}}
\index{eio\+\_\+eet\+\_\+sync@{eio\+\_\+eet\+\_\+sync}!Eio asynchronous A\+P\+I for Eet file.@{Eio asynchronous A\+P\+I for Eet file.}}
\subsubsection{\texorpdfstring{eio\+\_\+eet\+\_\+sync()}{eio\_eet\_sync()}}
{\footnotesize\ttfamily \mbox{\hyperlink{group__Eio_ga1145f009745ecb4d9f6a01a9bc5a9ac0}{Eio\+\_\+\+File}}$\ast$ eio\+\_\+eet\+\_\+sync (\begin{DoxyParamCaption}\item[{\mbox{\hyperlink{group__Eet__File__Group_ga8d9779184a9870c1a225f1f40c76e8a7}{Eet\+\_\+\+File}} $\ast$}]{ef,  }\item[{Eio\+\_\+\+Done\+\_\+\+Cb}]{done\+\_\+cb,  }\item[{Eio\+\_\+\+Eet\+\_\+\+Error\+\_\+\+Cb}]{error\+\_\+cb,  }\item[{const void $\ast$}]{data }\end{DoxyParamCaption})}



Sync content of an eet file handle, flushing pending writes asynchronously. 


\begin{DoxyParams}{Parameters}
{\em ef} & A valid eet file handle. \\
\hline
{\em done\+\_\+cb} & Callback called from the main loop when the file has been synced. \\
\hline
{\em error\+\_\+cb} & Callback called in the main loop when the file can\textquotesingle{}t be synced. \\
\hline
{\em data} & Unmodified user data passed to callbacks \\
\hline
\end{DoxyParams}
\begin{DoxyReturn}{Returns}
N\+U\+LL in case of a failure.
\end{DoxyReturn}
This function will call \mbox{\hyperlink{group__Eet__File__Group_gaf343f344180955ed898aa86b90ebefda}{eet\+\_\+sync()}} from another thread. As long as the done\+\_\+cb or error\+\_\+cb haven\textquotesingle{}t be called, you must keep {\ttfamily ef} open. \mbox{\Hypertarget{group__Eio__Eet_ga2819c64dce4f8b54f6642d816dbd2233}\label{group__Eio__Eet_ga2819c64dce4f8b54f6642d816dbd2233}} 
\index{Eio asynchronous A\+P\+I for Eet file.@{Eio asynchronous A\+P\+I for Eet file.}!eio\+\_\+eet\+\_\+data\+\_\+write\+\_\+cipher@{eio\+\_\+eet\+\_\+data\+\_\+write\+\_\+cipher}}
\index{eio\+\_\+eet\+\_\+data\+\_\+write\+\_\+cipher@{eio\+\_\+eet\+\_\+data\+\_\+write\+\_\+cipher}!Eio asynchronous A\+P\+I for Eet file.@{Eio asynchronous A\+P\+I for Eet file.}}
\subsubsection{\texorpdfstring{eio\+\_\+eet\+\_\+data\+\_\+write\+\_\+cipher()}{eio\_eet\_data\_write\_cipher()}}
{\footnotesize\ttfamily \mbox{\hyperlink{group__Eio_ga1145f009745ecb4d9f6a01a9bc5a9ac0}{Eio\+\_\+\+File}}$\ast$ eio\+\_\+eet\+\_\+data\+\_\+write\+\_\+cipher (\begin{DoxyParamCaption}\item[{\mbox{\hyperlink{group__Eet__File__Group_ga8d9779184a9870c1a225f1f40c76e8a7}{Eet\+\_\+\+File}} $\ast$}]{ef,  }\item[{\mbox{\hyperlink{group__Eet__Data__Group_ga4baec0e840012480a0958c5c3bca276d}{Eet\+\_\+\+Data\+\_\+\+Descriptor}} $\ast$}]{edd,  }\item[{const char $\ast$}]{name,  }\item[{const char $\ast$}]{cipher\+\_\+key,  }\item[{void $\ast$}]{write\+\_\+data,  }\item[{int}]{compress,  }\item[{Eio\+\_\+\+Done\+\_\+\+Int\+\_\+\+Cb}]{done\+\_\+cb,  }\item[{Eio\+\_\+\+Error\+\_\+\+Cb}]{error\+\_\+cb,  }\item[{const void $\ast$}]{user\+\_\+data }\end{DoxyParamCaption})}



Write a data structure from memory and store in an eet file using a cipher asynchronously. 


\begin{DoxyParams}{Parameters}
{\em ef} & The eet file handle to write to. \\
\hline
{\em edd} & The data descriptor to use when encoding. \\
\hline
{\em name} & The key to store the data under in the eet file. \\
\hline
{\em cipher\+\_\+key} & The key to use as cipher. \\
\hline
{\em write\+\_\+data} & A pointer to the data structure to save and encode. \\
\hline
{\em compress} & Compression flags for storage. \\
\hline
{\em done\+\_\+cb} & Callback called from the main loop when the data has been put in the Eet\+\_\+\+File. \\
\hline
{\em error\+\_\+cb} & Callback called in the main loop when the file can\textquotesingle{}t be written. \\
\hline
{\em user\+\_\+data} & Private data given to each callback. \\
\hline
\end{DoxyParams}
\begin{DoxyReturn}{Returns}
N\+U\+LL in case of a failure. 
\end{DoxyReturn}
\mbox{\Hypertarget{group__Eio__Eet_gabe71a65e96db73c8ce4fa66dba41051e}\label{group__Eio__Eet_gabe71a65e96db73c8ce4fa66dba41051e}} 
\index{Eio asynchronous A\+P\+I for Eet file.@{Eio asynchronous A\+P\+I for Eet file.}!eio\+\_\+eet\+\_\+data\+\_\+read\+\_\+cipher@{eio\+\_\+eet\+\_\+data\+\_\+read\+\_\+cipher}}
\index{eio\+\_\+eet\+\_\+data\+\_\+read\+\_\+cipher@{eio\+\_\+eet\+\_\+data\+\_\+read\+\_\+cipher}!Eio asynchronous A\+P\+I for Eet file.@{Eio asynchronous A\+P\+I for Eet file.}}
\subsubsection{\texorpdfstring{eio\+\_\+eet\+\_\+data\+\_\+read\+\_\+cipher()}{eio\_eet\_data\_read\_cipher()}}
{\footnotesize\ttfamily \mbox{\hyperlink{group__Eio_ga1145f009745ecb4d9f6a01a9bc5a9ac0}{Eio\+\_\+\+File}}$\ast$ eio\+\_\+eet\+\_\+data\+\_\+read\+\_\+cipher (\begin{DoxyParamCaption}\item[{\mbox{\hyperlink{group__Eet__File__Group_ga8d9779184a9870c1a225f1f40c76e8a7}{Eet\+\_\+\+File}} $\ast$}]{ef,  }\item[{\mbox{\hyperlink{group__Eet__Data__Group_ga4baec0e840012480a0958c5c3bca276d}{Eet\+\_\+\+Data\+\_\+\+Descriptor}} $\ast$}]{edd,  }\item[{const char $\ast$}]{name,  }\item[{const char $\ast$}]{cipher\+\_\+key,  }\item[{Eio\+\_\+\+Done\+\_\+\+E\+Read\+\_\+\+Cb}]{done\+\_\+cb,  }\item[{Eio\+\_\+\+Error\+\_\+\+Cb}]{error\+\_\+cb,  }\item[{const void $\ast$}]{data }\end{DoxyParamCaption})}



Read a data structure from an eet file and decodes it using a cipher asynchronously. 


\begin{DoxyParams}{Parameters}
{\em ef} & The eet file handle to read from. \\
\hline
{\em edd} & The data descriptor handle to use when decoding. \\
\hline
{\em name} & The key the data is stored under in the eet file. \\
\hline
{\em cipher\+\_\+key} & The key to use as cipher. \\
\hline
{\em done\+\_\+cb} & Callback called from the main loop when the data has been read and decoded. \\
\hline
{\em error\+\_\+cb} & Callback called in the main loop when the data can\textquotesingle{}t be read. \\
\hline
{\em data} & Unmodified user data passed to callbacks \\
\hline
\end{DoxyParams}
\begin{DoxyReturn}{Returns}
N\+U\+LL in case of a failure. 
\end{DoxyReturn}
\mbox{\Hypertarget{group__Eio__Eet_gadc5cb95afd7becb77680bbd43fb7898f}\label{group__Eio__Eet_gadc5cb95afd7becb77680bbd43fb7898f}} 
\index{Eio asynchronous A\+P\+I for Eet file.@{Eio asynchronous A\+P\+I for Eet file.}!eio\+\_\+eet\+\_\+data\+\_\+image\+\_\+write\+\_\+cipher@{eio\+\_\+eet\+\_\+data\+\_\+image\+\_\+write\+\_\+cipher}}
\index{eio\+\_\+eet\+\_\+data\+\_\+image\+\_\+write\+\_\+cipher@{eio\+\_\+eet\+\_\+data\+\_\+image\+\_\+write\+\_\+cipher}!Eio asynchronous A\+P\+I for Eet file.@{Eio asynchronous A\+P\+I for Eet file.}}
\subsubsection{\texorpdfstring{eio\+\_\+eet\+\_\+data\+\_\+image\+\_\+write\+\_\+cipher()}{eio\_eet\_data\_image\_write\_cipher()}}
{\footnotesize\ttfamily \mbox{\hyperlink{group__Eio_ga1145f009745ecb4d9f6a01a9bc5a9ac0}{Eio\+\_\+\+File}}$\ast$ eio\+\_\+eet\+\_\+data\+\_\+image\+\_\+write\+\_\+cipher (\begin{DoxyParamCaption}\item[{\mbox{\hyperlink{group__Eet__File__Group_ga8d9779184a9870c1a225f1f40c76e8a7}{Eet\+\_\+\+File}} $\ast$}]{ef,  }\item[{const char $\ast$}]{name,  }\item[{const char $\ast$}]{cipher\+\_\+key,  }\item[{void $\ast$}]{write\+\_\+data,  }\item[{unsigned int}]{w,  }\item[{unsigned int}]{h,  }\item[{int}]{alpha,  }\item[{int}]{compress,  }\item[{int}]{quality,  }\item[{int}]{lossy,  }\item[{Eio\+\_\+\+Done\+\_\+\+Int\+\_\+\+Cb}]{done\+\_\+cb,  }\item[{Eio\+\_\+\+Error\+\_\+\+Cb}]{error\+\_\+cb,  }\item[{const void $\ast$}]{user\+\_\+data }\end{DoxyParamCaption})}



Write image data to the named key in an eet file asynchronously. 


\begin{DoxyParams}{Parameters}
{\em ef} & A valid eet file handle opened for writing. \\
\hline
{\em name} & Name of the entry. eg\+: \char`\"{}/base/file\+\_\+i\+\_\+want\char`\"{}. \\
\hline
{\em cipher\+\_\+key} & The key to use as cipher. \\
\hline
{\em write\+\_\+data} & A pointer to the image pixel data. \\
\hline
{\em w} & The width of the image in pixels. \\
\hline
{\em h} & The height of the image in pixels. \\
\hline
{\em alpha} & The alpha channel flag. \\
\hline
{\em compress} & The compression amount. \\
\hline
{\em quality} & The quality encoding amount. \\
\hline
{\em lossy} & The lossiness flag. \\
\hline
{\em done\+\_\+cb} & Callback called from the main loop when the data has been put in the Eet\+\_\+\+File. \\
\hline
{\em error\+\_\+cb} & Callback called in the main loop when the file can\textquotesingle{}t be written. \\
\hline
{\em user\+\_\+data} & Private data given to each callback. \\
\hline
\end{DoxyParams}
\begin{DoxyReturn}{Returns}
N\+U\+LL in case of a failure. 
\end{DoxyReturn}
\mbox{\Hypertarget{group__Eio__Eet_ga665eca1d69d9fd9651a06e9bb97072ab}\label{group__Eio__Eet_ga665eca1d69d9fd9651a06e9bb97072ab}} 
\index{Eio asynchronous A\+P\+I for Eet file.@{Eio asynchronous A\+P\+I for Eet file.}!eio\+\_\+eet\+\_\+read\+\_\+direct@{eio\+\_\+eet\+\_\+read\+\_\+direct}}
\index{eio\+\_\+eet\+\_\+read\+\_\+direct@{eio\+\_\+eet\+\_\+read\+\_\+direct}!Eio asynchronous A\+P\+I for Eet file.@{Eio asynchronous A\+P\+I for Eet file.}}
\subsubsection{\texorpdfstring{eio\+\_\+eet\+\_\+read\+\_\+direct()}{eio\_eet\_read\_direct()}}
{\footnotesize\ttfamily \mbox{\hyperlink{group__Eio_ga1145f009745ecb4d9f6a01a9bc5a9ac0}{Eio\+\_\+\+File}}$\ast$ eio\+\_\+eet\+\_\+read\+\_\+direct (\begin{DoxyParamCaption}\item[{\mbox{\hyperlink{group__Eet__File__Group_ga8d9779184a9870c1a225f1f40c76e8a7}{Eet\+\_\+\+File}} $\ast$}]{ef,  }\item[{const char $\ast$}]{name,  }\item[{Eio\+\_\+\+Done\+\_\+\+Data\+\_\+\+Cb}]{done\+\_\+cb,  }\item[{Eio\+\_\+\+Error\+\_\+\+Cb}]{error\+\_\+cb,  }\item[{const void $\ast$}]{data }\end{DoxyParamCaption})}



Read a specified entry from an eet file and return data. 


\begin{DoxyParams}{Parameters}
{\em ef} & A valid eet file handle opened for reading. \\
\hline
{\em name} & Name of the entry. eg\+: \char`\"{}/base/file\+\_\+i\+\_\+want\char`\"{}. \\
\hline
{\em done\+\_\+cb} & Callback called from the main loop when the data has been read. \\
\hline
{\em error\+\_\+cb} & Callback called in the main loop when the data can\textquotesingle{}t be read. \\
\hline
{\em data} & Unmodified user data passed to callbacks \\
\hline
\end{DoxyParams}
\begin{DoxyReturn}{Returns}
N\+U\+LL in case of a failure. 
\end{DoxyReturn}
\mbox{\Hypertarget{group__Eio__Eet_ga8a90bfb46de7480918b218e3d3212ef8}\label{group__Eio__Eet_ga8a90bfb46de7480918b218e3d3212ef8}} 
\index{Eio asynchronous A\+P\+I for Eet file.@{Eio asynchronous A\+P\+I for Eet file.}!eio\+\_\+eet\+\_\+read\+\_\+cipher@{eio\+\_\+eet\+\_\+read\+\_\+cipher}}
\index{eio\+\_\+eet\+\_\+read\+\_\+cipher@{eio\+\_\+eet\+\_\+read\+\_\+cipher}!Eio asynchronous A\+P\+I for Eet file.@{Eio asynchronous A\+P\+I for Eet file.}}
\subsubsection{\texorpdfstring{eio\+\_\+eet\+\_\+read\+\_\+cipher()}{eio\_eet\_read\_cipher()}}
{\footnotesize\ttfamily \mbox{\hyperlink{group__Eio_ga1145f009745ecb4d9f6a01a9bc5a9ac0}{Eio\+\_\+\+File}}$\ast$ eio\+\_\+eet\+\_\+read\+\_\+cipher (\begin{DoxyParamCaption}\item[{\mbox{\hyperlink{group__Eet__File__Group_ga8d9779184a9870c1a225f1f40c76e8a7}{Eet\+\_\+\+File}} $\ast$}]{ef,  }\item[{const char $\ast$}]{name,  }\item[{const char $\ast$}]{cipher\+\_\+key,  }\item[{Eio\+\_\+\+Done\+\_\+\+Read\+\_\+\+Cb}]{done\+\_\+cb,  }\item[{Eio\+\_\+\+Error\+\_\+\+Cb}]{error\+\_\+cb,  }\item[{const void $\ast$}]{data }\end{DoxyParamCaption})}



Read a specified entry from an eet file and return data. 


\begin{DoxyParams}{Parameters}
{\em ef} & A valid eet file handle opened for reading. \\
\hline
{\em name} & Name of the entry. eg\+: \char`\"{}/base/file\+\_\+i\+\_\+want\char`\"{}. \\
\hline
{\em cipher\+\_\+key} & The key to use as cipher. \\
\hline
{\em done\+\_\+cb} & Callback called from the main loop when the data has been read. \\
\hline
{\em error\+\_\+cb} & Callback called in the main loop when the data can\textquotesingle{}t be read. \\
\hline
{\em data} & Unmodified user data passed to callbacks \\
\hline
\end{DoxyParams}
\begin{DoxyReturn}{Returns}
N\+U\+LL in case of a failure. 
\end{DoxyReturn}
\mbox{\Hypertarget{group__Eio__Eet_ga69ecbf0e75cdda97547f277befd25bec}\label{group__Eio__Eet_ga69ecbf0e75cdda97547f277befd25bec}} 
\index{Eio asynchronous A\+P\+I for Eet file.@{Eio asynchronous A\+P\+I for Eet file.}!eio\+\_\+eet\+\_\+write\+\_\+cipher@{eio\+\_\+eet\+\_\+write\+\_\+cipher}}
\index{eio\+\_\+eet\+\_\+write\+\_\+cipher@{eio\+\_\+eet\+\_\+write\+\_\+cipher}!Eio asynchronous A\+P\+I for Eet file.@{Eio asynchronous A\+P\+I for Eet file.}}
\subsubsection{\texorpdfstring{eio\+\_\+eet\+\_\+write\+\_\+cipher()}{eio\_eet\_write\_cipher()}}
{\footnotesize\ttfamily \mbox{\hyperlink{group__Eio_ga1145f009745ecb4d9f6a01a9bc5a9ac0}{Eio\+\_\+\+File}}$\ast$ eio\+\_\+eet\+\_\+write\+\_\+cipher (\begin{DoxyParamCaption}\item[{\mbox{\hyperlink{group__Eet__File__Group_ga8d9779184a9870c1a225f1f40c76e8a7}{Eet\+\_\+\+File}} $\ast$}]{ef,  }\item[{const char $\ast$}]{name,  }\item[{void $\ast$}]{write\+\_\+data,  }\item[{int}]{size,  }\item[{int}]{compress,  }\item[{const char $\ast$}]{cipher\+\_\+key,  }\item[{Eio\+\_\+\+Done\+\_\+\+Int\+\_\+\+Cb}]{done\+\_\+cb,  }\item[{Eio\+\_\+\+Error\+\_\+\+Cb}]{error\+\_\+cb,  }\item[{const void $\ast$}]{user\+\_\+data }\end{DoxyParamCaption})}



Write a specified entry to an eet file handle using a cipher. 


\begin{DoxyParams}{Parameters}
{\em ef} & A valid eet file handle opened for writing. \\
\hline
{\em name} & Name of the entry. eg\+: \char`\"{}/base/file\+\_\+i\+\_\+want\char`\"{}. \\
\hline
{\em write\+\_\+data} & Pointer to the data to be stored. \\
\hline
{\em size} & Length in bytes in the data to be stored. \\
\hline
{\em compress} & Compression flags (1 == compress, 0 = don\textquotesingle{}t compress). \\
\hline
{\em cipher\+\_\+key} & The key to use as cipher. \\
\hline
{\em done\+\_\+cb} & Callback called from the main loop when the data has been put in the Eet\+\_\+\+File. \\
\hline
{\em error\+\_\+cb} & Callback called in the main loop when the file can\textquotesingle{}t be written. \\
\hline
{\em user\+\_\+data} & Private data given to each callback. \\
\hline
\end{DoxyParams}
\begin{DoxyReturn}{Returns}
N\+U\+LL in case of a failure. 
\end{DoxyReturn}
