\hypertarget{group__Eio__Eet}{}\section{Eio asynchronous A\+P\+I 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 
\hyperlink{Elua_8h_a3db3556eec8ef18cb8ddb43816974ac8}{E\+A\+P\+I} \hyperlink{Eio_8h_a1145f009745ecb4d9f6a01a9bc5a9ac0}{Eio\+\_\+\+File} $\ast$ \hyperlink{group__Eio__Eet_gae3953d51e932e6adb942b4f8c3c018be}{eio\+\_\+eet\+\_\+open} (const char $\ast$filename, \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 
\hyperlink{Elua_8h_a3db3556eec8ef18cb8ddb43816974ac8}{E\+A\+P\+I} \hyperlink{Eio_8h_a1145f009745ecb4d9f6a01a9bc5a9ac0}{Eio\+\_\+\+File} $\ast$ \hyperlink{group__Eio__Eet_ga8f36a105d7e6a93ec296bae31c679082}{eio\+\_\+eet\+\_\+close} (\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 
\hyperlink{Elua_8h_a3db3556eec8ef18cb8ddb43816974ac8}{E\+A\+P\+I} \hyperlink{Eio_8h_a1145f009745ecb4d9f6a01a9bc5a9ac0}{Eio\+\_\+\+File} $\ast$ \hyperlink{group__Eio__Eet_ga1b6590d4a67708291f7f8b9ca3c724ee}{eio\+\_\+eet\+\_\+sync} (\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 
\hyperlink{Elua_8h_a3db3556eec8ef18cb8ddb43816974ac8}{E\+A\+P\+I} \hyperlink{Eio_8h_a1145f009745ecb4d9f6a01a9bc5a9ac0}{Eio\+\_\+\+File} $\ast$ \hyperlink{group__Eio__Eet_ga50914746560b98593bb2f8340a20545e}{eio\+\_\+eet\+\_\+data\+\_\+write\+\_\+cipher} (\hyperlink{group__Eet__File__Group_ga8d9779184a9870c1a225f1f40c76e8a7}{Eet\+\_\+\+File} $\ast$ef, \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 
\hyperlink{Elua_8h_a3db3556eec8ef18cb8ddb43816974ac8}{E\+A\+P\+I} \hyperlink{Eio_8h_a1145f009745ecb4d9f6a01a9bc5a9ac0}{Eio\+\_\+\+File} $\ast$ \hyperlink{group__Eio__Eet_gaf0b06e0f1a56b5876181685c02474bd2}{eio\+\_\+eet\+\_\+data\+\_\+read\+\_\+cipher} (\hyperlink{group__Eet__File__Group_ga8d9779184a9870c1a225f1f40c76e8a7}{Eet\+\_\+\+File} $\ast$ef, \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 
\hyperlink{Elua_8h_a3db3556eec8ef18cb8ddb43816974ac8}{E\+A\+P\+I} \hyperlink{Eio_8h_a1145f009745ecb4d9f6a01a9bc5a9ac0}{Eio\+\_\+\+File} $\ast$ \hyperlink{group__Eio__Eet_gac1a2b229ec05219d6db41f7154ddc96f}{eio\+\_\+eet\+\_\+data\+\_\+image\+\_\+write\+\_\+cipher} (\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 
\hyperlink{Elua_8h_a3db3556eec8ef18cb8ddb43816974ac8}{E\+A\+P\+I} \hyperlink{Eio_8h_a1145f009745ecb4d9f6a01a9bc5a9ac0}{Eio\+\_\+\+File} $\ast$ \hyperlink{group__Eio__Eet_ga6a5f86d9d9438ad111e5f5d0ce87090a}{eio\+\_\+eet\+\_\+read\+\_\+direct} (\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 
\hyperlink{Elua_8h_a3db3556eec8ef18cb8ddb43816974ac8}{E\+A\+P\+I} \hyperlink{Eio_8h_a1145f009745ecb4d9f6a01a9bc5a9ac0}{Eio\+\_\+\+File} $\ast$ \hyperlink{group__Eio__Eet_ga9f48091c60dc831c427b1f8f43628110}{eio\+\_\+eet\+\_\+read\+\_\+cipher} (\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 
\hyperlink{Elua_8h_a3db3556eec8ef18cb8ddb43816974ac8}{E\+A\+P\+I} \hyperlink{Eio_8h_a1145f009745ecb4d9f6a01a9bc5a9ac0}{Eio\+\_\+\+File} $\ast$ \hyperlink{group__Eio__Eet_ga68fd420ec0b9c033dcc52639e469bdae}{eio\+\_\+eet\+\_\+write\+\_\+cipher} (\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}
\hypertarget{group__Eio__Eet_gae3953d51e932e6adb942b4f8c3c018be}{}\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[{eio\+\_\+eet\+\_\+open}]{\setlength{\rightskip}{0pt plus 5cm}{\bf E\+A\+P\+I} {\bf Eio\+\_\+\+File}$\ast$ eio\+\_\+eet\+\_\+open (
\begin{DoxyParamCaption}
\item[{const char $\ast$}]{filename, }
\item[{{\bf Eet\+\_\+\+File\+\_\+\+Mode}}]{mode, }
\item[{Eio\+\_\+\+Eet\+\_\+\+Open\+\_\+\+Cb}]{eet\+\_\+cb, }
\item[{Eio\+\_\+\+Error\+\_\+\+Cb}]{error\+\_\+cb, }
\item[{const void $\ast$}]{data}
\end{DoxyParamCaption}
)}\label{group__Eio__Eet_gae3953d51e932e6adb942b4f8c3c018be}


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\+A\+D, E\+E\+T\+\_\+\+F\+I\+L\+E\+\_\+\+M\+O\+D\+E\+\_\+\+W\+R\+I\+T\+E or E\+E\+T\+\_\+\+F\+I\+L\+E\+\_\+\+M\+O\+D\+E\+\_\+\+R\+E\+A\+D\+\_\+\+W\+R\+I\+T\+E. \\
\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\+L\+L in case of a failure.
\end{DoxyReturn}
This function calls \hyperlink{group__Eet__File__Group_ga5f55956b860aa2c77af9b1a880c4c256}{eet\+\_\+open()} from another thread using Ecore\+\_\+\+Thread. 

References eina\+\_\+stringshare\+\_\+add().

\hypertarget{group__Eio__Eet_ga8f36a105d7e6a93ec296bae31c679082}{}\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[{eio\+\_\+eet\+\_\+close}]{\setlength{\rightskip}{0pt plus 5cm}{\bf E\+A\+P\+I} {\bf Eio\+\_\+\+File}$\ast$ eio\+\_\+eet\+\_\+close (
\begin{DoxyParamCaption}
\item[{{\bf Eet\+\_\+\+File} $\ast$}]{ef, }
\item[{Eio\+\_\+\+Done\+\_\+\+Cb}]{done\+\_\+cb, }
\item[{Eio\+\_\+\+Eet\+\_\+\+Error\+\_\+\+Cb}]{error\+\_\+cb, }
\item[{const void $\ast$}]{data}
\end{DoxyParamCaption}
)}\label{group__Eio__Eet_ga8f36a105d7e6a93ec296bae31c679082}


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\+L\+L in case of a failure.
\end{DoxyReturn}
This function will call \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. 

References E\+E\+T\+\_\+\+E\+R\+R\+O\+R\+\_\+\+N\+O\+N\+E.

\hypertarget{group__Eio__Eet_ga1b6590d4a67708291f7f8b9ca3c724ee}{}\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[{eio\+\_\+eet\+\_\+sync}]{\setlength{\rightskip}{0pt plus 5cm}{\bf E\+A\+P\+I} {\bf Eio\+\_\+\+File}$\ast$ eio\+\_\+eet\+\_\+sync (
\begin{DoxyParamCaption}
\item[{{\bf Eet\+\_\+\+File} $\ast$}]{ef, }
\item[{Eio\+\_\+\+Done\+\_\+\+Cb}]{done\+\_\+cb, }
\item[{Eio\+\_\+\+Eet\+\_\+\+Error\+\_\+\+Cb}]{error\+\_\+cb, }
\item[{const void $\ast$}]{data}
\end{DoxyParamCaption}
)}\label{group__Eio__Eet_ga1b6590d4a67708291f7f8b9ca3c724ee}


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\+L\+L in case of a failure.
\end{DoxyReturn}
This function will call \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. \hypertarget{group__Eio__Eet_ga50914746560b98593bb2f8340a20545e}{}\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[{eio\+\_\+eet\+\_\+data\+\_\+write\+\_\+cipher}]{\setlength{\rightskip}{0pt plus 5cm}{\bf E\+A\+P\+I} {\bf Eio\+\_\+\+File}$\ast$ eio\+\_\+eet\+\_\+data\+\_\+write\+\_\+cipher (
\begin{DoxyParamCaption}
\item[{{\bf Eet\+\_\+\+File} $\ast$}]{ef, }
\item[{{\bf 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}
)}\label{group__Eio__Eet_ga50914746560b98593bb2f8340a20545e}


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\+L\+L in case of a failure. 
\end{DoxyReturn}


References eina\+\_\+stringshare\+\_\+add().

\hypertarget{group__Eio__Eet_gaf0b06e0f1a56b5876181685c02474bd2}{}\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[{eio\+\_\+eet\+\_\+data\+\_\+read\+\_\+cipher}]{\setlength{\rightskip}{0pt plus 5cm}{\bf E\+A\+P\+I} {\bf Eio\+\_\+\+File}$\ast$ eio\+\_\+eet\+\_\+data\+\_\+read\+\_\+cipher (
\begin{DoxyParamCaption}
\item[{{\bf Eet\+\_\+\+File} $\ast$}]{ef, }
\item[{{\bf 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}
)}\label{group__Eio__Eet_gaf0b06e0f1a56b5876181685c02474bd2}


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\+L\+L in case of a failure. 
\end{DoxyReturn}


References eina\+\_\+stringshare\+\_\+add().

\hypertarget{group__Eio__Eet_gac1a2b229ec05219d6db41f7154ddc96f}{}\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[{eio\+\_\+eet\+\_\+data\+\_\+image\+\_\+write\+\_\+cipher}]{\setlength{\rightskip}{0pt plus 5cm}{\bf E\+A\+P\+I} {\bf Eio\+\_\+\+File}$\ast$ eio\+\_\+eet\+\_\+data\+\_\+image\+\_\+write\+\_\+cipher (
\begin{DoxyParamCaption}
\item[{{\bf 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}
)}\label{group__Eio__Eet_gac1a2b229ec05219d6db41f7154ddc96f}


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\+L\+L in case of a failure. 
\end{DoxyReturn}


References eina\+\_\+stringshare\+\_\+add().

\hypertarget{group__Eio__Eet_ga6a5f86d9d9438ad111e5f5d0ce87090a}{}\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[{eio\+\_\+eet\+\_\+read\+\_\+direct}]{\setlength{\rightskip}{0pt plus 5cm}{\bf E\+A\+P\+I} {\bf Eio\+\_\+\+File}$\ast$ eio\+\_\+eet\+\_\+read\+\_\+direct (
\begin{DoxyParamCaption}
\item[{{\bf 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}
)}\label{group__Eio__Eet_ga6a5f86d9d9438ad111e5f5d0ce87090a}


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\+L\+L in case of a failure. 
\end{DoxyReturn}


References eina\+\_\+stringshare\+\_\+add().

\hypertarget{group__Eio__Eet_ga9f48091c60dc831c427b1f8f43628110}{}\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[{eio\+\_\+eet\+\_\+read\+\_\+cipher}]{\setlength{\rightskip}{0pt plus 5cm}{\bf E\+A\+P\+I} {\bf Eio\+\_\+\+File}$\ast$ eio\+\_\+eet\+\_\+read\+\_\+cipher (
\begin{DoxyParamCaption}
\item[{{\bf 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}
)}\label{group__Eio__Eet_ga9f48091c60dc831c427b1f8f43628110}


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\+L\+L in case of a failure. 
\end{DoxyReturn}


References eina\+\_\+stringshare\+\_\+add().

\hypertarget{group__Eio__Eet_ga68fd420ec0b9c033dcc52639e469bdae}{}\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[{eio\+\_\+eet\+\_\+write\+\_\+cipher}]{\setlength{\rightskip}{0pt plus 5cm}{\bf E\+A\+P\+I} {\bf Eio\+\_\+\+File}$\ast$ eio\+\_\+eet\+\_\+write\+\_\+cipher (
\begin{DoxyParamCaption}
\item[{{\bf 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}
)}\label{group__Eio__Eet_ga68fd420ec0b9c033dcc52639e469bdae}


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\+L\+L in case of a failure. 
\end{DoxyReturn}


References eina\+\_\+stringshare\+\_\+add().

