\hypertarget{group__Efreet__Mime}{}\section{Efreet\+\_\+\+Mime\+: The X\+DG Shared Mime Info standard}
\label{group__Efreet__Mime}\index{Efreet\+\_\+\+Mime\+: The X\+D\+G Shared Mime Info standard@{Efreet\+\_\+\+Mime\+: The X\+D\+G Shared Mime Info standard}}


Efreet Mime is a library designed to help apps work with the Freedesktop.\+org Shared Mime Info standard.  


\subsection*{Functions}
\begin{DoxyCompactItemize}
\item 
\mbox{\hyperlink{group__Elua_ga3db3556eec8ef18cb8ddb43816974ac8}{E\+A\+PI}} int \mbox{\hyperlink{group__Efreet__Mime_gad63027f25e77f7c2298f01f2b705465a}{efreet\+\_\+mime\+\_\+init}} (void)
\begin{DoxyCompactList}\small\item\em Initializes the efreet mime settings. \end{DoxyCompactList}\item 
\mbox{\hyperlink{group__Elua_ga3db3556eec8ef18cb8ddb43816974ac8}{E\+A\+PI}} int \mbox{\hyperlink{group__Efreet__Mime_gacda6031934032e4b4610f0062a537274}{efreet\+\_\+mime\+\_\+shutdown}} (void)
\begin{DoxyCompactList}\small\item\em Shuts down Efreet mime settings system if a balanced number of init/shutdown calls have been made. \end{DoxyCompactList}\item 
\mbox{\hyperlink{group__Elua_ga3db3556eec8ef18cb8ddb43816974ac8}{E\+A\+PI}} const char $\ast$ \mbox{\hyperlink{group__Efreet__Mime_gadd8c50de321da93b9c913f66d0c208a6}{efreet\+\_\+mime\+\_\+type\+\_\+get}} (const char $\ast$file)
\begin{DoxyCompactList}\small\item\em Retrieve the mime type of a file. \end{DoxyCompactList}\item 
\mbox{\hyperlink{group__Elua_ga3db3556eec8ef18cb8ddb43816974ac8}{E\+A\+PI}} const char $\ast$ \mbox{\hyperlink{group__Efreet__Mime_ga35679fc78fb944991ddc6c3c74b341c9}{efreet\+\_\+mime\+\_\+magic\+\_\+type\+\_\+get}} (const char $\ast$file)
\begin{DoxyCompactList}\small\item\em Retrieve the mime type of a file using magic. \end{DoxyCompactList}\item 
\mbox{\hyperlink{group__Elua_ga3db3556eec8ef18cb8ddb43816974ac8}{E\+A\+PI}} const char $\ast$ \mbox{\hyperlink{group__Efreet__Mime_gac436aac6f7def675d888f6c3dea11a3d}{efreet\+\_\+mime\+\_\+globs\+\_\+type\+\_\+get}} (const char $\ast$file)
\begin{DoxyCompactList}\small\item\em Retrieve the mime type of a file using globs. \end{DoxyCompactList}\item 
\mbox{\hyperlink{group__Elua_ga3db3556eec8ef18cb8ddb43816974ac8}{E\+A\+PI}} const char $\ast$ \mbox{\hyperlink{group__Efreet__Mime_ga6ce1396d5564d1cbfb3e164dfb0b18f1}{efreet\+\_\+mime\+\_\+special\+\_\+type\+\_\+get}} (const char $\ast$file)
\begin{DoxyCompactList}\small\item\em Retrieve the special mime type of a file. \end{DoxyCompactList}\item 
\mbox{\hyperlink{group__Elua_ga3db3556eec8ef18cb8ddb43816974ac8}{E\+A\+PI}} const char $\ast$ \mbox{\hyperlink{group__Efreet__Mime_ga2aed0ea2603395d2e03ed3bd04971107}{efreet\+\_\+mime\+\_\+fallback\+\_\+type\+\_\+get}} (const char $\ast$file)
\begin{DoxyCompactList}\small\item\em Retrieve the fallback mime type of a file. \end{DoxyCompactList}\item 
\mbox{\hyperlink{group__Elua_ga3db3556eec8ef18cb8ddb43816974ac8}{E\+A\+PI}} const char $\ast$ \mbox{\hyperlink{group__Efreet__Mime_ga0be761dbf366776de3a623cf4aef5a1b}{efreet\+\_\+mime\+\_\+type\+\_\+icon\+\_\+get}} (const char $\ast$mime, const char $\ast$theme, unsigned int size)
\begin{DoxyCompactList}\small\item\em Retrieve the mime type icon for a file. \end{DoxyCompactList}\item 
\mbox{\Hypertarget{group__Efreet__Mime_ga18592ca671714a8ff2aba95d524e0e5f}\label{group__Efreet__Mime_ga18592ca671714a8ff2aba95d524e0e5f}} 
\mbox{\hyperlink{group__Elua_ga3db3556eec8ef18cb8ddb43816974ac8}{E\+A\+PI}} void \mbox{\hyperlink{group__Efreet__Mime_ga18592ca671714a8ff2aba95d524e0e5f}{efreet\+\_\+mime\+\_\+type\+\_\+cache\+\_\+clear}} (void)
\begin{DoxyCompactList}\small\item\em Clear mime icons mapping cache. \end{DoxyCompactList}\item 
\mbox{\hyperlink{group__Elua_ga3db3556eec8ef18cb8ddb43816974ac8}{E\+A\+PI}} void \mbox{\hyperlink{group__Efreet__Mime_ga66160d959c2780a377a5eb2356559b48}{efreet\+\_\+mime\+\_\+type\+\_\+cache\+\_\+flush}} (void)
\begin{DoxyCompactList}\small\item\em Flush mime icons mapping cache. \end{DoxyCompactList}\end{DoxyCompactItemize}


\subsection{Detailed Description}
Efreet Mime is a library designed to help apps work with the Freedesktop.\+org Shared Mime Info standard. 

\mbox{\hyperlink{Efreet__Mime_8h}{Efreet\+\_\+\+Mime.\+h}} provides all of the necessary headers and includes to work with Efreet\+\_\+\+Mime. 

\subsection{Function Documentation}
\mbox{\Hypertarget{group__Efreet__Mime_gad63027f25e77f7c2298f01f2b705465a}\label{group__Efreet__Mime_gad63027f25e77f7c2298f01f2b705465a}} 
\index{Efreet\+\_\+\+Mime\+: The X\+D\+G Shared Mime Info standard@{Efreet\+\_\+\+Mime\+: The X\+D\+G Shared Mime Info standard}!efreet\+\_\+mime\+\_\+init@{efreet\+\_\+mime\+\_\+init}}
\index{efreet\+\_\+mime\+\_\+init@{efreet\+\_\+mime\+\_\+init}!Efreet\+\_\+\+Mime\+: The X\+D\+G Shared Mime Info standard@{Efreet\+\_\+\+Mime\+: The X\+D\+G Shared Mime Info standard}}
\subsubsection{\texorpdfstring{efreet\+\_\+mime\+\_\+init()}{efreet\_mime\_init()}}
{\footnotesize\ttfamily \mbox{\hyperlink{group__Elua_ga3db3556eec8ef18cb8ddb43816974ac8}{E\+A\+PI}} int efreet\+\_\+mime\+\_\+init (\begin{DoxyParamCaption}\item[{void}]{ }\end{DoxyParamCaption})}



Initializes the efreet mime settings. 

\begin{DoxyReturn}{Returns}
{\ttfamily 1} on success or {\ttfamily 0} on failure.
\end{DoxyReturn}
Initializes the efreet mime settings. 

References ecore\+\_\+file\+\_\+init(), ecore\+\_\+file\+\_\+shutdown(), ecore\+\_\+init(), ecore\+\_\+shutdown(), efreet\+\_\+init(), efreet\+\_\+mime\+\_\+type\+\_\+cache\+\_\+clear(), efreet\+\_\+shutdown(), eina\+\_\+log\+\_\+domain\+\_\+register(), eina\+\_\+log\+\_\+domain\+\_\+unregister(), and E\+I\+N\+A\+\_\+\+L\+O\+G\+\_\+\+E\+RR.



Referenced by eio\+\_\+init(), and elm\+\_\+need\+\_\+efreet().

\mbox{\Hypertarget{group__Efreet__Mime_gacda6031934032e4b4610f0062a537274}\label{group__Efreet__Mime_gacda6031934032e4b4610f0062a537274}} 
\index{Efreet\+\_\+\+Mime\+: The X\+D\+G Shared Mime Info standard@{Efreet\+\_\+\+Mime\+: The X\+D\+G Shared Mime Info standard}!efreet\+\_\+mime\+\_\+shutdown@{efreet\+\_\+mime\+\_\+shutdown}}
\index{efreet\+\_\+mime\+\_\+shutdown@{efreet\+\_\+mime\+\_\+shutdown}!Efreet\+\_\+\+Mime\+: The X\+D\+G Shared Mime Info standard@{Efreet\+\_\+\+Mime\+: The X\+D\+G Shared Mime Info standard}}
\subsubsection{\texorpdfstring{efreet\+\_\+mime\+\_\+shutdown()}{efreet\_mime\_shutdown()}}
{\footnotesize\ttfamily \mbox{\hyperlink{group__Elua_ga3db3556eec8ef18cb8ddb43816974ac8}{E\+A\+PI}} int efreet\+\_\+mime\+\_\+shutdown (\begin{DoxyParamCaption}\item[{void}]{ }\end{DoxyParamCaption})}



Shuts down Efreet mime settings system if a balanced number of init/shutdown calls have been made. 

\begin{DoxyReturn}{Returns}
The number of times the init function has been called minus the corresponding init call. 
\end{DoxyReturn}


References ecore\+\_\+file\+\_\+shutdown(), ecore\+\_\+shutdown(), efreet\+\_\+shutdown(), eina\+\_\+log\+\_\+domain\+\_\+unregister(), and E\+I\+N\+A\+\_\+\+L\+O\+G\+\_\+\+E\+RR.



Referenced by elm\+\_\+need\+\_\+efreet().

\mbox{\Hypertarget{group__Efreet__Mime_gadd8c50de321da93b9c913f66d0c208a6}\label{group__Efreet__Mime_gadd8c50de321da93b9c913f66d0c208a6}} 
\index{Efreet\+\_\+\+Mime\+: The X\+D\+G Shared Mime Info standard@{Efreet\+\_\+\+Mime\+: The X\+D\+G Shared Mime Info standard}!efreet\+\_\+mime\+\_\+type\+\_\+get@{efreet\+\_\+mime\+\_\+type\+\_\+get}}
\index{efreet\+\_\+mime\+\_\+type\+\_\+get@{efreet\+\_\+mime\+\_\+type\+\_\+get}!Efreet\+\_\+\+Mime\+: The X\+D\+G Shared Mime Info standard@{Efreet\+\_\+\+Mime\+: The X\+D\+G Shared Mime Info standard}}
\subsubsection{\texorpdfstring{efreet\+\_\+mime\+\_\+type\+\_\+get()}{efreet\_mime\_type\_get()}}
{\footnotesize\ttfamily \mbox{\hyperlink{group__Elua_ga3db3556eec8ef18cb8ddb43816974ac8}{E\+A\+PI}} const char$\ast$ efreet\+\_\+mime\+\_\+type\+\_\+get (\begin{DoxyParamCaption}\item[{const char $\ast$}]{file }\end{DoxyParamCaption})}



Retrieve the mime type of a file. 


\begin{DoxyParams}{Parameters}
{\em file} & The file to find the mime type \\
\hline
\end{DoxyParams}
\begin{DoxyReturn}{Returns}
Mime type as a string or N\+U\+LL if the file doesn\textquotesingle{}t exist. 
\end{DoxyReturn}
\begin{DoxyNote}{Note}
The return value of this function is not guaranteed to be stringshared. 
\end{DoxyNote}
\mbox{\Hypertarget{group__Efreet__Mime_ga35679fc78fb944991ddc6c3c74b341c9}\label{group__Efreet__Mime_ga35679fc78fb944991ddc6c3c74b341c9}} 
\index{Efreet\+\_\+\+Mime\+: The X\+D\+G Shared Mime Info standard@{Efreet\+\_\+\+Mime\+: The X\+D\+G Shared Mime Info standard}!efreet\+\_\+mime\+\_\+magic\+\_\+type\+\_\+get@{efreet\+\_\+mime\+\_\+magic\+\_\+type\+\_\+get}}
\index{efreet\+\_\+mime\+\_\+magic\+\_\+type\+\_\+get@{efreet\+\_\+mime\+\_\+magic\+\_\+type\+\_\+get}!Efreet\+\_\+\+Mime\+: The X\+D\+G Shared Mime Info standard@{Efreet\+\_\+\+Mime\+: The X\+D\+G Shared Mime Info standard}}
\subsubsection{\texorpdfstring{efreet\+\_\+mime\+\_\+magic\+\_\+type\+\_\+get()}{efreet\_mime\_magic\_type\_get()}}
{\footnotesize\ttfamily \mbox{\hyperlink{group__Elua_ga3db3556eec8ef18cb8ddb43816974ac8}{E\+A\+PI}} const char$\ast$ efreet\+\_\+mime\+\_\+magic\+\_\+type\+\_\+get (\begin{DoxyParamCaption}\item[{const char $\ast$}]{file }\end{DoxyParamCaption})}



Retrieve the mime type of a file using magic. 


\begin{DoxyParams}{Parameters}
{\em file} & The file to check the mime type \\
\hline
\end{DoxyParams}
\begin{DoxyReturn}{Returns}
Mime type as a string. 
\end{DoxyReturn}
\mbox{\Hypertarget{group__Efreet__Mime_gac436aac6f7def675d888f6c3dea11a3d}\label{group__Efreet__Mime_gac436aac6f7def675d888f6c3dea11a3d}} 
\index{Efreet\+\_\+\+Mime\+: The X\+D\+G Shared Mime Info standard@{Efreet\+\_\+\+Mime\+: The X\+D\+G Shared Mime Info standard}!efreet\+\_\+mime\+\_\+globs\+\_\+type\+\_\+get@{efreet\+\_\+mime\+\_\+globs\+\_\+type\+\_\+get}}
\index{efreet\+\_\+mime\+\_\+globs\+\_\+type\+\_\+get@{efreet\+\_\+mime\+\_\+globs\+\_\+type\+\_\+get}!Efreet\+\_\+\+Mime\+: The X\+D\+G Shared Mime Info standard@{Efreet\+\_\+\+Mime\+: The X\+D\+G Shared Mime Info standard}}
\subsubsection{\texorpdfstring{efreet\+\_\+mime\+\_\+globs\+\_\+type\+\_\+get()}{efreet\_mime\_globs\_type\_get()}}
{\footnotesize\ttfamily \mbox{\hyperlink{group__Elua_ga3db3556eec8ef18cb8ddb43816974ac8}{E\+A\+PI}} const char$\ast$ efreet\+\_\+mime\+\_\+globs\+\_\+type\+\_\+get (\begin{DoxyParamCaption}\item[{const char $\ast$}]{file }\end{DoxyParamCaption})}



Retrieve the mime type of a file using globs. 


\begin{DoxyParams}{Parameters}
{\em file} & The file to check the mime type \\
\hline
\end{DoxyParams}
\begin{DoxyReturn}{Returns}
Mime type as a string. 
\end{DoxyReturn}
\mbox{\Hypertarget{group__Efreet__Mime_ga6ce1396d5564d1cbfb3e164dfb0b18f1}\label{group__Efreet__Mime_ga6ce1396d5564d1cbfb3e164dfb0b18f1}} 
\index{Efreet\+\_\+\+Mime\+: The X\+D\+G Shared Mime Info standard@{Efreet\+\_\+\+Mime\+: The X\+D\+G Shared Mime Info standard}!efreet\+\_\+mime\+\_\+special\+\_\+type\+\_\+get@{efreet\+\_\+mime\+\_\+special\+\_\+type\+\_\+get}}
\index{efreet\+\_\+mime\+\_\+special\+\_\+type\+\_\+get@{efreet\+\_\+mime\+\_\+special\+\_\+type\+\_\+get}!Efreet\+\_\+\+Mime\+: The X\+D\+G Shared Mime Info standard@{Efreet\+\_\+\+Mime\+: The X\+D\+G Shared Mime Info standard}}
\subsubsection{\texorpdfstring{efreet\+\_\+mime\+\_\+special\+\_\+type\+\_\+get()}{efreet\_mime\_special\_type\_get()}}
{\footnotesize\ttfamily \mbox{\hyperlink{group__Elua_ga3db3556eec8ef18cb8ddb43816974ac8}{E\+A\+PI}} const char$\ast$ efreet\+\_\+mime\+\_\+special\+\_\+type\+\_\+get (\begin{DoxyParamCaption}\item[{const char $\ast$}]{file }\end{DoxyParamCaption})}



Retrieve the special mime type of a file. 


\begin{DoxyParams}{Parameters}
{\em file} & The file to check the mime type \\
\hline
\end{DoxyParams}
\begin{DoxyReturn}{Returns}
Mime type as a string. 
\end{DoxyReturn}
\mbox{\Hypertarget{group__Efreet__Mime_ga2aed0ea2603395d2e03ed3bd04971107}\label{group__Efreet__Mime_ga2aed0ea2603395d2e03ed3bd04971107}} 
\index{Efreet\+\_\+\+Mime\+: The X\+D\+G Shared Mime Info standard@{Efreet\+\_\+\+Mime\+: The X\+D\+G Shared Mime Info standard}!efreet\+\_\+mime\+\_\+fallback\+\_\+type\+\_\+get@{efreet\+\_\+mime\+\_\+fallback\+\_\+type\+\_\+get}}
\index{efreet\+\_\+mime\+\_\+fallback\+\_\+type\+\_\+get@{efreet\+\_\+mime\+\_\+fallback\+\_\+type\+\_\+get}!Efreet\+\_\+\+Mime\+: The X\+D\+G Shared Mime Info standard@{Efreet\+\_\+\+Mime\+: The X\+D\+G Shared Mime Info standard}}
\subsubsection{\texorpdfstring{efreet\+\_\+mime\+\_\+fallback\+\_\+type\+\_\+get()}{efreet\_mime\_fallback\_type\_get()}}
{\footnotesize\ttfamily \mbox{\hyperlink{group__Elua_ga3db3556eec8ef18cb8ddb43816974ac8}{E\+A\+PI}} const char$\ast$ efreet\+\_\+mime\+\_\+fallback\+\_\+type\+\_\+get (\begin{DoxyParamCaption}\item[{const char $\ast$}]{file }\end{DoxyParamCaption})}



Retrieve the fallback mime type of a file. 


\begin{DoxyParams}{Parameters}
{\em file} & The file to check the mime type \\
\hline
\end{DoxyParams}
\begin{DoxyReturn}{Returns}
Mime type as a string. 
\end{DoxyReturn}
\mbox{\Hypertarget{group__Efreet__Mime_ga0be761dbf366776de3a623cf4aef5a1b}\label{group__Efreet__Mime_ga0be761dbf366776de3a623cf4aef5a1b}} 
\index{Efreet\+\_\+\+Mime\+: The X\+D\+G Shared Mime Info standard@{Efreet\+\_\+\+Mime\+: The X\+D\+G Shared Mime Info standard}!efreet\+\_\+mime\+\_\+type\+\_\+icon\+\_\+get@{efreet\+\_\+mime\+\_\+type\+\_\+icon\+\_\+get}}
\index{efreet\+\_\+mime\+\_\+type\+\_\+icon\+\_\+get@{efreet\+\_\+mime\+\_\+type\+\_\+icon\+\_\+get}!Efreet\+\_\+\+Mime\+: The X\+D\+G Shared Mime Info standard@{Efreet\+\_\+\+Mime\+: The X\+D\+G Shared Mime Info standard}}
\subsubsection{\texorpdfstring{efreet\+\_\+mime\+\_\+type\+\_\+icon\+\_\+get()}{efreet\_mime\_type\_icon\_get()}}
{\footnotesize\ttfamily \mbox{\hyperlink{group__Elua_ga3db3556eec8ef18cb8ddb43816974ac8}{E\+A\+PI}} const char$\ast$ efreet\+\_\+mime\+\_\+type\+\_\+icon\+\_\+get (\begin{DoxyParamCaption}\item[{const char $\ast$}]{mime,  }\item[{const char $\ast$}]{theme,  }\item[{unsigned int}]{size }\end{DoxyParamCaption})}



Retrieve the mime type icon for a file. 


\begin{DoxyParams}{Parameters}
{\em mime} & The name of the mime type \\
\hline
{\em theme} & The name of the theme to search icons in \\
\hline
{\em size} & The wanted size of the icon \\
\hline
\end{DoxyParams}
\begin{DoxyReturn}{Returns}
Mime type icon path as a string. 
\end{DoxyReturn}
\mbox{\Hypertarget{group__Efreet__Mime_ga66160d959c2780a377a5eb2356559b48}\label{group__Efreet__Mime_ga66160d959c2780a377a5eb2356559b48}} 
\index{Efreet\+\_\+\+Mime\+: The X\+D\+G Shared Mime Info standard@{Efreet\+\_\+\+Mime\+: The X\+D\+G Shared Mime Info standard}!efreet\+\_\+mime\+\_\+type\+\_\+cache\+\_\+flush@{efreet\+\_\+mime\+\_\+type\+\_\+cache\+\_\+flush}}
\index{efreet\+\_\+mime\+\_\+type\+\_\+cache\+\_\+flush@{efreet\+\_\+mime\+\_\+type\+\_\+cache\+\_\+flush}!Efreet\+\_\+\+Mime\+: The X\+D\+G Shared Mime Info standard@{Efreet\+\_\+\+Mime\+: The X\+D\+G Shared Mime Info standard}}
\subsubsection{\texorpdfstring{efreet\+\_\+mime\+\_\+type\+\_\+cache\+\_\+flush()}{efreet\_mime\_type\_cache\_flush()}}
{\footnotesize\ttfamily \mbox{\hyperlink{group__Elua_ga3db3556eec8ef18cb8ddb43816974ac8}{E\+A\+PI}} void efreet\+\_\+mime\+\_\+type\+\_\+cache\+\_\+flush (\begin{DoxyParamCaption}\item[{void}]{ }\end{DoxyParamCaption})}



Flush mime icons mapping cache. 

Flush timeout is defined at compile time by E\+F\+R\+E\+E\+T\+\_\+\+M\+I\+M\+E\+\_\+\+I\+C\+O\+N\+S\+\_\+\+F\+L\+U\+S\+H\+\_\+\+T\+I\+M\+E\+O\+UT 

References ecore\+\_\+loop\+\_\+time\+\_\+get().

