\doxysubsection{Efreet\+\_\+\+Mime\+: The XDG Shared Mime Info standard}
\hypertarget{group__Efreet__Mime}{}\label{group__Efreet__Mime}\index{Efreet\_Mime: The XDG Shared Mime Info standard@{Efreet\_Mime: The XDG Shared Mime Info standard}}


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


\doxysubsubsubsection*{Functions}
\begin{DoxyCompactItemize}
\item 
EAPI int \mbox{\hyperlink{group__Efreet__Mime_gad63027f25e77f7c2298f01f2b705465a}{efreet\+\_\+mime\+\_\+init}} (void)
\begin{DoxyCompactList}\small\item\em Initializes the efreet mime settings. \end{DoxyCompactList}\item 
EAPI 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 
EAPI const char \texorpdfstring{$\ast$}{*} \mbox{\hyperlink{group__Efreet__Mime_ga0c235b651643fa8b634ddd5ebe6a37d4}{efreet\+\_\+mime\+\_\+type\+\_\+get}} (const char \texorpdfstring{$\ast$}{*}file)
\begin{DoxyCompactList}\small\item\em Retrieve the mime type of a file. \end{DoxyCompactList}\item 
EAPI const char \texorpdfstring{$\ast$}{*} \mbox{\hyperlink{group__Efreet__Mime_ga171b4f520fd45eba2a886bfa92ffde12}{efreet\+\_\+mime\+\_\+magic\+\_\+type\+\_\+get}} (const char \texorpdfstring{$\ast$}{*}file)
\begin{DoxyCompactList}\small\item\em Retrieve the mime type of a file using magic. \end{DoxyCompactList}\item 
EAPI const char \texorpdfstring{$\ast$}{*} \mbox{\hyperlink{group__Efreet__Mime_ga7ddd965859099d5f013cda3a71321bc0}{efreet\+\_\+mime\+\_\+globs\+\_\+type\+\_\+get}} (const char \texorpdfstring{$\ast$}{*}file)
\begin{DoxyCompactList}\small\item\em Retrieve the mime type of a file using globs. \end{DoxyCompactList}\item 
EAPI const char \texorpdfstring{$\ast$}{*} \mbox{\hyperlink{group__Efreet__Mime_ga009d5890c9bc8e1dda1f8fb43c6fefa9}{efreet\+\_\+mime\+\_\+special\+\_\+type\+\_\+get}} (const char \texorpdfstring{$\ast$}{*}file)
\begin{DoxyCompactList}\small\item\em Retrieve the special mime type of a file. \end{DoxyCompactList}\item 
EAPI const char \texorpdfstring{$\ast$}{*} \mbox{\hyperlink{group__Efreet__Mime_gaab75e39295461322bf4d23cf7c22ed22}{efreet\+\_\+mime\+\_\+fallback\+\_\+type\+\_\+get}} (const char \texorpdfstring{$\ast$}{*}file)
\begin{DoxyCompactList}\small\item\em Retrieve the fallback mime type of a file. \end{DoxyCompactList}\item 
EAPI const char \texorpdfstring{$\ast$}{*} \mbox{\hyperlink{group__Efreet__Mime_gace07bac3ddeff549bb5387a9f255135f}{efreet\+\_\+mime\+\_\+type\+\_\+icon\+\_\+get}} (const char \texorpdfstring{$\ast$}{*}mime, const char \texorpdfstring{$\ast$}{*}theme, unsigned int size)
\begin{DoxyCompactList}\small\item\em Retrieve the mime type icon for a file. \end{DoxyCompactList}\item 
\Hypertarget{group__Efreet__Mime_ga18592ca671714a8ff2aba95d524e0e5f}\label{group__Efreet__Mime_ga18592ca671714a8ff2aba95d524e0e5f} 
EAPI void {\bfseries efreet\+\_\+mime\+\_\+type\+\_\+cache\+\_\+clear} (void)
\begin{DoxyCompactList}\small\item\em Clear mime icons mapping cache. \end{DoxyCompactList}\item 
EAPI 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}


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

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

\doxysubsubsection{Function Documentation}
\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}}
\doxysubsubsubsection{\texorpdfstring{efreet\_mime\_init()}{efreet\_mime\_init()}}
{\footnotesize\ttfamily EAPI 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}


Referenced by \mbox{\hyperlink{group__Eio__Helper_ga557c198fc1a90518d7872b77843fa029}{eio\+\_\+init()}}, and \mbox{\hyperlink{group__Efreet_ga37f391bd7291bf814aba6431750537a9}{elm\+\_\+need\+\_\+efreet()}}.

\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}}
\doxysubsubsubsection{\texorpdfstring{efreet\_mime\_shutdown()}{efreet\_mime\_shutdown()}}
{\footnotesize\ttfamily EAPI 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}


Referenced by \mbox{\hyperlink{group__Eio__Helper_ga7c3ad77c3f9a0346aab50f474af54b6c}{eio\+\_\+shutdown()}}, and \mbox{\hyperlink{group__Efreet_ga37f391bd7291bf814aba6431750537a9}{elm\+\_\+need\+\_\+efreet()}}.

\Hypertarget{group__Efreet__Mime_ga0c235b651643fa8b634ddd5ebe6a37d4}\label{group__Efreet__Mime_ga0c235b651643fa8b634ddd5ebe6a37d4} 
\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}}
\doxysubsubsubsection{\texorpdfstring{efreet\_mime\_type\_get()}{efreet\_mime\_type\_get()}}
{\footnotesize\ttfamily EAPI const char \texorpdfstring{$\ast$}{*} efreet\+\_\+mime\+\_\+type\+\_\+get (\begin{DoxyParamCaption}\item[{const char \texorpdfstring{$\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 NULL 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 \mbox{\hyperlink{group__Efreet__Mime_ga7ddd965859099d5f013cda3a71321bc0}{efreet\+\_\+mime\+\_\+globs\+\_\+type\+\_\+get()}}, and \mbox{\hyperlink{group__Eina__Safety__Checks__Group_gab2b07061fc6500dedd9cd41c8d16f95d}{EINA\+\_\+\+SAFETY\+\_\+\+ON\+\_\+\+NULL\+\_\+\+RETURN\+\_\+\+VAL}}.

\Hypertarget{group__Efreet__Mime_ga171b4f520fd45eba2a886bfa92ffde12}\label{group__Efreet__Mime_ga171b4f520fd45eba2a886bfa92ffde12} 
\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}}
\doxysubsubsubsection{\texorpdfstring{efreet\_mime\_magic\_type\_get()}{efreet\_mime\_magic\_type\_get()}}
{\footnotesize\ttfamily EAPI const char \texorpdfstring{$\ast$}{*} efreet\+\_\+mime\+\_\+magic\+\_\+type\+\_\+get (\begin{DoxyParamCaption}\item[{const char \texorpdfstring{$\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 \mbox{\hyperlink{group__Eina__Safety__Checks__Group_gab2b07061fc6500dedd9cd41c8d16f95d}{EINA\+\_\+\+SAFETY\+\_\+\+ON\+\_\+\+NULL\+\_\+\+RETURN\+\_\+\+VAL}}.

\Hypertarget{group__Efreet__Mime_ga7ddd965859099d5f013cda3a71321bc0}\label{group__Efreet__Mime_ga7ddd965859099d5f013cda3a71321bc0} 
\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}}
\doxysubsubsubsection{\texorpdfstring{efreet\_mime\_globs\_type\_get()}{efreet\_mime\_globs\_type\_get()}}
{\footnotesize\ttfamily EAPI const char \texorpdfstring{$\ast$}{*} efreet\+\_\+mime\+\_\+globs\+\_\+type\+\_\+get (\begin{DoxyParamCaption}\item[{const char \texorpdfstring{$\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 \mbox{\hyperlink{eina__alloca_8h_ae13861224cb6597c3171a910683cb5fc}{alloca()}}, and \mbox{\hyperlink{group__Eina__Safety__Checks__Group_gab2b07061fc6500dedd9cd41c8d16f95d}{EINA\+\_\+\+SAFETY\+\_\+\+ON\+\_\+\+NULL\+\_\+\+RETURN\+\_\+\+VAL}}.



Referenced by \mbox{\hyperlink{group__Efreet__Mime_ga0c235b651643fa8b634ddd5ebe6a37d4}{efreet\+\_\+mime\+\_\+type\+\_\+get()}}.

\Hypertarget{group__Efreet__Mime_ga009d5890c9bc8e1dda1f8fb43c6fefa9}\label{group__Efreet__Mime_ga009d5890c9bc8e1dda1f8fb43c6fefa9} 
\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}}
\doxysubsubsubsection{\texorpdfstring{efreet\_mime\_special\_type\_get()}{efreet\_mime\_special\_type\_get()}}
{\footnotesize\ttfamily EAPI const char \texorpdfstring{$\ast$}{*} efreet\+\_\+mime\+\_\+special\+\_\+type\+\_\+get (\begin{DoxyParamCaption}\item[{const char \texorpdfstring{$\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 \mbox{\hyperlink{group__Eina__Safety__Checks__Group_gab2b07061fc6500dedd9cd41c8d16f95d}{EINA\+\_\+\+SAFETY\+\_\+\+ON\+\_\+\+NULL\+\_\+\+RETURN\+\_\+\+VAL}}.

\Hypertarget{group__Efreet__Mime_gaab75e39295461322bf4d23cf7c22ed22}\label{group__Efreet__Mime_gaab75e39295461322bf4d23cf7c22ed22} 
\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}}
\doxysubsubsubsection{\texorpdfstring{efreet\_mime\_fallback\_type\_get()}{efreet\_mime\_fallback\_type\_get()}}
{\footnotesize\ttfamily EAPI const char \texorpdfstring{$\ast$}{*} efreet\+\_\+mime\+\_\+fallback\+\_\+type\+\_\+get (\begin{DoxyParamCaption}\item[{const char \texorpdfstring{$\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 \mbox{\hyperlink{group__Eina__Safety__Checks__Group_gab2b07061fc6500dedd9cd41c8d16f95d}{EINA\+\_\+\+SAFETY\+\_\+\+ON\+\_\+\+NULL\+\_\+\+RETURN\+\_\+\+VAL}}.

\Hypertarget{group__Efreet__Mime_gace07bac3ddeff549bb5387a9f255135f}\label{group__Efreet__Mime_gace07bac3ddeff549bb5387a9f255135f} 
\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}}
\doxysubsubsubsection{\texorpdfstring{efreet\_mime\_type\_icon\_get()}{efreet\_mime\_type\_icon\_get()}}
{\footnotesize\ttfamily EAPI const char \texorpdfstring{$\ast$}{*} efreet\+\_\+mime\+\_\+type\+\_\+icon\+\_\+get (\begin{DoxyParamCaption}\item[{const char \texorpdfstring{$\ast$}{*}}]{mime,  }\item[{const char \texorpdfstring{$\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}


References \mbox{\hyperlink{group__Efreet__Desktop_gac12727fc6e77041f5531bfa40dde8740}{efreet\+\_\+desktop\+\_\+environment\+\_\+get()}}, \mbox{\hyperlink{group__Efreet__Icon_ga8da07fcb2dac1faa76e8df32bab82991}{efreet\+\_\+icon\+\_\+list\+\_\+find()}}, \mbox{\hyperlink{group__Eina__List__Group_ga625698a383dda8fc0db245a1c7608c49}{eina\+\_\+list\+\_\+append()}}, \mbox{\hyperlink{group__Eina__List__Group_gaf86ee0fd9fe0643ece301fc86f04e720}{eina\+\_\+list\+\_\+remove\+\_\+list()}}, \mbox{\hyperlink{group__Eina__Safety__Checks__Group_gab2b07061fc6500dedd9cd41c8d16f95d}{EINA\+\_\+\+SAFETY\+\_\+\+ON\+\_\+\+NULL\+\_\+\+RETURN\+\_\+\+VAL}}, \mbox{\hyperlink{group__Eina__Stringshare__Group_ga4e3ce40744291c1fb8574e26883c0bf2}{eina\+\_\+stringshare\+\_\+add()}}, and \mbox{\hyperlink{group__Eina__Stringshare__Group_ga5538b4a134987b8a01744fad1a845ba4}{eina\+\_\+stringshare\+\_\+del()}}.

\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}}
\doxysubsubsubsection{\texorpdfstring{efreet\_mime\_type\_cache\_flush()}{efreet\_mime\_type\_cache\_flush()}}
{\footnotesize\ttfamily EAPI 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 EFREET\+\_\+\+MIME\+\_\+\+ICONS\+\_\+\+FLUSH\+\_\+\+TIMEOUT 

References \mbox{\hyperlink{group__Ecore__Time__Group_gab53d952cc4c2f3ed032d535b307c43bd}{ecore\+\_\+loop\+\_\+time\+\_\+get()}}.

