
\begin{DoxyCodeInclude}

\textcolor{preprocessor}{#include <Evas.h>}
\textcolor{preprocessor}{#include <stdio.h>}
\textcolor{preprocessor}{#include <errno.h>}

\textcolor{keywordtype}{int}
main(\textcolor{keywordtype}{void})
\{
   \mbox{\hyperlink{struct__Eina__List}{Eina\_List}} *engine\_list, *l;
   \textcolor{keywordtype}{char} *engine\_name;

   \textcolor{comment}{/* Initialize Evas.  This will startup other dependencies such as}
\textcolor{comment}{    * eina, eet, ecore, etc. and initalizes various internal things}
\textcolor{comment}{    * (threads, filters, etc.) */}
   \mbox{\hyperlink{group__Evas__Main__Group_ga65b3f060b6dd9e488afd0b8cbe101869}{evas\_init}}();

   \textcolor{comment}{/* When building Evas you can configure a variety of engines to be}
\textcolor{comment}{    * built with it.  Get a list of what engines are available using the}
\textcolor{comment}{    * evas\_render\_method\_list routine.}
\textcolor{comment}{    */}
   engine\_list = \mbox{\hyperlink{group__Evas__Output__Method_gad7deab8facaa4be521fbdec6dd19e122}{evas\_render\_method\_list}}();
   \textcolor{keywordflow}{if} (!engine\_list)
     \{
        fprintf(stderr, \textcolor{stringliteral}{"ERROR: Evas supports no engines! Exit.\(\backslash\)n"});
        exit(-1);
     \}

   \textcolor{comment}{/* 'engine\_list' is a linked list (@see Eina\_List.)  The}
\textcolor{comment}{    * EINA\_LIST\_FOREACH macro permits navigating through the items using}
\textcolor{comment}{    * the iterator 'l', making the node data available as 'engine\_name'.}
\textcolor{comment}{    */}
   printf(\textcolor{stringliteral}{"Available Evas Engines:\(\backslash\)n"});
   \mbox{\hyperlink{group__Eina__List__Group_gac6efafc19f526d916cdb9757240a8773}{EINA\_LIST\_FOREACH}}(engine\_list, l, engine\_name)
     printf(\textcolor{stringliteral}{"%s\(\backslash\)n"}, engine\_name);

   \textcolor{comment}{/* To free the list, we use evas\_render\_method\_list's corresponding}
\textcolor{comment}{    * destructor routine.}
\textcolor{comment}{    */}
   \mbox{\hyperlink{group__Evas__Output__Method_ga5bcc5a2165647f855c389bd58e77f608}{evas\_render\_method\_list\_free}}(engine\_list);

   \textcolor{comment}{/* Shuts down all dependencies if nothing else is using them, and}
\textcolor{comment}{    * clears allocated data held internally.}
\textcolor{comment}{    */}
   \mbox{\hyperlink{group__Evas__Main__Group_ga95a8864f81d944a92bb012b77ffd1b09}{evas\_shutdown}}();
   \textcolor{keywordflow}{return} 0;
\}
\end{DoxyCodeInclude}
 