
\begin{DoxyCodeInclude}
\textcolor{comment}{//Compile with:}
\textcolor{comment}{//gcc -g eina\_list\_03.c -o eina\_list\_03 `pkg-config --cflags --libs eina`}

\textcolor{preprocessor}{#include <stdio.h>}
\textcolor{preprocessor}{#include <\hyperlink{Eina_8h}{Eina.h}>}

\textcolor{keywordtype}{int}
main(\textcolor{keywordtype}{int} argc, \textcolor{keywordtype}{char} **argv)
\{
   (void)argc;
   (void)argv;
   \hyperlink{struct__Eina__List}{Eina\_List} *list = NULL, *r\_list;
   \hyperlink{struct__Eina__List}{Eina\_List} *l;
   \hyperlink{struct__Eina__Iterator}{Eina\_Iterator} *itr;
   \textcolor{keywordtype}{void} *list\_data;

   \hyperlink{group__Eina__Main__Group_gabf448ada5bc81a07342b66c6f818ee5e}{eina\_init}();

   list = \hyperlink{group__Eina__List__Group_ga92ec14d1a1040a361c4d8cd0ab7b0ecc}{eina\_list\_append}(list, \textcolor{stringliteral}{"caprica"});
   list = \hyperlink{group__Eina__List__Group_ga92ec14d1a1040a361c4d8cd0ab7b0ecc}{eina\_list\_append}(list, \textcolor{stringliteral}{"sagitarius"});
   list = \hyperlink{group__Eina__List__Group_ga92ec14d1a1040a361c4d8cd0ab7b0ecc}{eina\_list\_append}(list, \textcolor{stringliteral}{"aerilon"});
   list = \hyperlink{group__Eina__List__Group_ga92ec14d1a1040a361c4d8cd0ab7b0ecc}{eina\_list\_append}(list, \textcolor{stringliteral}{"gemenon"});

   list = \hyperlink{group__Eina__List__Group_ga1037e7ab9d39bece24d864526332828c}{eina\_list\_promote\_list}(list, \hyperlink{group__Eina__List__Group_gad4a1e3b0fdecd8ed4cb2ff592ceeb553}{eina\_list\_nth\_list}(list, 2))
      ;
   list = \hyperlink{group__Eina__List__Group_ga082644881a2333bd16208c00931703cd}{eina\_list\_demote\_list}(list, \hyperlink{group__Eina__List__Group_gad4a1e3b0fdecd8ed4cb2ff592ceeb553}{eina\_list\_nth\_list}(list, 2));

   list = \hyperlink{group__Eina__List__Group_ga7c0c6e07aa592a1cb2e010049a718035}{eina\_list\_remove}(list, \textcolor{stringliteral}{"sagitarius"});

   l = \hyperlink{group__Eina__List__Group_ga860144725b63d93b8f84cdf1d816bda8}{eina\_list\_data\_find\_list}(list, \textcolor{stringliteral}{"aerilon"});
   \hyperlink{group__Eina__List__Group_ga213776ffa28b780440da26f673917687}{eina\_list\_data\_set}(l, \textcolor{stringliteral}{"aquarius"});

   printf(\textcolor{stringliteral}{"size: %d\(\backslash\)n"}, \hyperlink{group__Eina__List__Group_ga301729054a498a2df09a5f1dd760697e}{eina\_list\_count}(list));

   r\_list = \hyperlink{group__Eina__List__Group_ga67cb29eef0bf0a3cb2cc160ae506a07f}{eina\_list\_reverse\_clone}(list);

   itr = \hyperlink{group__Eina__List__Group_gabcfb6a861aa7c0db0ee36252ac2a254d}{eina\_list\_iterator\_new}(r\_list);
   \hyperlink{group__Eina__Iterator__Group_gad2f796ac4df0e500d25235c29821faa3}{EINA\_ITERATOR\_FOREACH}(itr, list\_data)
     printf("%s\(\backslash\)n", (\textcolor{keywordtype}{char}*)list\_data);
   \hyperlink{group__Eina__Iterator__Group_gaf9261991a4b05dc63e3401278a3281f8}{eina\_iterator\_free}(itr);

   \hyperlink{group__Eina__List__Group_ga608bd2fbf06293a1b794648990703ab4}{eina\_list\_free}(list);
   \hyperlink{group__Eina__List__Group_ga608bd2fbf06293a1b794648990703ab4}{eina\_list\_free}(r\_list);

   \hyperlink{group__Eina__Main__Group_ga6741fcaba116e31e96ce14dcfa03f568}{eina\_shutdown}();

   return 0;
\}
\end{DoxyCodeInclude}
 