\hypertarget{group__Eina__Main__Group}{}\doxysection{Main}
\label{group__Eina__Main__Group}\index{Main@{Main}}


These functions provide general initialization and shut down functions.  


\doxysubsection*{Data Structures}
\begin{DoxyCompactItemize}
\item 
struct \mbox{\hyperlink{struct__Eina__Version}{\+\_\+\+Eina\+\_\+\+Version}}
\begin{DoxyCompactList}\small\item\em The version of Eina. \end{DoxyCompactList}\end{DoxyCompactItemize}
\doxysubsection*{Macros}
\begin{DoxyCompactItemize}
\item 
\mbox{\Hypertarget{group__Eina__Main__Group_gaec297cd01c3347fef43f823a64e6a50b}\label{group__Eina__Main__Group_gaec297cd01c3347fef43f823a64e6a50b}} 
\#define {\bfseries EINA\+\_\+\+VERSION\+\_\+\+MAJOR}~EFL\+\_\+\+VERSION\+\_\+\+MAJOR
\begin{DoxyCompactList}\small\item\em Definition for the major version of Eina. \end{DoxyCompactList}\item 
\mbox{\Hypertarget{group__Eina__Main__Group_ga53cc988032e4f0422ea6c6f779a6708a}\label{group__Eina__Main__Group_ga53cc988032e4f0422ea6c6f779a6708a}} 
\#define {\bfseries EINA\+\_\+\+VERSION\+\_\+\+MINOR}~EFL\+\_\+\+VERSION\+\_\+\+MINOR
\begin{DoxyCompactList}\small\item\em Definition for the minor version of Eina. \end{DoxyCompactList}\end{DoxyCompactItemize}
\doxysubsection*{Typedefs}
\begin{DoxyCompactItemize}
\item 
\mbox{\Hypertarget{group__Eina__Main__Group_ga78a3169043077944751062be463cc212}\label{group__Eina__Main__Group_ga78a3169043077944751062be463cc212}} 
typedef struct \mbox{\hyperlink{struct__Eina__Version}{\+\_\+\+Eina\+\_\+\+Version}} {\bfseries Eina\+\_\+\+Version}
\begin{DoxyCompactList}\small\item\em The version of Eina. \end{DoxyCompactList}\end{DoxyCompactItemize}
\doxysubsection*{Functions}
\begin{DoxyCompactItemize}
\item 
\mbox{\hyperlink{group__Eina__Types__Group_ga6ac08753ba12bc9c7a0390cf67868f4f}{EINA\+\_\+\+API}} int \mbox{\hyperlink{group__Eina__Main__Group_ga81b8137665b8a4d2cb38ca50017d4c74}{eina\+\_\+init}} (void)
\begin{DoxyCompactList}\small\item\em Initializes the Eina library. \end{DoxyCompactList}\item 
\mbox{\hyperlink{group__Eina__Types__Group_ga6ac08753ba12bc9c7a0390cf67868f4f}{EINA\+\_\+\+API}} int \mbox{\hyperlink{group__Eina__Main__Group_ga5bf35513199d5220341437c05696285d}{eina\+\_\+shutdown}} (void)
\begin{DoxyCompactList}\small\item\em Shuts down the Eina library. \end{DoxyCompactList}\item 
\mbox{\hyperlink{group__Eina__Types__Group_ga6ac08753ba12bc9c7a0390cf67868f4f}{EINA\+\_\+\+API}} int \mbox{\hyperlink{group__Eina__Main__Group_ga169380f8b2c21bc95b2af6ba5d013395}{eina\+\_\+threads\+\_\+init}} (void)
\begin{DoxyCompactList}\small\item\em Initializes the mutexes of the Eina library. \end{DoxyCompactList}\item 
\mbox{\hyperlink{group__Eina__Types__Group_ga6ac08753ba12bc9c7a0390cf67868f4f}{EINA\+\_\+\+API}} int \mbox{\hyperlink{group__Eina__Main__Group_gae68d340aaeb79e01f0f2ba0292fef5a3}{eina\+\_\+threads\+\_\+shutdown}} (void)
\begin{DoxyCompactList}\small\item\em Shuts down mutexes in the Eina library. \end{DoxyCompactList}\item 
\mbox{\hyperlink{group__Eina__Types__Group_ga6ac08753ba12bc9c7a0390cf67868f4f}{EINA\+\_\+\+API}} \mbox{\hyperlink{group__Eina__Types__Group_ga3fe0caf72e93b1bab1ca8ee3ccf3f226}{Eina\+\_\+\+Bool}} \mbox{\hyperlink{group__Eina__Main__Group_gada1beaf0b3e087deafd8608c1a47d34a}{eina\+\_\+main\+\_\+loop\+\_\+is}} (void)
\begin{DoxyCompactList}\small\item\em Checks if you are calling this function from the same thread Eina was initialized or not. \end{DoxyCompactList}\item 
\mbox{\hyperlink{group__Eina__Types__Group_ga6ac08753ba12bc9c7a0390cf67868f4f}{EINA\+\_\+\+API}} void \mbox{\hyperlink{group__Eina__Main__Group_ga17f66c5ba9b2f0ee8b57837ebfcc33fb}{eina\+\_\+main\+\_\+loop\+\_\+define}} (void)
\begin{DoxyCompactList}\small\item\em You should never use this function except if you really really know what your are doing. \end{DoxyCompactList}\end{DoxyCompactItemize}
\doxysubsection*{Variables}
\begin{DoxyCompactItemize}
\item 
\mbox{\Hypertarget{group__Eina__Main__Group_gabbb317a9b1eee2b5648ed194d8c8b297}\label{group__Eina__Main__Group_gabbb317a9b1eee2b5648ed194d8c8b297}} 
\mbox{\hyperlink{group__Eina__Types__Group_ga6ac08753ba12bc9c7a0390cf67868f4f}{EINA\+\_\+\+API}} \mbox{\hyperlink{group__Eina__Main__Group_ga78a3169043077944751062be463cc212}{Eina\+\_\+\+Version}} $\ast$ {\bfseries eina\+\_\+version}
\begin{DoxyCompactList}\small\item\em Eina version (defined at configuration time) \end{DoxyCompactList}\item 
\mbox{\Hypertarget{group__Eina__Main__Group_gaba85d72b4d59b1225844d4c8549a62a1}\label{group__Eina__Main__Group_gaba85d72b4d59b1225844d4c8549a62a1}} 
\mbox{\hyperlink{group__Eina__Types__Group_ga6ac08753ba12bc9c7a0390cf67868f4f}{EINA\+\_\+\+API}} \mbox{\hyperlink{group__Eina__Error__Group_ga95b3cbb33e987e7d92a81ea785001686}{Eina\+\_\+\+Error}} {\bfseries EINA\+\_\+\+ERROR\+\_\+\+NOT\+\_\+\+IMPLEMENTED}
\end{DoxyCompactItemize}


\doxysubsection{Detailed Description}
These functions provide general initialization and shut down functions. 



\doxysubsection{Function Documentation}
\mbox{\Hypertarget{group__Eina__Main__Group_ga81b8137665b8a4d2cb38ca50017d4c74}\label{group__Eina__Main__Group_ga81b8137665b8a4d2cb38ca50017d4c74}} 
\index{Main@{Main}!eina\_init@{eina\_init}}
\index{eina\_init@{eina\_init}!Main@{Main}}
\doxysubsubsection{\texorpdfstring{eina\_init()}{eina\_init()}}
{\footnotesize\ttfamily \mbox{\hyperlink{group__Eina__Types__Group_ga6ac08753ba12bc9c7a0390cf67868f4f}{EINA\+\_\+\+API}} int eina\+\_\+init (\begin{DoxyParamCaption}\item[{void}]{ }\end{DoxyParamCaption})}



Initializes the Eina library. 

\begin{DoxyReturn}{Returns}
{\ttfamily 1} or greater on success, {\ttfamily 0} on error.
\end{DoxyReturn}
This function sets up all the eina modules. It returns 0 on failure (that is, when one of the module fails to initialize), otherwise it returns the number of times it has already been called.

When Eina is not used anymore, call \mbox{\hyperlink{group__Eina__Main__Group_ga5bf35513199d5220341437c05696285d}{eina\+\_\+shutdown()}} to shut down the Eina library.

This function is affected by the following environment variables.

Logging environment variables\+:

\begin{DoxyItemize}
\item {\ttfamily EINA\+\_\+\+LOG\+\_\+\+ABORT=1} will cause abort(3) if {\ttfamily EINA\+\_\+\+LOG\+\_\+\+ABORT\+\_\+\+LEVEL}, which defaults to 0 (critical), is reached.\end{DoxyItemize}
\begin{DoxyItemize}
\item {\ttfamily EINA\+\_\+\+LOG\+\_\+\+ABORT\+\_\+\+LEVEL=LEVEL}, where level is an integer such as 0 (critical) to 4 (debug). This will cause any messages at that level or lower (i.\+e.\+: if 4, then messages at level 0 also apply) to abort(3) the application if {\ttfamily EINA\+\_\+\+LOG\+\_\+\+ABORT=1} was defined.\end{DoxyItemize}
\begin{DoxyItemize}
\item {\ttfamily EINA\+\_\+\+LOG\+\_\+\+BACKTRACE=LEVEL}, where level is an integer such as 0 (critical) to 4 (debug). This will cause any messages at that level or lower (i.\+e.\+: if 4, then messages at level 0 also apply) to dump a backtrace. Note that if systemd-\/journal is used, it\textquotesingle{}s going to the journal as well.\end{DoxyItemize}
\begin{DoxyItemize}
\item {\ttfamily EINA\+\_\+\+LOG\+\_\+\+COLOR\+\_\+\+DISABLE=}\mbox{[}0$\vert$1\mbox{]} if {\ttfamily 1} it will disable color in log output. If it\textquotesingle{}s {\ttfamily 0}, it will keep colors. By default it will use colors if it\textquotesingle{}s a TTY, disabling colors if it\textquotesingle{}s printing to a file.\end{DoxyItemize}
\begin{DoxyItemize}
\item {\ttfamily EINA\+\_\+\+LOG\+\_\+\+FILE\+\_\+\+DISABLE=}\mbox{[}0$\vert$1\mbox{]} if {\ttfamily 1} it will disable showing the source file name and line that generated the message. If {\ttfamily 0}, the default, it will show the source file and line.\end{DoxyItemize}
\begin{DoxyItemize}
\item {\ttfamily EINA\+\_\+\+LOG\+\_\+\+FUNCTION\+\_\+\+DISABLE=}\mbox{[}0$\vert$1\mbox{]} if {\ttfamily 1} it will disable showing the source function name that generated the message. If {\ttfamily 0}, the default, it will show the function name.\end{DoxyItemize}
\begin{DoxyItemize}
\item {\ttfamily EINA\+\_\+\+LOG\+\_\+\+LEVEL=LEVEL}, where level is an integer such as 0 (critical) to 4 (debug), where the number is the the highest level to print, that is, using level=4 will lead to messages of level 1, 2 and 3 to be displayed as well, but not level
\begin{DoxyEnumerate}
\item This will control all log domains at once and has lower priority than {\ttfamily EINA\+\_\+\+LOG\+\_\+\+LEVELS}, that defines per-\/domain.
\end{DoxyEnumerate}\end{DoxyItemize}
\begin{DoxyItemize}
\item {\ttfamily EINA\+\_\+\+LOG\+\_\+\+LEVELS=DOMAIN1\+:LEVEL1},DOMAIN2\+:LEVEL2 is a comma separated list of tuples of DOMAIN and LEVEL values separated by a colon. Level is an integer such as 0 (critical) to 4 (debug), where the number is the the highest level to print, that is, using level=4 will lead to messages of level 1, 2 and 3 to be displayed as well, but not level 5. This offers fine grained control, allowing a single domain to be printed at debug (4) while keeping others at error (1) only. For instance {\ttfamily EINA\+\_\+\+LOG\+\_\+\+LEVELS=eina\+:2},eina\+\_\+binshare\+:4 will change eina\textquotesingle{}s general purpose logging domain to warning (2) while will make the specific eina\+\_\+binshare debug (4).\end{DoxyItemize}
\begin{DoxyItemize}
\item {\ttfamily EINA\+\_\+\+LOG\+\_\+\+LEVELS\+\_\+\+GLOB=PATTERN1\+:LEVEL1},PATTERN2\+:LEVEL2 is a comma separated list of tuples of domain PATTERN and LEVEL values separated by a colon. PATTERN is a fnmatch(3) pattern that will try to match the domain name. Level is an integer such as 0 (critical) to 4 (debug), where the number is the the highest level to print, that is, using level=4 will lead to messages of level 1, 2 and 3 to be displayed as well, but not level 5. This offers fine grained control, allowing a single domain to be printed at debug (4) while keeping others at error (1) only. For instance {\ttfamily EINA\+\_\+\+LOG\+\_\+\+LEVELS\+\_\+\+GLOB=eina$\ast$}\+:4 will change all domain names starting with \char`\"{}eina\char`\"{}, such as \char`\"{}eina\char`\"{} (general purpose log domain) and \char`\"{}eina\+\_\+binshare\char`\"{}.\end{DoxyItemize}
Memory allocator environment variables\+:

\begin{DoxyItemize}
\item {\ttfamily EINA\+\_\+\+MEMPOOL=mempool\+\_\+allocator} will choose another memory allocator to use. Commonly this is given {\ttfamily pass\+\_\+through} as the {\ttfamily mempool\+\_\+allocator} to allow valgrind and other tools to debug it more easily.\end{DoxyItemize}
\begin{DoxyItemize}
\item {\ttfamily EINA\+\_\+\+MEMPOOL\+\_\+\+PASS=1} has the almost the same effect of {\ttfamily EINA\+\_\+\+MEMPOOL=pass\+\_\+through}, but if pass\+\_\+through allocator wasn\textquotesingle{}t built, it will use the original allocator.\end{DoxyItemize}
\begin{DoxyItemize}
\item {\ttfamily EINA\+\_\+\+MTRACE=1} and {\ttfamily MALLOC\+\_\+\+TRACE=PATH} will use mtrace(3) and store the memory allocation traces to given {\ttfamily PATH}.\end{DoxyItemize}
Module loading environment variables\+:

\begin{DoxyItemize}
\item {\ttfamily EINA\+\_\+\+MODULE\+\_\+\+LAZY\+\_\+\+LOAD=1} will dlopen(3) with RTLD\+\_\+\+LAZY, this results in faster startup since symbols will be resolved when needed, but may omit errors as they will be triggered later on.\end{DoxyItemize}
Threads environment variables\+:

\begin{DoxyItemize}
\item {\ttfamily EINA\+\_\+\+DEBUG\+\_\+\+THREADS=1} will print out debug information about threads, but requires Eina to be compiled with such feature. \end{DoxyItemize}


References \mbox{\hyperlink{group__Eina__Error__Group_ga4a2be38f81f21dab8472ffb6bfd49ab7}{eina\+\_\+error\+\_\+msg\+\_\+static\+\_\+register()}}, \mbox{\hyperlink{group__Eina__Lock__Group_ga4cf2147d754cd12c9b6684a06cc768ba}{EINA\+\_\+\+ERROR\+\_\+\+NOT\+\_\+\+MAIN\+\_\+\+LOOP}}, \mbox{\hyperlink{group__Eina__Evlog_ga85601ce8bff6482fd44ac1f3669f3bfe}{eina\+\_\+evlog()}}, \mbox{\hyperlink{group__Eina__FreeQ__Group_gga52c4eb7c091de64d45dc7a97c650eff4a38a3a01f7a20cb8102d7747998118372}{EINA\+\_\+\+FREEQ\+\_\+\+DEFAULT}}, \mbox{\hyperlink{group__Eina__FreeQ__Group_gaba2a3ad66eede01ae3bf2971e8b38d9a}{eina\+\_\+freeq\+\_\+new()}}, \mbox{\hyperlink{group__Eina__Types__Group_gaa9820797ec4c069e571f57e3c0c12216}{EINA\+\_\+\+LIKELY}}, \mbox{\hyperlink{group__Eina__File__Group_gaedcc484fea6c2dc20b7f48664ce42dd6}{EINA\+\_\+\+LOG\+\_\+\+COLOR\+\_\+\+DEFAULT}}, \mbox{\hyperlink{group__Eina__Log__Group_ga79d0a42ab10dd0e7760b33ae33a6aae0}{eina\+\_\+log\+\_\+domain\+\_\+register()}}, \mbox{\hyperlink{group__Eina__Log__Group_ga2e33caeeeb6051526c01b7fea4d6c91b}{EINA\+\_\+\+LOG\+\_\+\+ERR}}, \mbox{\hyperlink{group__Eina__Log__Group_ga079e9de9602815a6de0d5188b65c07a2}{EINA\+\_\+\+LOG\+\_\+\+STATE\+\_\+\+INIT}}, \mbox{\hyperlink{group__Eina__Log__Group_gga125f3b55502884020a1546d0575ae052adcc235504e74cbd641635c0af36e9d47}{EINA\+\_\+\+LOG\+\_\+\+STATE\+\_\+\+STOP}}, and \mbox{\hyperlink{group__Eina__Log__Group_gaceb7074e48242643ec8d3d664a32801e}{eina\+\_\+log\+\_\+timing()}}.



Referenced by \mbox{\hyperlink{group__Ecore__Con__Lib__Group_ga8a20f47372627a03e86a8705a6f8a82d}{ecore\+\_\+con\+\_\+init()}}, \mbox{\hyperlink{group__Ecore__Drm2__Init__Group_gac80f615f0768a0a79e3c71e9a80577eb}{ecore\+\_\+drm2\+\_\+init()}}, \mbox{\hyperlink{group__Ecore__Drm__Init__Group_gae2c58e2992ce9af065417ec998202546}{ecore\+\_\+drm\+\_\+init()}}, \mbox{\hyperlink{group__Ecore__Init__Group_ga77757609684a2c922dc5ec398274751b}{ecore\+\_\+init()}}, \mbox{\hyperlink{group__Ecore__Win32__Group_ga3219c174d44558bb46104540852a8d34}{ecore\+\_\+win32\+\_\+init()}}, \mbox{\hyperlink{group__Ecore__Wl2__Init__Group_gad439e46a49f2c1175b572dda9a002254}{ecore\+\_\+wl2\+\_\+init()}}, \mbox{\hyperlink{group__Ecore__Wl__Init__Group_gaf158fc255ed0fbbe4721475a87d86828}{ecore\+\_\+wl\+\_\+init()}}, \mbox{\hyperlink{group__Ector_ga6fd83c47113476fdce73216b21f36be0}{ector\+\_\+init()}}, \mbox{\hyperlink{group__Edje__General__Group_ga1c9c6594f38023c29fbfb2d0c8c675db}{edje\+\_\+init()}}, \mbox{\hyperlink{group__Eet__Group_ga9903687bfa20fe9a9e59d4c1d213e89a}{eet\+\_\+init()}}, \mbox{\hyperlink{group__Eeze__Main_gab802d08096efb76b6fd9e04414fed3c4}{eeze\+\_\+init()}}, \mbox{\hyperlink{Efreet_8h_a448e550a87271c7a74f8bf9963a8b81e}{efreet\+\_\+init()}}, \mbox{\hyperlink{group__Eio__Helper_ga557c198fc1a90518d7872b77843fa029}{eio\+\_\+init()}}, \mbox{\hyperlink{group__Eldbus__Core_gadd7c8b8a43b5dd590f7fd06166288754}{eldbus\+\_\+init()}}, \mbox{\hyperlink{group__Elm__General_gab31fb3af2f25295fea1eb05f69724eb5}{elm\+\_\+quicklaunch\+\_\+init()}}, \mbox{\hyperlink{group__Elput__Init__Group_gabde718edc099f32cae26bb58edc424b7}{elput\+\_\+init()}}, \mbox{\hyperlink{group__Elua_gacf7fc6f0386d30e4af4fcb8fd424c8dc}{elua\+\_\+init()}}, \mbox{\hyperlink{group__Embryo__Library__Group_gae938f7af6432daaad3278c5fe80f281c}{embryo\+\_\+init()}}, \mbox{\hyperlink{group__Emile__Group_ga612ed9079d6ab739f2dbcb93f9ccb151}{emile\+\_\+init()}}, \mbox{\hyperlink{group__Emotion__API_ga5959f96c419207924c9935a9793706a5}{emotion\+\_\+init()}}, \mbox{\hyperlink{group__Ethumb__Client__Basics_ga64c23fe86d0bce53c9eeaacbe4834c7f}{ethumb\+\_\+client\+\_\+init()}}, \mbox{\hyperlink{group__Ethumb__Basics_ga3faacfc1fcfc59f18caa6696996633c8}{ethumb\+\_\+init()}}, and \mbox{\hyperlink{group__Evas__Main__Group_gaa617071d85a52779e950e5b1d8c354e3}{evas\+\_\+init()}}.

\mbox{\Hypertarget{group__Eina__Main__Group_ga5bf35513199d5220341437c05696285d}\label{group__Eina__Main__Group_ga5bf35513199d5220341437c05696285d}} 
\index{Main@{Main}!eina\_shutdown@{eina\_shutdown}}
\index{eina\_shutdown@{eina\_shutdown}!Main@{Main}}
\doxysubsubsection{\texorpdfstring{eina\_shutdown()}{eina\_shutdown()}}
{\footnotesize\ttfamily \mbox{\hyperlink{group__Eina__Types__Group_ga6ac08753ba12bc9c7a0390cf67868f4f}{EINA\+\_\+\+API}} int eina\+\_\+shutdown (\begin{DoxyParamCaption}\item[{void}]{ }\end{DoxyParamCaption})}



Shuts down the Eina library. 

\begin{DoxyReturn}{Returns}
{\ttfamily 0} when all the modules are completely shut down, {\ttfamily 1} or greater otherwise.
\end{DoxyReturn}
This function shuts down the Eina library. It returns 0 when it has been called the same number of times than \mbox{\hyperlink{group__Eina__Main__Group_ga81b8137665b8a4d2cb38ca50017d4c74}{eina\+\_\+init()}}. In that case it shuts down all the Eina modules.

Once this function succeeds (that is, {\ttfamily 0} is returned), you must not call any of the Eina functions anymore. You must call \mbox{\hyperlink{group__Eina__Main__Group_ga81b8137665b8a4d2cb38ca50017d4c74}{eina\+\_\+init()}} again to use the Eina functions again. 

References \mbox{\hyperlink{group__Eina__FreeQ__Group_gac9df52ffa6ef9fb7d3920e2620b395f1}{eina\+\_\+freeq\+\_\+free()}}, \mbox{\hyperlink{group__Eina__FreeQ__Group_ga81aa3ac8f2841ff6196def6a65ab9eb7}{eina\+\_\+freeq\+\_\+main\+\_\+get()}}, \mbox{\hyperlink{group__Eina__Log__Group_ga527ad9352599d503a53bf834868d3461}{EINA\+\_\+\+LOG\+\_\+\+STATE\+\_\+\+SHUTDOWN}}, \mbox{\hyperlink{group__Eina__Log__Group_gga125f3b55502884020a1546d0575ae052a42e956e3a69ea29632f7e9d27a269903}{EINA\+\_\+\+LOG\+\_\+\+STATE\+\_\+\+START}}, \mbox{\hyperlink{group__Eina__Log__Group_gaceb7074e48242643ec8d3d664a32801e}{eina\+\_\+log\+\_\+timing()}}, and \mbox{\hyperlink{group__Eina__Types__Group_ga70675a75a5fb3e9a51d5af985a1fd3aa}{EINA\+\_\+\+UNLIKELY}}.



Referenced by \mbox{\hyperlink{group__Ecore__Con__Lib__Group_ga8a20f47372627a03e86a8705a6f8a82d}{ecore\+\_\+con\+\_\+init()}}, \mbox{\hyperlink{group__Ecore__Con__Lib__Group_ga0e5e01c67f7135e16db0e8f17d087d99}{ecore\+\_\+con\+\_\+shutdown()}}, \mbox{\hyperlink{group__Ecore__Drm2__Init__Group_gac80f615f0768a0a79e3c71e9a80577eb}{ecore\+\_\+drm2\+\_\+init()}}, \mbox{\hyperlink{group__Ecore__Drm2__Init__Group_ga70a29efd6a28b22975d087c78ea2377b}{ecore\+\_\+drm2\+\_\+shutdown()}}, \mbox{\hyperlink{group__Ecore__Drm__Init__Group_gae2c58e2992ce9af065417ec998202546}{ecore\+\_\+drm\+\_\+init()}}, \mbox{\hyperlink{group__Ecore__Drm__Init__Group_ga7bd82b81b62b5e541655e38b9cf71f58}{ecore\+\_\+drm\+\_\+shutdown()}}, \mbox{\hyperlink{group__Ecore__Init__Group_ga77757609684a2c922dc5ec398274751b}{ecore\+\_\+init()}}, \mbox{\hyperlink{group__Ecore__Init__Group_ga768298b932f18d7e7593a447493e5cde}{ecore\+\_\+shutdown()}}, \mbox{\hyperlink{group__Ecore__Win32__Group_ga3219c174d44558bb46104540852a8d34}{ecore\+\_\+win32\+\_\+init()}}, \mbox{\hyperlink{group__Ecore__Win32__Group_ga391ac010f137154d1880252da77b1162}{ecore\+\_\+win32\+\_\+shutdown()}}, \mbox{\hyperlink{group__Ecore__Wl2__Init__Group_gad439e46a49f2c1175b572dda9a002254}{ecore\+\_\+wl2\+\_\+init()}}, \mbox{\hyperlink{group__Ecore__Wl2__Init__Group_ga24b19355d3cebc9c7551bfd91c31ba17}{ecore\+\_\+wl2\+\_\+shutdown()}}, \mbox{\hyperlink{group__Ecore__Wl__Init__Group_gaf158fc255ed0fbbe4721475a87d86828}{ecore\+\_\+wl\+\_\+init()}}, \mbox{\hyperlink{group__Ecore__X__Init__Group_ga92e834eefd48b55101fa30c7386a709e}{ecore\+\_\+x\+\_\+init()}}, \mbox{\hyperlink{Ecore__X_8h_a7d02c60d4c4ef4aa994e73df0286836d}{ecore\+\_\+x\+\_\+init\+\_\+from\+\_\+display()}}, \mbox{\hyperlink{group__Ector_ga6fd83c47113476fdce73216b21f36be0}{ector\+\_\+init()}}, \mbox{\hyperlink{group__Ector_ga7e472ea6ace1ece6c16dabc8b4fc9b3b}{ector\+\_\+shutdown()}}, \mbox{\hyperlink{group__Edje__General__Group_ga1c9c6594f38023c29fbfb2d0c8c675db}{edje\+\_\+init()}}, \mbox{\hyperlink{group__Eet__Group_ga9903687bfa20fe9a9e59d4c1d213e89a}{eet\+\_\+init()}}, \mbox{\hyperlink{group__Eet__Group_gacbc7583179399d3b3e7b003e911f866f}{eet\+\_\+shutdown()}}, \mbox{\hyperlink{group__Eeze__Main_gab802d08096efb76b6fd9e04414fed3c4}{eeze\+\_\+init()}}, \mbox{\hyperlink{group__Eeze__Main_ga908dda677760bf318a67428938a07d42}{eeze\+\_\+shutdown()}}, \mbox{\hyperlink{Efreet_8h_a448e550a87271c7a74f8bf9963a8b81e}{efreet\+\_\+init()}}, \mbox{\hyperlink{Efreet_8h_a21312e3804b2ff4afed2e854b66ed827}{efreet\+\_\+shutdown()}}, \mbox{\hyperlink{group__Eio__Helper_ga557c198fc1a90518d7872b77843fa029}{eio\+\_\+init()}}, \mbox{\hyperlink{group__Eio__Helper_ga7c3ad77c3f9a0346aab50f474af54b6c}{eio\+\_\+shutdown()}}, \mbox{\hyperlink{group__Eldbus__Core_gadd7c8b8a43b5dd590f7fd06166288754}{eldbus\+\_\+init()}}, \mbox{\hyperlink{group__Eldbus__Core_ga255ee3e090da6704d009ee74ba9d8a79}{eldbus\+\_\+shutdown()}}, \mbox{\hyperlink{group__Elm__General_gab31fb3af2f25295fea1eb05f69724eb5}{elm\+\_\+quicklaunch\+\_\+init()}}, \mbox{\hyperlink{group__Elm__General_ga9fcc62ef962c1b166c693cfd6f2372e4}{elm\+\_\+quicklaunch\+\_\+shutdown()}}, \mbox{\hyperlink{group__Elput__Init__Group_gabde718edc099f32cae26bb58edc424b7}{elput\+\_\+init()}}, \mbox{\hyperlink{group__Elput__Init__Group_ga73c675b1a12fa8c1ac9d3e3abadbc006}{elput\+\_\+shutdown()}}, \mbox{\hyperlink{group__Elua_ga8364635553424c58bdbb50f9bb842d9b}{elua\+\_\+shutdown()}}, \mbox{\hyperlink{group__Embryo__Library__Group_gae938f7af6432daaad3278c5fe80f281c}{embryo\+\_\+init()}}, \mbox{\hyperlink{group__Embryo__Library__Group_ga0e9ce7c1cc694db3195fdf754cd7374a}{embryo\+\_\+shutdown()}}, \mbox{\hyperlink{group__Emile__Group_ga612ed9079d6ab739f2dbcb93f9ccb151}{emile\+\_\+init()}}, \mbox{\hyperlink{group__Emile__Group_ga075c27ac4c77467dc986de44fa3c2d01}{emile\+\_\+shutdown()}}, \mbox{\hyperlink{group__Emotion__API_ga5959f96c419207924c9935a9793706a5}{emotion\+\_\+init()}}, \mbox{\hyperlink{group__Emotion__API_gac2efae65442ca95289fb273693195265}{emotion\+\_\+shutdown()}}, \mbox{\hyperlink{group__Ethumb__Client__Basics_ga64c23fe86d0bce53c9eeaacbe4834c7f}{ethumb\+\_\+client\+\_\+init()}}, \mbox{\hyperlink{group__Ethumb__Client__Basics_ga1e32e798f7465f9f699ff4e66e323381}{ethumb\+\_\+client\+\_\+shutdown()}}, \mbox{\hyperlink{group__Ethumb__Basics_ga3faacfc1fcfc59f18caa6696996633c8}{ethumb\+\_\+init()}}, \mbox{\hyperlink{group__Ethumb__Basics_ga8caed02a117a8dc08ffe4a1bc1b835df}{ethumb\+\_\+shutdown()}}, \mbox{\hyperlink{group__Evas__Main__Group_gaa617071d85a52779e950e5b1d8c354e3}{evas\+\_\+init()}}, and \mbox{\hyperlink{group__Evas__Main__Group_gadb9d1c9f3fcff94cea89e12942c40919}{evas\+\_\+shutdown()}}.

\mbox{\Hypertarget{group__Eina__Main__Group_ga169380f8b2c21bc95b2af6ba5d013395}\label{group__Eina__Main__Group_ga169380f8b2c21bc95b2af6ba5d013395}} 
\index{Main@{Main}!eina\_threads\_init@{eina\_threads\_init}}
\index{eina\_threads\_init@{eina\_threads\_init}!Main@{Main}}
\doxysubsubsection{\texorpdfstring{eina\_threads\_init()}{eina\_threads\_init()}}
{\footnotesize\ttfamily \mbox{\hyperlink{group__Eina__Types__Group_ga6ac08753ba12bc9c7a0390cf67868f4f}{EINA\+\_\+\+API}} int eina\+\_\+threads\+\_\+init (\begin{DoxyParamCaption}\item[{void}]{ }\end{DoxyParamCaption})}



Initializes the mutexes of the Eina library. 

\begin{DoxyReturn}{Returns}
{\ttfamily 1} or greater on success, {\ttfamily 0} on error.
\end{DoxyReturn}
This function sets up all the mutexes in all eina modules. It returns 0 on failure (that is, when one of the module fails to initialize), otherwise it returns the number of times it has already been called.

When the mutexes are not used anymore, call \mbox{\hyperlink{group__Eina__Main__Group_gae68d340aaeb79e01f0f2ba0292fef5a3}{eina\+\_\+threads\+\_\+shutdown()}} to shut down the mutexes.

This function should never be called outside of the main loop. 

References \mbox{\hyperlink{group__Eina__Types__Group_ga05c12dacc8b4058994df842b41be85fc}{EINA\+\_\+\+TRUE}}.



Referenced by \mbox{\hyperlink{group__Ecore__Thread__Group_ga941fa6f0313a6fe551f5d80e2a012bba}{ecore\+\_\+thread\+\_\+feedback\+\_\+run()}}, and \mbox{\hyperlink{group__Ecore__Thread__Group_ga6857d9e5bd717ae3d8417b39ec585c3f}{ecore\+\_\+thread\+\_\+run()}}.

\mbox{\Hypertarget{group__Eina__Main__Group_gae68d340aaeb79e01f0f2ba0292fef5a3}\label{group__Eina__Main__Group_gae68d340aaeb79e01f0f2ba0292fef5a3}} 
\index{Main@{Main}!eina\_threads\_shutdown@{eina\_threads\_shutdown}}
\index{eina\_threads\_shutdown@{eina\_threads\_shutdown}!Main@{Main}}
\doxysubsubsection{\texorpdfstring{eina\_threads\_shutdown()}{eina\_threads\_shutdown()}}
{\footnotesize\ttfamily \mbox{\hyperlink{group__Eina__Types__Group_ga6ac08753ba12bc9c7a0390cf67868f4f}{EINA\+\_\+\+API}} int eina\+\_\+threads\+\_\+shutdown (\begin{DoxyParamCaption}\item[{void}]{ }\end{DoxyParamCaption})}



Shuts down mutexes in the Eina library. 

\begin{DoxyReturn}{Returns}
{\ttfamily 0} when all mutexes are completely shut down, {\ttfamily 1} or greater otherwise.
\end{DoxyReturn}
This function shuts down the mutexes in the Eina library. It returns 0 when it has been called the same number of times than \mbox{\hyperlink{group__Eina__Main__Group_ga169380f8b2c21bc95b2af6ba5d013395}{eina\+\_\+threads\+\_\+init()}}. In that case it shut down all the mutexes.

Once this function succeeds (that is, {\ttfamily 0} is returned), you must not call any of the Eina functions in a thread anymore. You must call \mbox{\hyperlink{group__Eina__Main__Group_ga169380f8b2c21bc95b2af6ba5d013395}{eina\+\_\+threads\+\_\+init()}} again to use the Eina functions in a thread again.

This function should never be called outside of the main loop. 

Referenced by \mbox{\hyperlink{group__Ecore__Thread__Group_ga941fa6f0313a6fe551f5d80e2a012bba}{ecore\+\_\+thread\+\_\+feedback\+\_\+run()}}, and \mbox{\hyperlink{group__Ecore__Thread__Group_ga6857d9e5bd717ae3d8417b39ec585c3f}{ecore\+\_\+thread\+\_\+run()}}.

\mbox{\Hypertarget{group__Eina__Main__Group_gada1beaf0b3e087deafd8608c1a47d34a}\label{group__Eina__Main__Group_gada1beaf0b3e087deafd8608c1a47d34a}} 
\index{Main@{Main}!eina\_main\_loop\_is@{eina\_main\_loop\_is}}
\index{eina\_main\_loop\_is@{eina\_main\_loop\_is}!Main@{Main}}
\doxysubsubsection{\texorpdfstring{eina\_main\_loop\_is()}{eina\_main\_loop\_is()}}
{\footnotesize\ttfamily \mbox{\hyperlink{group__Eina__Types__Group_ga6ac08753ba12bc9c7a0390cf67868f4f}{EINA\+\_\+\+API}} \mbox{\hyperlink{group__Eina__Types__Group_ga3fe0caf72e93b1bab1ca8ee3ccf3f226}{Eina\+\_\+\+Bool}} eina\+\_\+main\+\_\+loop\+\_\+is (\begin{DoxyParamCaption}\item[{void}]{ }\end{DoxyParamCaption})}



Checks if you are calling this function from the same thread Eina was initialized or not. 

\begin{DoxyReturn}{Returns}
\mbox{\hyperlink{group__Eina__Types__Group_ga05c12dacc8b4058994df842b41be85fc}{EINA\+\_\+\+TRUE}} is the calling function is the same thread, \mbox{\hyperlink{group__Eina__Types__Group_ga1feb115f8e9913e806e090d9bd5a7301}{EINA\+\_\+\+FALSE}} otherwise.
\end{DoxyReturn}
\begin{DoxySince}{Since}
1.\+1.\+0
\end{DoxySince}
Most EFL functions are not thread safe and all the calls need to happen in the main loop. With this call you could know if you can call an EFL function or not. 

References \mbox{\hyperlink{group__Eina__Types__Group_ga1feb115f8e9913e806e090d9bd5a7301}{EINA\+\_\+\+FALSE}}, and \mbox{\hyperlink{group__Eina__Types__Group_ga05c12dacc8b4058994df842b41be85fc}{EINA\+\_\+\+TRUE}}.



Referenced by \mbox{\hyperlink{group__Ecore__Main__Loop__Group_ga12c98ccc13eb136ed62f8177d12a8fc0}{ecore\+\_\+main\+\_\+loop\+\_\+thread\+\_\+safe\+\_\+call\+\_\+async()}}, \mbox{\hyperlink{group__Ecore__Main__Loop__Group_ga92dd9de1e09a667b96c94d02e3d61c06}{ecore\+\_\+main\+\_\+loop\+\_\+thread\+\_\+safe\+\_\+call\+\_\+sync()}}, \mbox{\hyperlink{group__Ecore__Main__Loop__Group_ga0624ccd91c607ed241f45ac1da8875a6}{ecore\+\_\+thread\+\_\+main\+\_\+loop\+\_\+begin()}}, \mbox{\hyperlink{group__Ecore__Main__Loop__Group_gabd2ff96845800d5fcb7cd2607fffa296}{ecore\+\_\+thread\+\_\+main\+\_\+loop\+\_\+end()}}, \mbox{\hyperlink{group__Eina__Error__Group_gaf1afffc7dc1e11101f47c5d14d9c5347}{eina\+\_\+error\+\_\+get()}}, and \mbox{\hyperlink{group__Eina__Error__Group_ga7e6b1448d7730fc821736bda8964d739}{eina\+\_\+error\+\_\+set()}}.

\mbox{\Hypertarget{group__Eina__Main__Group_ga17f66c5ba9b2f0ee8b57837ebfcc33fb}\label{group__Eina__Main__Group_ga17f66c5ba9b2f0ee8b57837ebfcc33fb}} 
\index{Main@{Main}!eina\_main\_loop\_define@{eina\_main\_loop\_define}}
\index{eina\_main\_loop\_define@{eina\_main\_loop\_define}!Main@{Main}}
\doxysubsubsection{\texorpdfstring{eina\_main\_loop\_define()}{eina\_main\_loop\_define()}}
{\footnotesize\ttfamily \mbox{\hyperlink{group__Eina__Types__Group_ga6ac08753ba12bc9c7a0390cf67868f4f}{EINA\+\_\+\+API}} void eina\+\_\+main\+\_\+loop\+\_\+define (\begin{DoxyParamCaption}\item[{void}]{ }\end{DoxyParamCaption})}



You should never use this function except if you really really know what your are doing. 

\begin{DoxySince}{Since}
1.\+1.\+0
\end{DoxySince}
If you are reading this documentation, that certainly means you don\textquotesingle{}t know what is the purpose of this call and you should just not use it.

You should never use this function except if you really really know what your are doing. 

Referenced by \mbox{\hyperlink{group__Ecore__Main__Loop__Group_gaadff0a56ba8818d8a35f9dc95e25a808}{ecore\+\_\+fork\+\_\+reset()}}, \mbox{\hyperlink{group__Ecore__Main__Loop__Group_ga0624ccd91c607ed241f45ac1da8875a6}{ecore\+\_\+thread\+\_\+main\+\_\+loop\+\_\+begin()}}, and \mbox{\hyperlink{group__Elm__General_ga88f19204bf05c03f7dbdf632776e0773}{elm\+\_\+quicklaunch\+\_\+fork()}}.

