\hypertarget{evas-init-shutdown_8c-example}{\section{evas-\/init-\/shutdown.\+c}
}

\begin{DoxyCodeInclude}

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

\textcolor{comment}{/*}
\textcolor{comment}{ * Simple example illustrating usage of evas\_init() and}
\textcolor{comment}{ * evas\_shutdown().  Usually one would instantiate a canvas to have}
\textcolor{comment}{ * something useful out of Evas. For an example of this kind, see the}
\textcolor{comment}{ * evas-buffer-simple.c, which requires the buffer engine module}
\textcolor{comment}{ * compiled in Evas.}
\textcolor{comment}{ *}
\textcolor{comment}{ * Here, we are just listing the engine Evas was compiled with support}
\textcolor{comment}{ * to.}
\textcolor{comment}{ */}

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

   \hyperlink{group__Evas__Main__Group_ga65b3f060b6dd9e488afd0b8cbe101869}{evas\_init}();

   engine\_list = \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);
     \}

   printf(\textcolor{stringliteral}{"Available Evas Engines:\(\backslash\)n"});
   \hyperlink{group__Eina__List__Group_gad02f746a08ee0b12b7ed66d4bc0d71d8}{EINA\_LIST\_FOREACH}(engine\_list, l, engine\_name)
     printf(\textcolor{stringliteral}{"%s\(\backslash\)n"}, engine\_name);

   \hyperlink{group__Evas__Output__Method_ga5bcc5a2165647f855c389bd58e77f608}{evas\_render\_method\_list\_free}(engine\_list);

   \hyperlink{group__Evas__Main__Group_ga95a8864f81d944a92bb012b77ffd1b09}{evas\_shutdown}();
   \textcolor{keywordflow}{return} 0;
 \}

\end{DoxyCodeInclude}
 