\hypertarget{group__Efreet__Mime}{}\doxysection{Efreet\+\_\+\+Mime\+: The X\+DG Shared Mime Info standard}
\label{group__Efreet__Mime}\index{Efreet\_Mime: The XDG Shared Mime Info standard@{Efreet\_Mime: The XDG Shared Mime Info standard}}
\doxysubsection*{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 
const \mbox{\hyperlink{group__Elua_ga3db3556eec8ef18cb8ddb43816974ac8}{E\+A\+PI}} char $\ast$ \mbox{\hyperlink{group__Efreet__Mime_ga13692c827ef6b8dbf0426a06de8392a0}{efreet\+\_\+mime\+\_\+type\+\_\+get}} (const char $\ast$file)
\begin{DoxyCompactList}\small\item\em Retrieve the mime type of a file. \end{DoxyCompactList}\item 
const \mbox{\hyperlink{group__Elua_ga3db3556eec8ef18cb8ddb43816974ac8}{E\+A\+PI}} char $\ast$ \mbox{\hyperlink{group__Efreet__Mime_ga13c89eb2258cd8bdf1e7531523fa04c1}{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 
const \mbox{\hyperlink{group__Elua_ga3db3556eec8ef18cb8ddb43816974ac8}{E\+A\+PI}} char $\ast$ \mbox{\hyperlink{group__Efreet__Mime_ga39443e982a61f89e2c064898a7c4105d}{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 
const \mbox{\hyperlink{group__Elua_ga3db3556eec8ef18cb8ddb43816974ac8}{E\+A\+PI}} char $\ast$ \mbox{\hyperlink{group__Efreet__Mime_ga8684d1f834292ea75e9fc238fa96089e}{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 
const \mbox{\hyperlink{group__Elua_ga3db3556eec8ef18cb8ddb43816974ac8}{E\+A\+PI}} char $\ast$ \mbox{\hyperlink{group__Efreet__Mime_gaf93c62a005ade3110905d399ce5eef6c}{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 
const \mbox{\hyperlink{group__Elua_ga3db3556eec8ef18cb8ddb43816974ac8}{E\+A\+PI}} char $\ast$ \mbox{\hyperlink{group__Efreet__Mime_gad4db00af39238e11088d581ee301cf45}{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}


\doxysubsection{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. 

\doxysubsection{Function Documentation}
\mbox{\Hypertarget{group__Efreet__Mime_gad63027f25e77f7c2298f01f2b705465a}\label{group__Efreet__Mime_gad63027f25e77f7c2298f01f2b705465a}} 
\index{Efreet\_Mime: The XDG Shared Mime Info standard@{Efreet\_Mime: The XDG Shared Mime Info standard}!efreet\_mime\_init@{efreet\_mime\_init}}
\index{efreet\_mime\_init@{efreet\_mime\_init}!Efreet\_Mime: The XDG Shared Mime Info standard@{Efreet\_Mime: The XDG Shared Mime Info standard}}
\doxysubsubsection{\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}
\DoxyHorRuler
 

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 XDG Shared Mime Info standard@{Efreet\_Mime: The XDG Shared Mime Info standard}!efreet\_mime\_shutdown@{efreet\_mime\_shutdown}}
\index{efreet\_mime\_shutdown@{efreet\_mime\_shutdown}!Efreet\_Mime: The XDG Shared Mime Info standard@{Efreet\_Mime: The XDG Shared Mime Info standard}}
\doxysubsubsection{\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_ga13692c827ef6b8dbf0426a06de8392a0}\label{group__Efreet__Mime_ga13692c827ef6b8dbf0426a06de8392a0}} 
\index{Efreet\_Mime: The XDG Shared Mime Info standard@{Efreet\_Mime: The XDG Shared Mime Info standard}!efreet\_mime\_type\_get@{efreet\_mime\_type\_get}}
\index{efreet\_mime\_type\_get@{efreet\_mime\_type\_get}!Efreet\_Mime: The XDG Shared Mime Info standard@{Efreet\_Mime: The XDG Shared Mime Info standard}}
\doxysubsubsection{\texorpdfstring{efreet\_mime\_type\_get()}{efreet\_mime\_type\_get()}}
{\footnotesize\ttfamily const \mbox{\hyperlink{group__Elua_ga3db3556eec8ef18cb8ddb43816974ac8}{E\+A\+PI}} 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}


References efreet\+\_\+mime\+\_\+globs\+\_\+type\+\_\+get(), and E\+I\+N\+A\+\_\+\+S\+A\+F\+E\+T\+Y\+\_\+\+O\+N\+\_\+\+N\+U\+L\+L\+\_\+\+R\+E\+T\+U\+R\+N\+\_\+\+V\+AL.

\mbox{\Hypertarget{group__Efreet__Mime_ga13c89eb2258cd8bdf1e7531523fa04c1}\label{group__Efreet__Mime_ga13c89eb2258cd8bdf1e7531523fa04c1}} 
\index{Efreet\_Mime: The XDG Shared Mime Info standard@{Efreet\_Mime: The XDG 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 XDG Shared Mime Info standard@{Efreet\_Mime: The XDG Shared Mime Info standard}}
\doxysubsubsection{\texorpdfstring{efreet\_mime\_magic\_type\_get()}{efreet\_mime\_magic\_type\_get()}}
{\footnotesize\ttfamily const \mbox{\hyperlink{group__Elua_ga3db3556eec8ef18cb8ddb43816974ac8}{E\+A\+PI}} 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}


References E\+I\+N\+A\+\_\+\+S\+A\+F\+E\+T\+Y\+\_\+\+O\+N\+\_\+\+N\+U\+L\+L\+\_\+\+R\+E\+T\+U\+R\+N\+\_\+\+V\+AL.

\mbox{\Hypertarget{group__Efreet__Mime_ga39443e982a61f89e2c064898a7c4105d}\label{group__Efreet__Mime_ga39443e982a61f89e2c064898a7c4105d}} 
\index{Efreet\_Mime: The XDG Shared Mime Info standard@{Efreet\_Mime: The XDG 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 XDG Shared Mime Info standard@{Efreet\_Mime: The XDG Shared Mime Info standard}}
\doxysubsubsection{\texorpdfstring{efreet\_mime\_globs\_type\_get()}{efreet\_mime\_globs\_type\_get()}}
{\footnotesize\ttfamily const \mbox{\hyperlink{group__Elua_ga3db3556eec8ef18cb8ddb43816974ac8}{E\+A\+PI}} 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}


References alloca(), and E\+I\+N\+A\+\_\+\+S\+A\+F\+E\+T\+Y\+\_\+\+O\+N\+\_\+\+N\+U\+L\+L\+\_\+\+R\+E\+T\+U\+R\+N\+\_\+\+V\+AL.



Referenced by efreet\+\_\+mime\+\_\+type\+\_\+get().

\mbox{\Hypertarget{group__Efreet__Mime_ga8684d1f834292ea75e9fc238fa96089e}\label{group__Efreet__Mime_ga8684d1f834292ea75e9fc238fa96089e}} 
\index{Efreet\_Mime: The XDG Shared Mime Info standard@{Efreet\_Mime: The XDG 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 XDG Shared Mime Info standard@{Efreet\_Mime: The XDG Shared Mime Info standard}}
\doxysubsubsection{\texorpdfstring{efreet\_mime\_special\_type\_get()}{efreet\_mime\_special\_type\_get()}}
{\footnotesize\ttfamily const \mbox{\hyperlink{group__Elua_ga3db3556eec8ef18cb8ddb43816974ac8}{E\+A\+PI}} 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}


References E\+I\+N\+A\+\_\+\+S\+A\+F\+E\+T\+Y\+\_\+\+O\+N\+\_\+\+N\+U\+L\+L\+\_\+\+R\+E\+T\+U\+R\+N\+\_\+\+V\+AL.

\mbox{\Hypertarget{group__Efreet__Mime_gaf93c62a005ade3110905d399ce5eef6c}\label{group__Efreet__Mime_gaf93c62a005ade3110905d399ce5eef6c}} 
\index{Efreet\_Mime: The XDG Shared Mime Info standard@{Efreet\_Mime: The XDG 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 XDG Shared Mime Info standard@{Efreet\_Mime: The XDG Shared Mime Info standard}}
\doxysubsubsection{\texorpdfstring{efreet\_mime\_fallback\_type\_get()}{efreet\_mime\_fallback\_type\_get()}}
{\footnotesize\ttfamily const \mbox{\hyperlink{group__Elua_ga3db3556eec8ef18cb8ddb43816974ac8}{E\+A\+PI}} 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}


References E\+I\+N\+A\+\_\+\+S\+A\+F\+E\+T\+Y\+\_\+\+O\+N\+\_\+\+N\+U\+L\+L\+\_\+\+R\+E\+T\+U\+R\+N\+\_\+\+V\+AL.

\mbox{\Hypertarget{group__Efreet__Mime_gad4db00af39238e11088d581ee301cf45}\label{group__Efreet__Mime_gad4db00af39238e11088d581ee301cf45}} 
\index{Efreet\_Mime: The XDG Shared Mime Info standard@{Efreet\_Mime: The XDG 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 XDG Shared Mime Info standard@{Efreet\_Mime: The XDG Shared Mime Info standard}}
\doxysubsubsection{\texorpdfstring{efreet\_mime\_type\_icon\_get()}{efreet\_mime\_type\_icon\_get()}}
{\footnotesize\ttfamily const \mbox{\hyperlink{group__Elua_ga3db3556eec8ef18cb8ddb43816974ac8}{E\+A\+PI}} 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 XDG Shared Mime Info standard@{Efreet\_Mime: The XDG 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 XDG Shared Mime Info standard@{Efreet\_Mime: The XDG Shared Mime Info standard}}
\doxysubsubsection{\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().

