\hypertarget{group__Efreet__Mime}{\section{Efreet\-\_\-\-Mime\-: The X\-D\-G 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 
\hyperlink{group__Eina__Types__Group_ga3db3556eec8ef18cb8ddb43816974ac8}{E\-A\-P\-I} int \hyperlink{group__Efreet__Mime_gad63027f25e77f7c2298f01f2b705465a}{efreet\-\_\-mime\-\_\-init} (void)
\begin{DoxyCompactList}\small\item\em Initializes the efreet mime settings. \end{DoxyCompactList}\item 
\hyperlink{group__Eina__Types__Group_ga3db3556eec8ef18cb8ddb43816974ac8}{E\-A\-P\-I} int \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 
\hyperlink{group__Eina__Types__Group_ga3db3556eec8ef18cb8ddb43816974ac8}{E\-A\-P\-I} const char $\ast$ \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 
\hyperlink{group__Eina__Types__Group_ga3db3556eec8ef18cb8ddb43816974ac8}{E\-A\-P\-I} const char $\ast$ \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 
\hyperlink{group__Eina__Types__Group_ga3db3556eec8ef18cb8ddb43816974ac8}{E\-A\-P\-I} const char $\ast$ \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 
\hyperlink{group__Eina__Types__Group_ga3db3556eec8ef18cb8ddb43816974ac8}{E\-A\-P\-I} const char $\ast$ \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 
\hyperlink{group__Eina__Types__Group_ga3db3556eec8ef18cb8ddb43816974ac8}{E\-A\-P\-I} const char $\ast$ \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 
\hyperlink{group__Eina__Types__Group_ga3db3556eec8ef18cb8ddb43816974ac8}{E\-A\-P\-I} const char $\ast$ \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 
\hypertarget{group__Efreet__Mime_ga18592ca671714a8ff2aba95d524e0e5f}{\hyperlink{group__Eina__Types__Group_ga3db3556eec8ef18cb8ddb43816974ac8}{E\-A\-P\-I} void \hyperlink{group__Efreet__Mime_ga18592ca671714a8ff2aba95d524e0e5f}{efreet\-\_\-mime\-\_\-type\-\_\-cache\-\_\-clear} (void)}\label{group__Efreet__Mime_ga18592ca671714a8ff2aba95d524e0e5f}

\begin{DoxyCompactList}\small\item\em Clear mime icons mapping cache. \end{DoxyCompactList}\item 
\hyperlink{group__Eina__Types__Group_ga3db3556eec8ef18cb8ddb43816974ac8}{E\-A\-P\-I} void \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. \hyperlink{Efreet__Mime_8h}{Efreet\-\_\-\-Mime.\-h} provides all of the necessary headers and includes to work with Efreet\-\_\-\-Mime. 

\subsection{Function Documentation}
\hypertarget{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 XDG Shared Mime Info standard@{Efreet\-\_\-\-Mime\-: The X\-D\-G Shared Mime Info standard}}
\subsubsection[{efreet\-\_\-mime\-\_\-init}]{\setlength{\rightskip}{0pt plus 5cm}{\bf E\-A\-P\-I} int efreet\-\_\-mime\-\_\-init (
\begin{DoxyParamCaption}
\item[{void}]{}
\end{DoxyParamCaption}
)}}\label{group__Efreet__Mime_gad63027f25e77f7c2298f01f2b705465a}


Initializes the efreet mime settings. 

\begin{DoxyReturn}{Returns}
{\ttfamily 1} on success or {\ttfamily 0} on failure. 
\end{DoxyReturn}


References ecore\-\_\-file\-\_\-init(), ecore\-\_\-file\-\_\-monitor\-\_\-del(), ecore\-\_\-file\-\_\-shutdown(), ecore\-\_\-init(), ecore\-\_\-shutdown(), efreet\-\_\-init(), efreet\-\_\-mime\-\_\-type\-\_\-cache\-\_\-clear(), efreet\-\_\-shutdown(), E\-I\-N\-A\-\_\-\-F\-R\-E\-E\-\_\-\-C\-B, eina\-\_\-hash\-\_\-string\-\_\-superfast\-\_\-new(), eina\-\_\-log\-\_\-domain\-\_\-register(), eina\-\_\-log\-\_\-domain\-\_\-unregister(), and E\-I\-N\-A\-\_\-\-L\-O\-G\-\_\-\-E\-R\-R.

\hypertarget{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 XDG Shared Mime Info standard@{Efreet\-\_\-\-Mime\-: The X\-D\-G Shared Mime Info standard}}
\subsubsection[{efreet\-\_\-mime\-\_\-shutdown}]{\setlength{\rightskip}{0pt plus 5cm}{\bf E\-A\-P\-I} int efreet\-\_\-mime\-\_\-shutdown (
\begin{DoxyParamCaption}
\item[{void}]{}
\end{DoxyParamCaption}
)}}\label{group__Efreet__Mime_gacda6031934032e4b4610f0062a537274}


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\-R\-R.

\hypertarget{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 XDG Shared Mime Info standard@{Efreet\-\_\-\-Mime\-: The X\-D\-G Shared Mime Info standard}}
\subsubsection[{efreet\-\_\-mime\-\_\-type\-\_\-get}]{\setlength{\rightskip}{0pt plus 5cm}{\bf E\-A\-P\-I} const char$\ast$ efreet\-\_\-mime\-\_\-type\-\_\-get (
\begin{DoxyParamCaption}
\item[{const char $\ast$}]{file}
\end{DoxyParamCaption}
)}}\label{group__Efreet__Mime_gadd8c50de321da93b9c913f66d0c208a6}


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. 
\end{DoxyReturn}


References efreet\-\_\-mime\-\_\-globs\-\_\-type\-\_\-get().

\hypertarget{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 XDG Shared Mime Info standard@{Efreet\-\_\-\-Mime\-: The X\-D\-G Shared Mime Info standard}}
\subsubsection[{efreet\-\_\-mime\-\_\-magic\-\_\-type\-\_\-get}]{\setlength{\rightskip}{0pt plus 5cm}{\bf E\-A\-P\-I} const char$\ast$ efreet\-\_\-mime\-\_\-magic\-\_\-type\-\_\-get (
\begin{DoxyParamCaption}
\item[{const char $\ast$}]{file}
\end{DoxyParamCaption}
)}}\label{group__Efreet__Mime_ga35679fc78fb944991ddc6c3c74b341c9}


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}
\hypertarget{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 XDG Shared Mime Info standard@{Efreet\-\_\-\-Mime\-: The X\-D\-G Shared Mime Info standard}}
\subsubsection[{efreet\-\_\-mime\-\_\-globs\-\_\-type\-\_\-get}]{\setlength{\rightskip}{0pt plus 5cm}{\bf E\-A\-P\-I} const char$\ast$ efreet\-\_\-mime\-\_\-globs\-\_\-type\-\_\-get (
\begin{DoxyParamCaption}
\item[{const char $\ast$}]{file}
\end{DoxyParamCaption}
)}}\label{group__Efreet__Mime_gac436aac6f7def675d888f6c3dea11a3d}


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 eina\-\_\-hash\-\_\-find(), and E\-I\-N\-A\-\_\-\-L\-I\-S\-T\-\_\-\-F\-O\-R\-E\-A\-C\-H.



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

\hypertarget{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 XDG Shared Mime Info standard@{Efreet\-\_\-\-Mime\-: The X\-D\-G Shared Mime Info standard}}
\subsubsection[{efreet\-\_\-mime\-\_\-special\-\_\-type\-\_\-get}]{\setlength{\rightskip}{0pt plus 5cm}{\bf E\-A\-P\-I} const char$\ast$ efreet\-\_\-mime\-\_\-special\-\_\-type\-\_\-get (
\begin{DoxyParamCaption}
\item[{const char $\ast$}]{file}
\end{DoxyParamCaption}
)}}\label{group__Efreet__Mime_ga6ce1396d5564d1cbfb3e164dfb0b18f1}


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}
\hypertarget{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 XDG Shared Mime Info standard@{Efreet\-\_\-\-Mime\-: The X\-D\-G Shared Mime Info standard}}
\subsubsection[{efreet\-\_\-mime\-\_\-fallback\-\_\-type\-\_\-get}]{\setlength{\rightskip}{0pt plus 5cm}{\bf E\-A\-P\-I} const char$\ast$ efreet\-\_\-mime\-\_\-fallback\-\_\-type\-\_\-get (
\begin{DoxyParamCaption}
\item[{const char $\ast$}]{file}
\end{DoxyParamCaption}
)}}\label{group__Efreet__Mime_ga2aed0ea2603395d2e03ed3bd04971107}


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}
\hypertarget{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 XDG Shared Mime Info standard@{Efreet\-\_\-\-Mime\-: The X\-D\-G Shared Mime Info standard}}
\subsubsection[{efreet\-\_\-mime\-\_\-type\-\_\-icon\-\_\-get}]{\setlength{\rightskip}{0pt plus 5cm}{\bf E\-A\-P\-I} 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}
)}}\label{group__Efreet__Mime_ga0be761dbf366776de3a623cf4aef5a1b}


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 efreet\-\_\-desktop\-\_\-environment\-\_\-get(), efreet\-\_\-icon\-\_\-list\-\_\-find(), eina\-\_\-list\-\_\-append(), eina\-\_\-list\-\_\-data\-\_\-get(), eina\-\_\-list\-\_\-remove\-\_\-list(), eina\-\_\-stringshare\-\_\-add(), and eina\-\_\-stringshare\-\_\-del().

\hypertarget{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 XDG Shared Mime Info standard@{Efreet\-\_\-\-Mime\-: The X\-D\-G Shared Mime Info standard}}
\subsubsection[{efreet\-\_\-mime\-\_\-type\-\_\-cache\-\_\-flush}]{\setlength{\rightskip}{0pt plus 5cm}{\bf E\-A\-P\-I} void efreet\-\_\-mime\-\_\-type\-\_\-cache\-\_\-flush (
\begin{DoxyParamCaption}
\item[{void}]{}
\end{DoxyParamCaption}
)}}\label{group__Efreet__Mime_ga66160d959c2780a377a5eb2356559b48}


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\-U\-T 

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

