\hypertarget{group__Eina__List__Group}{}\doxysection{List}
\label{group__Eina__List__Group}\index{List@{List}}


These functions provide double linked list management.  


\doxysubsection*{Data Structures}
\begin{DoxyCompactItemize}
\item 
struct \mbox{\hyperlink{struct__Eina__List}{\+\_\+\+Eina\+\_\+\+List}}
\begin{DoxyCompactList}\small\item\em Type for a generic double linked list. \end{DoxyCompactList}\item 
struct \mbox{\hyperlink{struct__Eina__List__Accounting}{\+\_\+\+Eina\+\_\+\+List\+\_\+\+Accounting}}
\begin{DoxyCompactList}\small\item\em Cache used to store the last element of a list and the number of elements, for fast access. \end{DoxyCompactList}\end{DoxyCompactItemize}
\doxysubsection*{Macros}
\begin{DoxyCompactItemize}
\item 
\#define \mbox{\hyperlink{group__Eina__List__Group_gac6efafc19f526d916cdb9757240a8773}{EINA\+\_\+\+LIST\+\_\+\+FOREACH}}(list,  l,  \+\_\+data)
\begin{DoxyCompactList}\small\item\em Definition for the macro to iterate over a list. \end{DoxyCompactList}\item 
\#define \mbox{\hyperlink{group__Eina__List__Group_ga25dbba4dcc1d86c63ef3ba3791a9c51a}{EINA\+\_\+\+LIST\+\_\+\+REVERSE\+\_\+\+FOREACH}}(list,  l,  \+\_\+data)
\begin{DoxyCompactList}\small\item\em Definition for the macro to iterate over a list in the reverse order. \end{DoxyCompactList}\item 
\#define \mbox{\hyperlink{group__Eina__List__Group_ga5b4d2aac696cd2558aaed03e3929d873}{EINA\+\_\+\+LIST\+\_\+\+FOREACH\+\_\+\+SAFE}}(list,  l,  l\+\_\+next,  data)
\begin{DoxyCompactList}\small\item\em Definition for the macro to iterate over a list with support for node deletion. \end{DoxyCompactList}\item 
\#define \mbox{\hyperlink{group__Eina__List__Group_gad1bdb753e4c9eca59a6da87094d516b0}{EINA\+\_\+\+LIST\+\_\+\+REVERSE\+\_\+\+FOREACH\+\_\+\+SAFE}}(list,  l,  l\+\_\+prev,  data)
\begin{DoxyCompactList}\small\item\em Definition for the macro to iterate over a list in the reverse order with support for deletion. \end{DoxyCompactList}\item 
\#define \mbox{\hyperlink{group__Eina__List__Group_gae27a2c686a0a11693f9b06957c9bba83}{EINA\+\_\+\+LIST\+\_\+\+FREE}}(list,  data)
\begin{DoxyCompactList}\small\item\em Definition for the macro to remove each list node while having access to each node\textquotesingle{}s data. \end{DoxyCompactList}\end{DoxyCompactItemize}
\doxysubsection*{Typedefs}
\begin{DoxyCompactItemize}
\item 
\mbox{\Hypertarget{group__Eina__List__Group_ga3295e1210efea1fb0fd6acbf3cbc1f29}\label{group__Eina__List__Group_ga3295e1210efea1fb0fd6acbf3cbc1f29}} 
typedef struct \mbox{\hyperlink{struct__Eina__List}{\+\_\+\+Eina\+\_\+\+List}} {\bfseries Eina\+\_\+\+List}
\begin{DoxyCompactList}\small\item\em Type for a generic double linked list. \end{DoxyCompactList}\item 
\mbox{\Hypertarget{group__Eina__List__Group_gae6fd9c3d1d8d2c9dd01ef647494f5862}\label{group__Eina__List__Group_gae6fd9c3d1d8d2c9dd01ef647494f5862}} 
typedef struct \mbox{\hyperlink{struct__Eina__List__Accounting}{\+\_\+\+Eina\+\_\+\+List\+\_\+\+Accounting}} {\bfseries Eina\+\_\+\+List\+\_\+\+Accounting}
\begin{DoxyCompactList}\small\item\em Cache used to store the last element of a list and the number of elements, for fast access. \end{DoxyCompactList}\end{DoxyCompactItemize}
\doxysubsection*{Functions}
\begin{DoxyCompactItemize}
\item 
\mbox{\hyperlink{group__Eina__Types__Group_ga6ac08753ba12bc9c7a0390cf67868f4f}{EINA\+\_\+\+API}} \mbox{\hyperlink{group__Eina__List__Group_ga3295e1210efea1fb0fd6acbf3cbc1f29}{Eina\+\_\+\+List}} $\ast$ \mbox{\hyperlink{group__Eina__List__Group_ga625698a383dda8fc0db245a1c7608c49}{eina\+\_\+list\+\_\+append}} (\mbox{\hyperlink{group__Eina__List__Group_ga3295e1210efea1fb0fd6acbf3cbc1f29}{Eina\+\_\+\+List}} $\ast$list, const void $\ast$data)
\begin{DoxyCompactList}\small\item\em Appends the given data to the given linked list. \end{DoxyCompactList}\item 
\mbox{\hyperlink{group__Eina__Types__Group_ga6ac08753ba12bc9c7a0390cf67868f4f}{EINA\+\_\+\+API}} \mbox{\hyperlink{group__Eina__List__Group_ga3295e1210efea1fb0fd6acbf3cbc1f29}{Eina\+\_\+\+List}} $\ast$ \mbox{\hyperlink{group__Eina__List__Group_ga4a2716e8fba1c3f60e3b112caef26fb9}{eina\+\_\+list\+\_\+prepend}} (\mbox{\hyperlink{group__Eina__List__Group_ga3295e1210efea1fb0fd6acbf3cbc1f29}{Eina\+\_\+\+List}} $\ast$list, const void $\ast$data)
\begin{DoxyCompactList}\small\item\em Prepends the given data to the given linked list. \end{DoxyCompactList}\item 
\mbox{\hyperlink{group__Eina__Types__Group_ga6ac08753ba12bc9c7a0390cf67868f4f}{EINA\+\_\+\+API}} \mbox{\hyperlink{group__Eina__List__Group_ga3295e1210efea1fb0fd6acbf3cbc1f29}{Eina\+\_\+\+List}} $\ast$ \mbox{\hyperlink{group__Eina__List__Group_ga2cc230dec347eaf4dee2e77637063ba5}{eina\+\_\+list\+\_\+append\+\_\+relative}} (\mbox{\hyperlink{group__Eina__List__Group_ga3295e1210efea1fb0fd6acbf3cbc1f29}{Eina\+\_\+\+List}} $\ast$list, const void $\ast$data, const void $\ast$relative)
\begin{DoxyCompactList}\small\item\em Inserts the given data into the given linked list after the specified data. \end{DoxyCompactList}\item 
\mbox{\hyperlink{group__Eina__Types__Group_ga6ac08753ba12bc9c7a0390cf67868f4f}{EINA\+\_\+\+API}} \mbox{\hyperlink{group__Eina__List__Group_ga3295e1210efea1fb0fd6acbf3cbc1f29}{Eina\+\_\+\+List}} $\ast$ \mbox{\hyperlink{group__Eina__List__Group_gaaf5cc0fb74a42e16757e5523bacdee53}{eina\+\_\+list\+\_\+append\+\_\+relative\+\_\+list}} (\mbox{\hyperlink{group__Eina__List__Group_ga3295e1210efea1fb0fd6acbf3cbc1f29}{Eina\+\_\+\+List}} $\ast$list, const void $\ast$data, \mbox{\hyperlink{group__Eina__List__Group_ga3295e1210efea1fb0fd6acbf3cbc1f29}{Eina\+\_\+\+List}} $\ast$relative)
\begin{DoxyCompactList}\small\item\em Appends a list node to a linked list after the specified member. \end{DoxyCompactList}\item 
\mbox{\hyperlink{group__Eina__Types__Group_ga6ac08753ba12bc9c7a0390cf67868f4f}{EINA\+\_\+\+API}} \mbox{\hyperlink{group__Eina__List__Group_ga3295e1210efea1fb0fd6acbf3cbc1f29}{Eina\+\_\+\+List}} $\ast$ \mbox{\hyperlink{group__Eina__List__Group_ga6714b4c62fe6022f6bfe526bb5449b54}{eina\+\_\+list\+\_\+prepend\+\_\+relative}} (\mbox{\hyperlink{group__Eina__List__Group_ga3295e1210efea1fb0fd6acbf3cbc1f29}{Eina\+\_\+\+List}} $\ast$list, const void $\ast$data, const void $\ast$relative)
\begin{DoxyCompactList}\small\item\em Prepends a data pointer to a linked list before the specified member. \end{DoxyCompactList}\item 
\mbox{\hyperlink{group__Eina__Types__Group_ga6ac08753ba12bc9c7a0390cf67868f4f}{EINA\+\_\+\+API}} \mbox{\hyperlink{group__Eina__List__Group_ga3295e1210efea1fb0fd6acbf3cbc1f29}{Eina\+\_\+\+List}} $\ast$ \mbox{\hyperlink{group__Eina__List__Group_gac2ae5d9426f552b9f70eb573582b491c}{eina\+\_\+list\+\_\+prepend\+\_\+relative\+\_\+list}} (\mbox{\hyperlink{group__Eina__List__Group_ga3295e1210efea1fb0fd6acbf3cbc1f29}{Eina\+\_\+\+List}} $\ast$list, const void $\ast$data, \mbox{\hyperlink{group__Eina__List__Group_ga3295e1210efea1fb0fd6acbf3cbc1f29}{Eina\+\_\+\+List}} $\ast$relative)
\begin{DoxyCompactList}\small\item\em Prepends a list node to a linked list before the specified member. \end{DoxyCompactList}\item 
\mbox{\hyperlink{group__Eina__Types__Group_ga6ac08753ba12bc9c7a0390cf67868f4f}{EINA\+\_\+\+API}} \mbox{\hyperlink{group__Eina__List__Group_ga3295e1210efea1fb0fd6acbf3cbc1f29}{Eina\+\_\+\+List}} $\ast$ \mbox{\hyperlink{group__Eina__List__Group_gaa47bc3ae29d8fd946105560b94fc242c}{eina\+\_\+list\+\_\+sorted\+\_\+insert}} (\mbox{\hyperlink{group__Eina__List__Group_ga3295e1210efea1fb0fd6acbf3cbc1f29}{Eina\+\_\+\+List}} $\ast$list, \mbox{\hyperlink{group__Eina__Types__Group_ga1b31ffcc0d46eed63a2381c5a011b486}{Eina\+\_\+\+Compare\+\_\+\+Cb}} func, const void $\ast$data)
\begin{DoxyCompactList}\small\item\em Inserts a new node into a sorted list. \end{DoxyCompactList}\item 
\mbox{\hyperlink{group__Eina__Types__Group_ga6ac08753ba12bc9c7a0390cf67868f4f}{EINA\+\_\+\+API}} \mbox{\hyperlink{group__Eina__List__Group_ga3295e1210efea1fb0fd6acbf3cbc1f29}{Eina\+\_\+\+List}} $\ast$ \mbox{\hyperlink{group__Eina__List__Group_ga6e81c26272c54177d087b29c965af4d8}{eina\+\_\+list\+\_\+remove}} (\mbox{\hyperlink{group__Eina__List__Group_ga3295e1210efea1fb0fd6acbf3cbc1f29}{Eina\+\_\+\+List}} $\ast$list, const void $\ast$data)
\begin{DoxyCompactList}\small\item\em Removes the first instance of the specified data from the given list. \end{DoxyCompactList}\item 
\mbox{\hyperlink{group__Eina__Types__Group_ga6ac08753ba12bc9c7a0390cf67868f4f}{EINA\+\_\+\+API}} \mbox{\hyperlink{group__Eina__List__Group_ga3295e1210efea1fb0fd6acbf3cbc1f29}{Eina\+\_\+\+List}} $\ast$ \mbox{\hyperlink{group__Eina__List__Group_gaf86ee0fd9fe0643ece301fc86f04e720}{eina\+\_\+list\+\_\+remove\+\_\+list}} (\mbox{\hyperlink{group__Eina__List__Group_ga3295e1210efea1fb0fd6acbf3cbc1f29}{Eina\+\_\+\+List}} $\ast$list, \mbox{\hyperlink{group__Eina__List__Group_ga3295e1210efea1fb0fd6acbf3cbc1f29}{Eina\+\_\+\+List}} $\ast$remove\+\_\+list)
\begin{DoxyCompactList}\small\item\em Removes the specified list node. \end{DoxyCompactList}\item 
\mbox{\hyperlink{group__Eina__Types__Group_ga6ac08753ba12bc9c7a0390cf67868f4f}{EINA\+\_\+\+API}} \mbox{\hyperlink{group__Eina__List__Group_ga3295e1210efea1fb0fd6acbf3cbc1f29}{Eina\+\_\+\+List}} $\ast$ \mbox{\hyperlink{group__Eina__List__Group_gae751b1afefbc47c1d05750be451fcdd2}{eina\+\_\+list\+\_\+promote\+\_\+list}} (\mbox{\hyperlink{group__Eina__List__Group_ga3295e1210efea1fb0fd6acbf3cbc1f29}{Eina\+\_\+\+List}} $\ast$list, \mbox{\hyperlink{group__Eina__List__Group_ga3295e1210efea1fb0fd6acbf3cbc1f29}{Eina\+\_\+\+List}} $\ast$move\+\_\+list)
\begin{DoxyCompactList}\small\item\em Moves the specified data to the head of the list. \end{DoxyCompactList}\item 
\mbox{\hyperlink{group__Eina__Types__Group_ga6ac08753ba12bc9c7a0390cf67868f4f}{EINA\+\_\+\+API}} \mbox{\hyperlink{group__Eina__List__Group_ga3295e1210efea1fb0fd6acbf3cbc1f29}{Eina\+\_\+\+List}} $\ast$ \mbox{\hyperlink{group__Eina__List__Group_ga33dc7f75dae277326c99ad5939861613}{eina\+\_\+list\+\_\+demote\+\_\+list}} (\mbox{\hyperlink{group__Eina__List__Group_ga3295e1210efea1fb0fd6acbf3cbc1f29}{Eina\+\_\+\+List}} $\ast$list, \mbox{\hyperlink{group__Eina__List__Group_ga3295e1210efea1fb0fd6acbf3cbc1f29}{Eina\+\_\+\+List}} $\ast$move\+\_\+list)
\begin{DoxyCompactList}\small\item\em Moves the specified data to the tail of the list. \end{DoxyCompactList}\item 
\mbox{\hyperlink{group__Eina__Types__Group_ga6ac08753ba12bc9c7a0390cf67868f4f}{EINA\+\_\+\+API}} void $\ast$ \mbox{\hyperlink{group__Eina__List__Group_ga4ba54f63ed74cb7d81a1046926a93f4c}{eina\+\_\+list\+\_\+data\+\_\+find}} (const \mbox{\hyperlink{group__Eina__List__Group_ga3295e1210efea1fb0fd6acbf3cbc1f29}{Eina\+\_\+\+List}} $\ast$list, const void $\ast$data)
\begin{DoxyCompactList}\small\item\em Finds a member of a list and returns it. \end{DoxyCompactList}\item 
\mbox{\hyperlink{group__Eina__Types__Group_ga6ac08753ba12bc9c7a0390cf67868f4f}{EINA\+\_\+\+API}} \mbox{\hyperlink{group__Eina__List__Group_ga3295e1210efea1fb0fd6acbf3cbc1f29}{Eina\+\_\+\+List}} $\ast$ \mbox{\hyperlink{group__Eina__List__Group_gafa48dac0f51f3d8d91b2a2f223bf4079}{eina\+\_\+list\+\_\+data\+\_\+find\+\_\+list}} (const \mbox{\hyperlink{group__Eina__List__Group_ga3295e1210efea1fb0fd6acbf3cbc1f29}{Eina\+\_\+\+List}} $\ast$list, const void $\ast$data)
\begin{DoxyCompactList}\small\item\em Finds a member of a list and returns it as a list node. \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__List__Group_ga52354c2503d1cf8e6e975bc245e3450c}{eina\+\_\+list\+\_\+move}} (\mbox{\hyperlink{group__Eina__List__Group_ga3295e1210efea1fb0fd6acbf3cbc1f29}{Eina\+\_\+\+List}} $\ast$$\ast$to, \mbox{\hyperlink{group__Eina__List__Group_ga3295e1210efea1fb0fd6acbf3cbc1f29}{Eina\+\_\+\+List}} $\ast$$\ast$from, void $\ast$data)
\begin{DoxyCompactList}\small\item\em Moves a data pointer from one list to another. \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__List__Group_ga18a4ae97ee93cef1f7ea583b57d50d21}{eina\+\_\+list\+\_\+move\+\_\+list}} (\mbox{\hyperlink{group__Eina__List__Group_ga3295e1210efea1fb0fd6acbf3cbc1f29}{Eina\+\_\+\+List}} $\ast$$\ast$to, \mbox{\hyperlink{group__Eina__List__Group_ga3295e1210efea1fb0fd6acbf3cbc1f29}{Eina\+\_\+\+List}} $\ast$$\ast$from, \mbox{\hyperlink{group__Eina__List__Group_ga3295e1210efea1fb0fd6acbf3cbc1f29}{Eina\+\_\+\+List}} $\ast$data)
\begin{DoxyCompactList}\small\item\em Moves a list node from one list to another. \end{DoxyCompactList}\item 
\mbox{\hyperlink{group__Eina__Types__Group_ga6ac08753ba12bc9c7a0390cf67868f4f}{EINA\+\_\+\+API}} \mbox{\hyperlink{group__Eina__List__Group_ga3295e1210efea1fb0fd6acbf3cbc1f29}{Eina\+\_\+\+List}} $\ast$ \mbox{\hyperlink{group__Eina__List__Group_ga82a1bfa543e21853f9ea3ff88dd1250b}{eina\+\_\+list\+\_\+free}} (\mbox{\hyperlink{group__Eina__List__Group_ga3295e1210efea1fb0fd6acbf3cbc1f29}{Eina\+\_\+\+List}} $\ast$list)
\begin{DoxyCompactList}\small\item\em Frees an entire list and all the nodes, ignoring the data contained. \end{DoxyCompactList}\item 
\mbox{\hyperlink{group__Eina__Types__Group_ga6ac08753ba12bc9c7a0390cf67868f4f}{EINA\+\_\+\+API}} void $\ast$ \mbox{\hyperlink{group__Eina__List__Group_ga5638b455370e1b4a2fb230b59ce9c631}{eina\+\_\+list\+\_\+nth}} (const \mbox{\hyperlink{group__Eina__List__Group_ga3295e1210efea1fb0fd6acbf3cbc1f29}{Eina\+\_\+\+List}} $\ast$list, unsigned int n)
\begin{DoxyCompactList}\small\item\em Gets the nth member\textquotesingle{}s data pointer in a list, or {\ttfamily NULL} on error. \end{DoxyCompactList}\item 
\mbox{\hyperlink{group__Eina__Types__Group_ga6ac08753ba12bc9c7a0390cf67868f4f}{EINA\+\_\+\+API}} \mbox{\hyperlink{group__Eina__List__Group_ga3295e1210efea1fb0fd6acbf3cbc1f29}{Eina\+\_\+\+List}} $\ast$ \mbox{\hyperlink{group__Eina__List__Group_ga4f42c9edc62c6c1e15582ee9c50b7b57}{eina\+\_\+list\+\_\+nth\+\_\+list}} (const \mbox{\hyperlink{group__Eina__List__Group_ga3295e1210efea1fb0fd6acbf3cbc1f29}{Eina\+\_\+\+List}} $\ast$list, unsigned int n)
\begin{DoxyCompactList}\small\item\em Gets the nth member\textquotesingle{}s list node in a list. \end{DoxyCompactList}\item 
\mbox{\hyperlink{group__Eina__Types__Group_ga6ac08753ba12bc9c7a0390cf67868f4f}{EINA\+\_\+\+API}} \mbox{\hyperlink{group__Eina__List__Group_ga3295e1210efea1fb0fd6acbf3cbc1f29}{Eina\+\_\+\+List}} $\ast$ \mbox{\hyperlink{group__Eina__List__Group_gaa71d2c0b80ded386071f4d98496a0556}{eina\+\_\+list\+\_\+reverse}} (\mbox{\hyperlink{group__Eina__List__Group_ga3295e1210efea1fb0fd6acbf3cbc1f29}{Eina\+\_\+\+List}} $\ast$list)
\begin{DoxyCompactList}\small\item\em Reverses all the elements in the list. \end{DoxyCompactList}\item 
\mbox{\hyperlink{group__Eina__Types__Group_ga6ac08753ba12bc9c7a0390cf67868f4f}{EINA\+\_\+\+API}} \mbox{\hyperlink{group__Eina__List__Group_ga3295e1210efea1fb0fd6acbf3cbc1f29}{Eina\+\_\+\+List}} $\ast$ \mbox{\hyperlink{group__Eina__List__Group_gaba7131bd0092c4fce38930e6bf07da3c}{eina\+\_\+list\+\_\+reverse\+\_\+clone}} (const \mbox{\hyperlink{group__Eina__List__Group_ga3295e1210efea1fb0fd6acbf3cbc1f29}{Eina\+\_\+\+List}} $\ast$list)
\begin{DoxyCompactList}\small\item\em Clones (copies) all the elements in the list in reverse order. \end{DoxyCompactList}\item 
\mbox{\hyperlink{group__Eina__Types__Group_ga6ac08753ba12bc9c7a0390cf67868f4f}{EINA\+\_\+\+API}} \mbox{\hyperlink{group__Eina__List__Group_ga3295e1210efea1fb0fd6acbf3cbc1f29}{Eina\+\_\+\+List}} $\ast$ \mbox{\hyperlink{group__Eina__List__Group_gabffc00a6b64c1574d803e3663ca06e62}{eina\+\_\+list\+\_\+clone}} (const \mbox{\hyperlink{group__Eina__List__Group_ga3295e1210efea1fb0fd6acbf3cbc1f29}{Eina\+\_\+\+List}} $\ast$list)
\begin{DoxyCompactList}\small\item\em Clones (copies) all the elements in the list in exactly same order. \end{DoxyCompactList}\item 
\mbox{\hyperlink{group__Eina__Types__Group_ga6ac08753ba12bc9c7a0390cf67868f4f}{EINA\+\_\+\+API}} \mbox{\hyperlink{group__Eina__List__Group_ga3295e1210efea1fb0fd6acbf3cbc1f29}{Eina\+\_\+\+List}} $\ast$ \mbox{\hyperlink{group__Eina__List__Group_ga568115ea8231ca6baed243032570e15c}{eina\+\_\+list\+\_\+sort}} (\mbox{\hyperlink{group__Eina__List__Group_ga3295e1210efea1fb0fd6acbf3cbc1f29}{Eina\+\_\+\+List}} $\ast$list, unsigned int limit, \mbox{\hyperlink{group__Eina__Types__Group_ga1b31ffcc0d46eed63a2381c5a011b486}{Eina\+\_\+\+Compare\+\_\+\+Cb}} func)
\begin{DoxyCompactList}\small\item\em Sorts a list according to the ordering func will return. \end{DoxyCompactList}\item 
\mbox{\hyperlink{group__Eina__Types__Group_ga6ac08753ba12bc9c7a0390cf67868f4f}{EINA\+\_\+\+API}} \mbox{\hyperlink{group__Eina__List__Group_ga3295e1210efea1fb0fd6acbf3cbc1f29}{Eina\+\_\+\+List}} $\ast$ \mbox{\hyperlink{group__Eina__List__Group_ga5c519a153c64bf74fa5c348b80d07b55}{eina\+\_\+list\+\_\+shuffle}} (\mbox{\hyperlink{group__Eina__List__Group_ga3295e1210efea1fb0fd6acbf3cbc1f29}{Eina\+\_\+\+List}} $\ast$list, \mbox{\hyperlink{group__Eina__Types__Group_ga7331c88690f77b217b19cc5678cbdc24}{Eina\+\_\+\+Random\+\_\+\+Cb}} func)
\begin{DoxyCompactList}\small\item\em Shuffles list. \end{DoxyCompactList}\item 
\mbox{\hyperlink{group__Eina__Types__Group_ga6ac08753ba12bc9c7a0390cf67868f4f}{EINA\+\_\+\+API}} \mbox{\hyperlink{group__Eina__List__Group_ga3295e1210efea1fb0fd6acbf3cbc1f29}{Eina\+\_\+\+List}} $\ast$ \mbox{\hyperlink{group__Eina__List__Group_gab4f661f25a58eec025a372c8c6861fc9}{eina\+\_\+list\+\_\+merge}} (\mbox{\hyperlink{group__Eina__List__Group_ga3295e1210efea1fb0fd6acbf3cbc1f29}{Eina\+\_\+\+List}} $\ast$left, \mbox{\hyperlink{group__Eina__List__Group_ga3295e1210efea1fb0fd6acbf3cbc1f29}{Eina\+\_\+\+List}} $\ast$right)
\begin{DoxyCompactList}\small\item\em Merges two list. \end{DoxyCompactList}\item 
\mbox{\hyperlink{group__Eina__Types__Group_ga6ac08753ba12bc9c7a0390cf67868f4f}{EINA\+\_\+\+API}} \mbox{\hyperlink{group__Eina__List__Group_ga3295e1210efea1fb0fd6acbf3cbc1f29}{Eina\+\_\+\+List}} $\ast$ \mbox{\hyperlink{group__Eina__List__Group_ga13adb1de3565ccce834407b43d173bd8}{eina\+\_\+list\+\_\+sorted\+\_\+merge}} (\mbox{\hyperlink{group__Eina__List__Group_ga3295e1210efea1fb0fd6acbf3cbc1f29}{Eina\+\_\+\+List}} $\ast$left, \mbox{\hyperlink{group__Eina__List__Group_ga3295e1210efea1fb0fd6acbf3cbc1f29}{Eina\+\_\+\+List}} $\ast$right, \mbox{\hyperlink{group__Eina__Types__Group_ga1b31ffcc0d46eed63a2381c5a011b486}{Eina\+\_\+\+Compare\+\_\+\+Cb}} func)
\begin{DoxyCompactList}\small\item\em Merges two sorted list according to the ordering func will return. \end{DoxyCompactList}\item 
\mbox{\hyperlink{group__Eina__Types__Group_ga6ac08753ba12bc9c7a0390cf67868f4f}{EINA\+\_\+\+API}} \mbox{\hyperlink{group__Eina__List__Group_ga3295e1210efea1fb0fd6acbf3cbc1f29}{Eina\+\_\+\+List}} $\ast$ \mbox{\hyperlink{group__Eina__List__Group_gaf480f45d017b959f805927666ef6b2ff}{eina\+\_\+list\+\_\+split\+\_\+list}} (\mbox{\hyperlink{group__Eina__List__Group_ga3295e1210efea1fb0fd6acbf3cbc1f29}{Eina\+\_\+\+List}} $\ast$list, \mbox{\hyperlink{group__Eina__List__Group_ga3295e1210efea1fb0fd6acbf3cbc1f29}{Eina\+\_\+\+List}} $\ast$relative, \mbox{\hyperlink{group__Eina__List__Group_ga3295e1210efea1fb0fd6acbf3cbc1f29}{Eina\+\_\+\+List}} $\ast$$\ast$right)
\begin{DoxyCompactList}\small\item\em Splits a list into 2 lists. \end{DoxyCompactList}\item 
\mbox{\hyperlink{group__Eina__Types__Group_ga6ac08753ba12bc9c7a0390cf67868f4f}{EINA\+\_\+\+API}} \mbox{\hyperlink{group__Eina__List__Group_ga3295e1210efea1fb0fd6acbf3cbc1f29}{Eina\+\_\+\+List}} $\ast$ \mbox{\hyperlink{group__Eina__List__Group_ga4e667216422b60be1d6636f821eddea2}{eina\+\_\+list\+\_\+search\+\_\+sorted\+\_\+near\+\_\+list}} (const \mbox{\hyperlink{group__Eina__List__Group_ga3295e1210efea1fb0fd6acbf3cbc1f29}{Eina\+\_\+\+List}} $\ast$list, \mbox{\hyperlink{group__Eina__Types__Group_ga1b31ffcc0d46eed63a2381c5a011b486}{Eina\+\_\+\+Compare\+\_\+\+Cb}} func, const void $\ast$data, int $\ast$result\+\_\+cmp)
\begin{DoxyCompactList}\small\item\em Returns node nearest to data from the sorted list. \end{DoxyCompactList}\item 
\mbox{\hyperlink{group__Eina__Types__Group_ga6ac08753ba12bc9c7a0390cf67868f4f}{EINA\+\_\+\+API}} \mbox{\hyperlink{group__Eina__List__Group_ga3295e1210efea1fb0fd6acbf3cbc1f29}{Eina\+\_\+\+List}} $\ast$ \mbox{\hyperlink{group__Eina__List__Group_ga930d212790522a34f021dd67f03b141c}{eina\+\_\+list\+\_\+search\+\_\+sorted\+\_\+list}} (const \mbox{\hyperlink{group__Eina__List__Group_ga3295e1210efea1fb0fd6acbf3cbc1f29}{Eina\+\_\+\+List}} $\ast$list, \mbox{\hyperlink{group__Eina__Types__Group_ga1b31ffcc0d46eed63a2381c5a011b486}{Eina\+\_\+\+Compare\+\_\+\+Cb}} func, const void $\ast$data)
\begin{DoxyCompactList}\small\item\em Returns node if data is in the sorted list. \end{DoxyCompactList}\item 
\mbox{\hyperlink{group__Eina__Types__Group_ga6ac08753ba12bc9c7a0390cf67868f4f}{EINA\+\_\+\+API}} void $\ast$ \mbox{\hyperlink{group__Eina__List__Group_ga18d9422a3f251d7d7205fb5e9708272d}{eina\+\_\+list\+\_\+search\+\_\+sorted}} (const \mbox{\hyperlink{group__Eina__List__Group_ga3295e1210efea1fb0fd6acbf3cbc1f29}{Eina\+\_\+\+List}} $\ast$list, \mbox{\hyperlink{group__Eina__Types__Group_ga1b31ffcc0d46eed63a2381c5a011b486}{Eina\+\_\+\+Compare\+\_\+\+Cb}} func, const void $\ast$data)
\begin{DoxyCompactList}\small\item\em Returns node data if it is in the sorted list. \end{DoxyCompactList}\item 
\mbox{\hyperlink{group__Eina__Types__Group_ga6ac08753ba12bc9c7a0390cf67868f4f}{EINA\+\_\+\+API}} \mbox{\hyperlink{group__Eina__List__Group_ga3295e1210efea1fb0fd6acbf3cbc1f29}{Eina\+\_\+\+List}} $\ast$ \mbox{\hyperlink{group__Eina__List__Group_ga69fb43a00f39f78484893854a64cf4f9}{eina\+\_\+list\+\_\+search\+\_\+unsorted\+\_\+list}} (const \mbox{\hyperlink{group__Eina__List__Group_ga3295e1210efea1fb0fd6acbf3cbc1f29}{Eina\+\_\+\+List}} $\ast$list, \mbox{\hyperlink{group__Eina__Types__Group_ga1b31ffcc0d46eed63a2381c5a011b486}{Eina\+\_\+\+Compare\+\_\+\+Cb}} func, const void $\ast$data)
\begin{DoxyCompactList}\small\item\em Returns node if data is in the unsorted list. \end{DoxyCompactList}\item 
\mbox{\hyperlink{group__Eina__Types__Group_ga6ac08753ba12bc9c7a0390cf67868f4f}{EINA\+\_\+\+API}} void $\ast$ \mbox{\hyperlink{group__Eina__List__Group_ga5e876264e6b2de0485c4a701f447db80}{eina\+\_\+list\+\_\+search\+\_\+unsorted}} (const \mbox{\hyperlink{group__Eina__List__Group_ga3295e1210efea1fb0fd6acbf3cbc1f29}{Eina\+\_\+\+List}} $\ast$list, \mbox{\hyperlink{group__Eina__Types__Group_ga1b31ffcc0d46eed63a2381c5a011b486}{Eina\+\_\+\+Compare\+\_\+\+Cb}} func, const void $\ast$data)
\begin{DoxyCompactList}\small\item\em Returns node data if it is in the unsorted list. \end{DoxyCompactList}\item 
static \mbox{\hyperlink{group__Eina__List__Group_ga3295e1210efea1fb0fd6acbf3cbc1f29}{Eina\+\_\+\+List}} $\ast$ \mbox{\hyperlink{group__Eina__List__Group_gaf6d81c1424bb3b787d5c4f86ca052d7b}{eina\+\_\+list\+\_\+last}} (const \mbox{\hyperlink{group__Eina__List__Group_ga3295e1210efea1fb0fd6acbf3cbc1f29}{Eina\+\_\+\+List}} $\ast$list)
\begin{DoxyCompactList}\small\item\em Gets the last list node in the list. \end{DoxyCompactList}\item 
static \mbox{\hyperlink{group__Eina__List__Group_ga3295e1210efea1fb0fd6acbf3cbc1f29}{Eina\+\_\+\+List}} $\ast$ \mbox{\hyperlink{group__Eina__List__Group_gacc28215bbda06902ad98020345b6ccc6}{eina\+\_\+list\+\_\+next}} (const \mbox{\hyperlink{group__Eina__List__Group_ga3295e1210efea1fb0fd6acbf3cbc1f29}{Eina\+\_\+\+List}} $\ast$list)
\begin{DoxyCompactList}\small\item\em Gets the next list node after the specified list node. \end{DoxyCompactList}\item 
static \mbox{\hyperlink{group__Eina__List__Group_ga3295e1210efea1fb0fd6acbf3cbc1f29}{Eina\+\_\+\+List}} $\ast$ \mbox{\hyperlink{group__Eina__List__Group_ga3d169e81c800699fcf197191db0843c6}{eina\+\_\+list\+\_\+prev}} (const \mbox{\hyperlink{group__Eina__List__Group_ga3295e1210efea1fb0fd6acbf3cbc1f29}{Eina\+\_\+\+List}} $\ast$list)
\begin{DoxyCompactList}\small\item\em Gets the list node prior to the specified list node. \end{DoxyCompactList}\item 
static void $\ast$ \mbox{\hyperlink{group__Eina__List__Group_gaa6277c6d3fc6fd4cd15112b06d9fb1b0}{eina\+\_\+list\+\_\+data\+\_\+get}} (const \mbox{\hyperlink{group__Eina__List__Group_ga3295e1210efea1fb0fd6acbf3cbc1f29}{Eina\+\_\+\+List}} $\ast$list)
\begin{DoxyCompactList}\small\item\em Gets the list node data member. \end{DoxyCompactList}\item 
static void $\ast$ \mbox{\hyperlink{group__Eina__List__Group_ga0f408d077ac6eaa4c1546051b52f9e82}{eina\+\_\+list\+\_\+data\+\_\+set}} (\mbox{\hyperlink{group__Eina__List__Group_ga3295e1210efea1fb0fd6acbf3cbc1f29}{Eina\+\_\+\+List}} $\ast$list, const void $\ast$data)
\begin{DoxyCompactList}\small\item\em Sets the list node data member. \end{DoxyCompactList}\item 
static unsigned int \mbox{\hyperlink{group__Eina__List__Group_ga301729054a498a2df09a5f1dd760697e}{eina\+\_\+list\+\_\+count}} (const \mbox{\hyperlink{group__Eina__List__Group_ga3295e1210efea1fb0fd6acbf3cbc1f29}{Eina\+\_\+\+List}} $\ast$list)
\begin{DoxyCompactList}\small\item\em Gets the count of the number of items in a list. \end{DoxyCompactList}\item 
static void $\ast$ \mbox{\hyperlink{group__Eina__List__Group_ga0e5087cfea80bb395335f8dd5d3cc33e}{eina\+\_\+list\+\_\+last\+\_\+data\+\_\+get}} (const \mbox{\hyperlink{group__Eina__List__Group_ga3295e1210efea1fb0fd6acbf3cbc1f29}{Eina\+\_\+\+List}} $\ast$list)
\begin{DoxyCompactList}\small\item\em Returns the last list node\textquotesingle{}s data. \end{DoxyCompactList}\item 
\mbox{\hyperlink{group__Eina__Types__Group_ga6ac08753ba12bc9c7a0390cf67868f4f}{EINA\+\_\+\+API}} \mbox{\hyperlink{group__Eina__Iterator__Group_ga15b975bb881d955249ce13d4ebc96948}{Eina\+\_\+\+Iterator}} $\ast$ \mbox{\hyperlink{group__Eina__List__Group_gaaad791a6b6ca783926082e976ce486b9}{eina\+\_\+list\+\_\+iterator\+\_\+new}} (const \mbox{\hyperlink{group__Eina__List__Group_ga3295e1210efea1fb0fd6acbf3cbc1f29}{Eina\+\_\+\+List}} $\ast$list)
\begin{DoxyCompactList}\small\item\em Returns a new iterator associated with a list. \end{DoxyCompactList}\item 
\mbox{\hyperlink{group__Eina__Types__Group_ga6ac08753ba12bc9c7a0390cf67868f4f}{EINA\+\_\+\+API}} \mbox{\hyperlink{group__Eina__Iterator__Group_ga15b975bb881d955249ce13d4ebc96948}{Eina\+\_\+\+Iterator}} $\ast$ \mbox{\hyperlink{group__Eina__List__Group_gafc720f4a3e65e3945ecaba6f7cb34357}{eina\+\_\+list\+\_\+iterator\+\_\+reversed\+\_\+new}} (const \mbox{\hyperlink{group__Eina__List__Group_ga3295e1210efea1fb0fd6acbf3cbc1f29}{Eina\+\_\+\+List}} $\ast$list)
\begin{DoxyCompactList}\small\item\em Returns a new reversed iterator associated with a list. \end{DoxyCompactList}\item 
\mbox{\hyperlink{group__Eina__Types__Group_ga6ac08753ba12bc9c7a0390cf67868f4f}{EINA\+\_\+\+API}} \mbox{\hyperlink{group__Eina__Accessor__Group_ga65199ea5201a1867471028477dc26744}{Eina\+\_\+\+Accessor}} $\ast$ \mbox{\hyperlink{group__Eina__List__Group_ga335519c1e915268f4d96233d317ce06d}{eina\+\_\+list\+\_\+accessor\+\_\+new}} (const \mbox{\hyperlink{group__Eina__List__Group_ga3295e1210efea1fb0fd6acbf3cbc1f29}{Eina\+\_\+\+List}} $\ast$list)
\begin{DoxyCompactList}\small\item\em Returns a new accessor associated with a list. \end{DoxyCompactList}\item 
\mbox{\hyperlink{group__Eina__Types__Group_ga6ac08753ba12bc9c7a0390cf67868f4f}{EINA\+\_\+\+API}} int \mbox{\hyperlink{group__Eina__List__Group_ga659a2e16b54e639030a744b617fb80a1}{eina\+\_\+list\+\_\+data\+\_\+idx}} (const \mbox{\hyperlink{group__Eina__List__Group_ga3295e1210efea1fb0fd6acbf3cbc1f29}{Eina\+\_\+\+List}} $\ast$list, void $\ast$data)
\begin{DoxyCompactList}\small\item\em Finds the member of the list and returns the index. \end{DoxyCompactList}\end{DoxyCompactItemize}


\doxysubsection{Detailed Description}
These functions provide double linked list management. 

Eina\+\_\+\+List is a doubly linked list. It can store data of any type in the form of void pointers. It has convenience functions to do all the common operations which means it should rarely if ever be necessary to directly access the struct\textquotesingle{}s fields. Nevertheless it can be useful to understand the inner workings of the data structure being used.

\mbox{\hyperlink{group__Eina__List__Group_ga3295e1210efea1fb0fd6acbf3cbc1f29}{Eina\+\_\+\+List}} nodes keep references to the previous node, the next node, its data and to an accounting structure.

  
\begin{DoxyImageNoCaption}
  \mbox{\includegraphics[width=5cm]{eina_list}}
\end{DoxyImageNoCaption}


\mbox{\hyperlink{group__Eina__List__Group_gae6fd9c3d1d8d2c9dd01ef647494f5862}{Eina\+\_\+\+List\+\_\+\+Accounting}} is used to improve the performance of some functions. It is private and {\bfseries{should not}} be modified. It contains a reference to the end of the list and the number of elements in the list.

\begin{DoxyNote}{Note}
Every function that modifies the contents of the list returns a pointer to the head of the list and it is essential that this be pointer be used in any future references to the list.
\end{DoxyNote}
Most functions have two versions that have the same effect but operate on different arguments, the {\itshape plain} functions operate over data(e.\+g..\+: \mbox{\hyperlink{group__Eina__List__Group_ga2cc230dec347eaf4dee2e77637063ba5}{eina\+\_\+list\+\_\+append\+\_\+relative}}, \mbox{\hyperlink{group__Eina__List__Group_ga6e81c26272c54177d087b29c965af4d8}{eina\+\_\+list\+\_\+remove}}, \mbox{\hyperlink{group__Eina__List__Group_ga4ba54f63ed74cb7d81a1046926a93f4c}{eina\+\_\+list\+\_\+data\+\_\+find}}), the {\itshape list} versions of these functions operate on \mbox{\hyperlink{group__Eina__List__Group_ga3295e1210efea1fb0fd6acbf3cbc1f29}{Eina\+\_\+\+List}} nodes.

\begin{DoxyWarning}{Warning}
You must {\bfseries{always}} use the pointer to the first element of the list as the list! 

You must {\bfseries{never}} use a pointer to an element in the middle of the list as the list!
\end{DoxyWarning}
Here are some examples of \mbox{\hyperlink{group__Eina__List__Group_ga3295e1210efea1fb0fd6acbf3cbc1f29}{Eina\+\_\+\+List}} usage\+: \begin{DoxyItemize}
\item \mbox{\hyperlink{eina_list_01_example_page}{Adding elements to Eina\+\_\+\+List}} \item \mbox{\hyperlink{eina_list_02_example_page}{Sorting Eina\+\_\+\+List elements}} \item \mbox{\hyperlink{eina_list_03_example_page}{Reordering Eina\+\_\+\+List elements}} \item \mbox{\hyperlink{eina_list_04_example_page}{Eina\+\_\+\+List and memory allocation}} \end{DoxyItemize}


\doxysubsection{Macro Definition Documentation}
\mbox{\Hypertarget{group__Eina__List__Group_gac6efafc19f526d916cdb9757240a8773}\label{group__Eina__List__Group_gac6efafc19f526d916cdb9757240a8773}} 
\index{List@{List}!EINA\_LIST\_FOREACH@{EINA\_LIST\_FOREACH}}
\index{EINA\_LIST\_FOREACH@{EINA\_LIST\_FOREACH}!List@{List}}
\doxysubsubsection{\texorpdfstring{EINA\_LIST\_FOREACH}{EINA\_LIST\_FOREACH}}
{\footnotesize\ttfamily \#define EINA\+\_\+\+LIST\+\_\+\+FOREACH(\begin{DoxyParamCaption}\item[{}]{list,  }\item[{}]{l,  }\item[{}]{\+\_\+data }\end{DoxyParamCaption})}

{\bfseries Value\+:}
\begin{DoxyCode}{0}
\DoxyCodeLine{\ \ \textcolor{keywordflow}{for}\ (l\ =\ list,\ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \(\backslash\)}
\DoxyCodeLine{\ \ \ \ \ \ \ \_data\ =\ \mbox{\hyperlink{group__Eina__List__Group_gaa6277c6d3fc6fd4cd15112b06d9fb1b0}{eina\_list\_data\_get}}(l),\ \ \ \ \(\backslash\)}
\DoxyCodeLine{\ \ \ \ \ \ \ l\ ?\ (\mbox{\hyperlink{group__Eina__Types__Group_ga27cc40c638d9afdb2bcd322515ca17a6}{EINA\_PREFETCH}}(((\mbox{\hyperlink{struct__Eina__List}{Eina\_List}}\ *)l)-\/>next),\ \mbox{\hyperlink{group__Eina__Types__Group_ga27cc40c638d9afdb2bcd322515ca17a6}{EINA\_PREFETCH}}(\_data))\ :\ \mbox{\hyperlink{group__Eina__Types__Group_ga27cc40c638d9afdb2bcd322515ca17a6}{EINA\_PREFETCH}}(l);\ \(\backslash\)}
\DoxyCodeLine{\ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \(\backslash\)}
\DoxyCodeLine{\ \ \ \ \ \ \ l;\ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \(\backslash\)}
\DoxyCodeLine{\ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \(\backslash\)}
\DoxyCodeLine{\ \ \ \ \ \ \ l\ =\ \mbox{\hyperlink{group__Eina__List__Group_gacc28215bbda06902ad98020345b6ccc6}{eina\_list\_next}}(l),\ \ \ \ \ \ \ \ \ \ \ \ \(\backslash\)}
\DoxyCodeLine{\ \ \ \ \ \ \ \_data\ =\ \mbox{\hyperlink{group__Eina__List__Group_gaa6277c6d3fc6fd4cd15112b06d9fb1b0}{eina\_list\_data\_get}}(l),\ \ \ \ \(\backslash\)}
\DoxyCodeLine{\ \ \ \ \ \ \ l\ ?\ (\mbox{\hyperlink{group__Eina__Types__Group_ga27cc40c638d9afdb2bcd322515ca17a6}{EINA\_PREFETCH}}(((\mbox{\hyperlink{struct__Eina__List}{Eina\_List}}\ *)l)-\/>next),\ \mbox{\hyperlink{group__Eina__Types__Group_ga27cc40c638d9afdb2bcd322515ca17a6}{EINA\_PREFETCH}}(\_data))\ :\ \mbox{\hyperlink{group__Eina__Types__Group_ga27cc40c638d9afdb2bcd322515ca17a6}{EINA\_PREFETCH}}(l))}

\end{DoxyCode}


Definition for the macro to iterate over a list. 


\begin{DoxyParams}[1]{Parameters}
\mbox{\texttt{ in}}  & {\em list} & The list to iterate over. \\
\hline
\mbox{\texttt{ out}}  & {\em l} & A list that is used as an iterator and points to the current node. \\
\hline
\mbox{\texttt{ out}}  & {\em \+\_\+data} & Current item\textquotesingle{}s data.\\
\hline
\end{DoxyParams}
This macro iterates over {\ttfamily list} from the first element to the last. {\ttfamily data} is the data related to the current element. {\ttfamily l} is an \mbox{\hyperlink{group__Eina__List__Group_ga3295e1210efea1fb0fd6acbf3cbc1f29}{Eina\+\_\+\+List}} used as the list iterator.

The following diagram illustrates this macro iterating over a list of four elements(\char`\"{}one\char`\"{}, \char`\"{}two\char`\"{}, \char`\"{}three\char`\"{} and \char`\"{}four\char`\"{})\+: 
\begin{DoxyImageNoCaption}
  \mbox{\includegraphics[width=\textwidth]{eina-list-foreach}}
\end{DoxyImageNoCaption}
 

It can be used to free list data, as in the following example\+:


\begin{DoxyCode}{0}
\DoxyCodeLine{\mbox{\hyperlink{struct__Eina__List}{Eina\_List}}\ *list;}
\DoxyCodeLine{\mbox{\hyperlink{struct__Eina__List}{Eina\_List}}\ *l;}
\DoxyCodeLine{\textcolor{keywordtype}{char}\ \ \ \ \ \ *data;}
\DoxyCodeLine{}
\DoxyCodeLine{\textcolor{comment}{//\ list\ is\ already\ filled,}}
\DoxyCodeLine{\textcolor{comment}{//\ its\ elements\ are\ just\ duplicated\ strings,}}
\DoxyCodeLine{\textcolor{comment}{//\ EINA\_LIST\_FOREACH\ will\ be\ used\ to\ free\ those\ strings}}
\DoxyCodeLine{}
\DoxyCodeLine{\mbox{\hyperlink{group__Eina__List__Group_gac6efafc19f526d916cdb9757240a8773}{EINA\_LIST\_FOREACH}}(list,\ l,\ data)}
\DoxyCodeLine{\ \ free(data);}
\DoxyCodeLine{\mbox{\hyperlink{group__Eina__List__Group_ga82a1bfa543e21853f9ea3ff88dd1250b}{eina\_list\_free}}(list);}

\end{DoxyCode}


\begin{DoxyNote}{Note}
This is not the optimal way to release memory allocated to a list, since it iterates over the list twice. For an optimized algorithm, use \mbox{\hyperlink{group__Eina__List__Group_gae27a2c686a0a11693f9b06957c9bba83}{EINA\+\_\+\+LIST\+\_\+\+FREE()}}.
\end{DoxyNote}
\begin{DoxyWarning}{Warning}
{\ttfamily list} must be a pointer to the first element of the list.

Be careful when deleting list nodes. If you remove the current node and continue iterating, the code will fail because the macro will not be able to get the next node. Notice that it\textquotesingle{}s OK to remove any node if you stop the loop after that. For destructive operations such as this, consider using \mbox{\hyperlink{group__Eina__List__Group_ga5b4d2aac696cd2558aaed03e3929d873}{EINA\+\_\+\+LIST\+\_\+\+FOREACH\+\_\+\+SAFE()}}. 
\end{DoxyWarning}
\begin{Desc}
\item[Examples]\par
\mbox{\hyperlink{diskselector_example_02_8c-example}{diskselector\+\_\+example\+\_\+02.\+c}}, \mbox{\hyperlink{ecore_con_server_simple_example_8c-example}{ecore\+\_\+con\+\_\+server\+\_\+simple\+\_\+example.\+c}}, \mbox{\hyperlink{ecore_con_url_cookies_example_8c-example}{ecore\+\_\+con\+\_\+url\+\_\+cookies\+\_\+example.\+c}}, \mbox{\hyperlink{ecore_con_url_headers_example_8c-example}{ecore\+\_\+con\+\_\+url\+\_\+headers\+\_\+example.\+c}}, \mbox{\hyperlink{ecore_evas_basics_example_8c-example}{ecore\+\_\+evas\+\_\+basics\+\_\+example.\+c}}, \mbox{\hyperlink{ecore_imf_example_8c-example}{ecore\+\_\+imf\+\_\+example.\+c}}, \mbox{\hyperlink{edje-box2_8c-example}{edje-\/box2.\+c}}, \mbox{\hyperlink{eet-data-file_descriptor_01_8c-example}{eet-\/data-\/file\+\_\+descriptor\+\_\+01.\+c}}, \mbox{\hyperlink{eet-data-file_descriptor_02_8c-example}{eet-\/data-\/file\+\_\+descriptor\+\_\+02.\+c}}, \mbox{\hyperlink{eet-data-nested_8c-example}{eet-\/data-\/nested.\+c}}, \mbox{\hyperlink{eina_inlist_02_8c-example}{eina\+\_\+inlist\+\_\+02.\+c}}, \mbox{\hyperlink{eina_list_01_8c-example}{eina\+\_\+list\+\_\+01.\+c}}, \mbox{\hyperlink{emotion_test_main_8c-example}{emotion\+\_\+test\+\_\+main.\+c}}, \mbox{\hyperlink{entry_example_8c-example}{entry\+\_\+example.\+c}}, \mbox{\hyperlink{evas-box_8c-example}{evas-\/box.\+c}}, \mbox{\hyperlink{evas-buffer-simple_8c-example}{evas-\/buffer-\/simple.\+c}}, \mbox{\hyperlink{evas-events_8c-example}{evas-\/events.\+c}}, \mbox{\hyperlink{evas-init-shutdown_8c-example}{evas-\/init-\/shutdown.\+c}}, \mbox{\hyperlink{gengrid_example_8c-example}{gengrid\+\_\+example.\+c}}, \mbox{\hyperlink{genlist_example_02_8c-example}{genlist\+\_\+example\+\_\+02.\+c}}, \mbox{\hyperlink{genlist_example_05_8c-example}{genlist\+\_\+example\+\_\+05.\+c}}, \mbox{\hyperlink{hoversel_example_01_8c-example}{hoversel\+\_\+example\+\_\+01.\+c}}, \mbox{\hyperlink{list_example_03_8c-example}{list\+\_\+example\+\_\+03.\+c}}, \mbox{\hyperlink{slideshow_example_8c-example}{slideshow\+\_\+example.\+c}}, \mbox{\hyperlink{test_growing_balls_8c-example}{test\+\_\+growing\+\_\+balls.\+c}}, and \mbox{\hyperlink{transit_example_04_8c-example}{transit\+\_\+example\+\_\+04.\+c}}.\end{Desc}
\mbox{\Hypertarget{group__Eina__List__Group_ga25dbba4dcc1d86c63ef3ba3791a9c51a}\label{group__Eina__List__Group_ga25dbba4dcc1d86c63ef3ba3791a9c51a}} 
\index{List@{List}!EINA\_LIST\_REVERSE\_FOREACH@{EINA\_LIST\_REVERSE\_FOREACH}}
\index{EINA\_LIST\_REVERSE\_FOREACH@{EINA\_LIST\_REVERSE\_FOREACH}!List@{List}}
\doxysubsubsection{\texorpdfstring{EINA\_LIST\_REVERSE\_FOREACH}{EINA\_LIST\_REVERSE\_FOREACH}}
{\footnotesize\ttfamily \#define EINA\+\_\+\+LIST\+\_\+\+REVERSE\+\_\+\+FOREACH(\begin{DoxyParamCaption}\item[{}]{list,  }\item[{}]{l,  }\item[{}]{\+\_\+data }\end{DoxyParamCaption})}

{\bfseries Value\+:}
\begin{DoxyCode}{0}
\DoxyCodeLine{\ \ \textcolor{keywordflow}{for}\ (l\ =\ \mbox{\hyperlink{group__Eina__List__Group_gaf6d81c1424bb3b787d5c4f86ca052d7b}{eina\_list\_last}}(list),\ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \(\backslash\)}
\DoxyCodeLine{\ \ \ \ \ \ \ \_data\ =\ \mbox{\hyperlink{group__Eina__List__Group_gaa6277c6d3fc6fd4cd15112b06d9fb1b0}{eina\_list\_data\_get}}(l),\ \ \ \ \ \ \ \ \ \ \ \ \(\backslash\)}
\DoxyCodeLine{\ \ \ \ \ \ \ l\ ?\ (\mbox{\hyperlink{group__Eina__Types__Group_ga27cc40c638d9afdb2bcd322515ca17a6}{EINA\_PREFETCH}}(((\mbox{\hyperlink{struct__Eina__List}{Eina\_List}}\ *)l)-\/>prev),\ \mbox{\hyperlink{group__Eina__Types__Group_ga27cc40c638d9afdb2bcd322515ca17a6}{EINA\_PREFETCH}}(\_data))\ :\ \mbox{\hyperlink{group__Eina__Types__Group_ga27cc40c638d9afdb2bcd322515ca17a6}{EINA\_PREFETCH}}(l);\ \(\backslash\)}
\DoxyCodeLine{\ \ \ \ \ \ \ l;\ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \(\backslash\)}
\DoxyCodeLine{\ \ \ \ \ \ \ l\ =\ \mbox{\hyperlink{group__Eina__List__Group_ga3d169e81c800699fcf197191db0843c6}{eina\_list\_prev}}(l),\ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \(\backslash\)}
\DoxyCodeLine{\ \ \ \ \ \ \ \_data\ =\ \mbox{\hyperlink{group__Eina__List__Group_gaa6277c6d3fc6fd4cd15112b06d9fb1b0}{eina\_list\_data\_get}}(l),\ \ \ \ \ \ \ \ \ \ \ \ \(\backslash\)}
\DoxyCodeLine{\ \ \ \ \ \ \ l\ ?\ (\mbox{\hyperlink{group__Eina__Types__Group_ga27cc40c638d9afdb2bcd322515ca17a6}{EINA\_PREFETCH}}(((\mbox{\hyperlink{struct__Eina__List}{Eina\_List}}\ *)l)-\/>prev),\ \mbox{\hyperlink{group__Eina__Types__Group_ga27cc40c638d9afdb2bcd322515ca17a6}{EINA\_PREFETCH}}(\_data))\ :\ \mbox{\hyperlink{group__Eina__Types__Group_ga27cc40c638d9afdb2bcd322515ca17a6}{EINA\_PREFETCH}}(l))}

\end{DoxyCode}


Definition for the macro to iterate over a list in the reverse order. 


\begin{DoxyParams}[1]{Parameters}
\mbox{\texttt{ in}}  & {\em list} & The list to iterate over. \\
\hline
\mbox{\texttt{ out}}  & {\em l} & A list that is used as an iterator and points to the current node. \\
\hline
\mbox{\texttt{ out}}  & {\em \+\_\+data} & Current item\textquotesingle{}s data.\\
\hline
\end{DoxyParams}
This macro works like EINA\+\_\+\+LIST\+\_\+\+FOREACH, but iterates from the last element of a list to the first. {\ttfamily data} is the data related to the current element, while {\ttfamily l} is an \mbox{\hyperlink{group__Eina__List__Group_ga3295e1210efea1fb0fd6acbf3cbc1f29}{Eina\+\_\+\+List}} that is used as the list iterator.

The following diagram illustrates this macro iterating over a list of four elements(\char`\"{}one\char`\"{}, \char`\"{}two\char`\"{}, \char`\"{}three\char`\"{} and \char`\"{}four\char`\"{})\+: 
\begin{DoxyImageNoCaption}
  \mbox{\includegraphics[width=\textwidth]{eina-list-reverse-foreach}}
\end{DoxyImageNoCaption}
 

It can be used to free list data, as in the following example\+:


\begin{DoxyCode}{0}
\DoxyCodeLine{\mbox{\hyperlink{struct__Eina__List}{Eina\_List}}\ *list;}
\DoxyCodeLine{\mbox{\hyperlink{struct__Eina__List}{Eina\_List}}\ *l;}
\DoxyCodeLine{\textcolor{keywordtype}{char}\ \ \ \ \ \ *data;}
\DoxyCodeLine{}
\DoxyCodeLine{\textcolor{comment}{//\ list\ is\ already\ filled,}}
\DoxyCodeLine{\textcolor{comment}{//\ its\ elements\ are\ just\ duplicated\ strings,}}
\DoxyCodeLine{\textcolor{comment}{//\ EINA\_LIST\_REVERSE\_FOREACH\ will\ be\ used\ to\ free\ those\ strings}}
\DoxyCodeLine{}
\DoxyCodeLine{\mbox{\hyperlink{group__Eina__List__Group_ga25dbba4dcc1d86c63ef3ba3791a9c51a}{EINA\_LIST\_REVERSE\_FOREACH}}(list,\ l,\ data)}
\DoxyCodeLine{\ \ free(data);}
\DoxyCodeLine{\mbox{\hyperlink{group__Eina__List__Group_ga82a1bfa543e21853f9ea3ff88dd1250b}{eina\_list\_free}}(list);}

\end{DoxyCode}


\begin{DoxyNote}{Note}
This is not the optimal way to release memory allocated to a list, since it iterates over the list twice. For an optimized algorithm, use \mbox{\hyperlink{group__Eina__List__Group_gae27a2c686a0a11693f9b06957c9bba83}{EINA\+\_\+\+LIST\+\_\+\+FREE()}}.
\end{DoxyNote}
\begin{DoxyWarning}{Warning}
{\ttfamily list} must be a pointer to the first element of the list.

Be careful when deleting list nodes. If you remove the current node and continue iterating, the code will fail because the macro will not be able to get the next node. Notice that it\textquotesingle{}s OK to remove any node if you stop the loop after that. For destructive operations such as this, consider using \mbox{\hyperlink{group__Eina__List__Group_gad1bdb753e4c9eca59a6da87094d516b0}{EINA\+\_\+\+LIST\+\_\+\+REVERSE\+\_\+\+FOREACH\+\_\+\+SAFE()}}. 
\end{DoxyWarning}
\mbox{\Hypertarget{group__Eina__List__Group_ga5b4d2aac696cd2558aaed03e3929d873}\label{group__Eina__List__Group_ga5b4d2aac696cd2558aaed03e3929d873}} 
\index{List@{List}!EINA\_LIST\_FOREACH\_SAFE@{EINA\_LIST\_FOREACH\_SAFE}}
\index{EINA\_LIST\_FOREACH\_SAFE@{EINA\_LIST\_FOREACH\_SAFE}!List@{List}}
\doxysubsubsection{\texorpdfstring{EINA\_LIST\_FOREACH\_SAFE}{EINA\_LIST\_FOREACH\_SAFE}}
{\footnotesize\ttfamily \#define EINA\+\_\+\+LIST\+\_\+\+FOREACH\+\_\+\+SAFE(\begin{DoxyParamCaption}\item[{}]{list,  }\item[{}]{l,  }\item[{}]{l\+\_\+next,  }\item[{}]{data }\end{DoxyParamCaption})}

{\bfseries Value\+:}
\begin{DoxyCode}{0}
\DoxyCodeLine{\ \ \textcolor{keywordflow}{for}\ (l\ =\ list,\ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \(\backslash\)}
\DoxyCodeLine{\ \ \ \ \ \ \ l\_next\ =\ \mbox{\hyperlink{group__Eina__List__Group_gacc28215bbda06902ad98020345b6ccc6}{eina\_list\_next}}(l),\ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \(\backslash\)}
\DoxyCodeLine{\ \ \ \ \ \ \ \mbox{\hyperlink{group__Eina__Types__Group_ga27cc40c638d9afdb2bcd322515ca17a6}{EINA\_PREFETCH}}(l\_next),\ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \(\backslash\)}
\DoxyCodeLine{\ \ \ \ \ \ \ data\ =\ \mbox{\hyperlink{group__Eina__List__Group_gaa6277c6d3fc6fd4cd15112b06d9fb1b0}{eina\_list\_data\_get}}(l);\ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \(\backslash\)}
\DoxyCodeLine{\ \ \ \ \ \ \ EINA\_PREFETCH(data),\ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \(\backslash\)}
\DoxyCodeLine{\ \ \ \ \ \ \ l;\ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \(\backslash\)}
\DoxyCodeLine{\ \ \ \ \ \ \ l\ =\ l\_next,\ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \(\backslash\)}
\DoxyCodeLine{\ \ \ \ \ \ \ l\_next\ =\ \mbox{\hyperlink{group__Eina__List__Group_gacc28215bbda06902ad98020345b6ccc6}{eina\_list\_next}}(l),\ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \(\backslash\)}
\DoxyCodeLine{\ \ \ \ \ \ \ EINA\_PREFETCH(l\_next),\ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \(\backslash\)}
\DoxyCodeLine{\ \ \ \ \ \ \ data\ =\ \mbox{\hyperlink{group__Eina__List__Group_gaa6277c6d3fc6fd4cd15112b06d9fb1b0}{eina\_list\_data\_get}}(l),\ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \(\backslash\)}
\DoxyCodeLine{\ \ \ \ \ \ \ EINA\_PREFETCH(data))}

\end{DoxyCode}


Definition for the macro to iterate over a list with support for node deletion. 


\begin{DoxyParams}[1]{Parameters}
\mbox{\texttt{ in}}  & {\em list} & The list to iterate over. \\
\hline
\mbox{\texttt{ out}}  & {\em l} & A list that is used as an iterator and points to the current node. \\
\hline
\mbox{\texttt{ out}}  & {\em l\+\_\+next} & A list that is used as an iterator and points to the next node. \\
\hline
\mbox{\texttt{ out}}  & {\em data} & Current item\textquotesingle{}s data.\\
\hline
\end{DoxyParams}
This macro iterates over {\ttfamily list} from the first element to the last. {\ttfamily data} is the data related to the current element. {\ttfamily l} is an \mbox{\hyperlink{group__Eina__List__Group_ga3295e1210efea1fb0fd6acbf3cbc1f29}{Eina\+\_\+\+List}} used as the list iterator.

Since this macro stores a pointer to the next list node in {\ttfamily l\+\_\+next}, deleting the current node and continuing looping is safe.

The following diagram illustrates this macro iterating over a list of four elements (\char`\"{}one\char`\"{}, \char`\"{}two\char`\"{}, \char`\"{}three\char`\"{} and \char`\"{}four\char`\"{})\+: 
\begin{DoxyImageNoCaption}
  \mbox{\includegraphics[width=\textwidth]{eina-list-foreach-safe}}
\end{DoxyImageNoCaption}
 

This macro can be used to free list nodes, as in the following example\+:


\begin{DoxyCode}{0}
\DoxyCodeLine{\mbox{\hyperlink{struct__Eina__List}{Eina\_List}}\ *list;}
\DoxyCodeLine{\mbox{\hyperlink{struct__Eina__List}{Eina\_List}}\ *l;}
\DoxyCodeLine{\mbox{\hyperlink{struct__Eina__List}{Eina\_List}}\ *l\_next;}
\DoxyCodeLine{\textcolor{keywordtype}{char}\ \ \ \ \ \ *data;}
\DoxyCodeLine{}
\DoxyCodeLine{\textcolor{comment}{//\ list\ is\ already\ filled,}}
\DoxyCodeLine{\textcolor{comment}{//\ its\ elements\ are\ just\ duplicated\ strings,}}
\DoxyCodeLine{\textcolor{comment}{//\ EINA\_LIST\_FOREACH\_SAFE\ will\ be\ used\ to\ free\ elements\ that\ match\ "{}key"{}.}}
\DoxyCodeLine{}
\DoxyCodeLine{\mbox{\hyperlink{group__Eina__List__Group_ga5b4d2aac696cd2558aaed03e3929d873}{EINA\_LIST\_FOREACH\_SAFE}}(list,\ l,\ l\_next,\ data)}
\DoxyCodeLine{\ \ \textcolor{keywordflow}{if}\ (strcmp(data,\ \textcolor{stringliteral}{"{}key"{}})\ ==\ 0)}
\DoxyCodeLine{\ \ \ \ \{}
\DoxyCodeLine{\ \ \ \ \ \ \ free(data);}
\DoxyCodeLine{\ \ \ \ \ \ \ list\ =\ \mbox{\hyperlink{group__Eina__List__Group_gaf86ee0fd9fe0643ece301fc86f04e720}{eina\_list\_remove\_list}}(list,\ l);}
\DoxyCodeLine{\ \ \ \ \}}

\end{DoxyCode}


\begin{DoxyWarning}{Warning}
{\ttfamily list} must be a pointer to the first element of the list. 
\end{DoxyWarning}
\begin{Desc}
\item[Examples]\par
\mbox{\hyperlink{eina_inlist_02_8c-example}{eina\+\_\+inlist\+\_\+02.\+c}}.\end{Desc}
\mbox{\Hypertarget{group__Eina__List__Group_gad1bdb753e4c9eca59a6da87094d516b0}\label{group__Eina__List__Group_gad1bdb753e4c9eca59a6da87094d516b0}} 
\index{List@{List}!EINA\_LIST\_REVERSE\_FOREACH\_SAFE@{EINA\_LIST\_REVERSE\_FOREACH\_SAFE}}
\index{EINA\_LIST\_REVERSE\_FOREACH\_SAFE@{EINA\_LIST\_REVERSE\_FOREACH\_SAFE}!List@{List}}
\doxysubsubsection{\texorpdfstring{EINA\_LIST\_REVERSE\_FOREACH\_SAFE}{EINA\_LIST\_REVERSE\_FOREACH\_SAFE}}
{\footnotesize\ttfamily \#define EINA\+\_\+\+LIST\+\_\+\+REVERSE\+\_\+\+FOREACH\+\_\+\+SAFE(\begin{DoxyParamCaption}\item[{}]{list,  }\item[{}]{l,  }\item[{}]{l\+\_\+prev,  }\item[{}]{data }\end{DoxyParamCaption})}

{\bfseries Value\+:}
\begin{DoxyCode}{0}
\DoxyCodeLine{\ \ \textcolor{keywordflow}{for}\ (l\ =\ \mbox{\hyperlink{group__Eina__List__Group_gaf6d81c1424bb3b787d5c4f86ca052d7b}{eina\_list\_last}}(list),\ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \(\backslash\)}
\DoxyCodeLine{\ \ \ \ \ \ \ l\_prev\ =\ \mbox{\hyperlink{group__Eina__List__Group_ga3d169e81c800699fcf197191db0843c6}{eina\_list\_prev}}(l),\ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \(\backslash\)}
\DoxyCodeLine{\ \ \ \ \ \ \ \mbox{\hyperlink{group__Eina__Types__Group_ga27cc40c638d9afdb2bcd322515ca17a6}{EINA\_PREFETCH}}(l\_prev),\ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \(\backslash\)}
\DoxyCodeLine{\ \ \ \ \ \ \ data\ =\ \mbox{\hyperlink{group__Eina__List__Group_gaa6277c6d3fc6fd4cd15112b06d9fb1b0}{eina\_list\_data\_get}}(l);\ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \(\backslash\)}
\DoxyCodeLine{\ \ \ \ \ \ \ EINA\_PREFETCH(data),\ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \(\backslash\)}
\DoxyCodeLine{\ \ \ \ \ \ \ l;\ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \(\backslash\)}
\DoxyCodeLine{\ \ \ \ \ \ \ l\ =\ l\_prev,\ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \(\backslash\)}
\DoxyCodeLine{\ \ \ \ \ \ \ l\_prev\ =\ \mbox{\hyperlink{group__Eina__List__Group_ga3d169e81c800699fcf197191db0843c6}{eina\_list\_prev}}(l),\ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \(\backslash\)}
\DoxyCodeLine{\ \ \ \ \ \ \ EINA\_PREFETCH(l\_prev),\ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \(\backslash\)}
\DoxyCodeLine{\ \ \ \ \ \ \ data\ =\ \mbox{\hyperlink{group__Eina__List__Group_gaa6277c6d3fc6fd4cd15112b06d9fb1b0}{eina\_list\_data\_get}}(l),\ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \(\backslash\)}
\DoxyCodeLine{\ \ \ \ \ \ \ EINA\_PREFETCH(data))}

\end{DoxyCode}


Definition for the macro to iterate over a list in the reverse order with support for deletion. 


\begin{DoxyParams}[1]{Parameters}
\mbox{\texttt{ in}}  & {\em list} & The list to iterate over. \\
\hline
\mbox{\texttt{ out}}  & {\em l} & A list that is used as an iterator and points to the current node. \\
\hline
\mbox{\texttt{ out}}  & {\em l\+\_\+prev} & A list that is used as an iterator and points to the previous node. \\
\hline
\mbox{\texttt{ out}}  & {\em data} & Current item\textquotesingle{}s data.\\
\hline
\end{DoxyParams}
This macro works like EINA\+\_\+\+LIST\+\_\+\+FOREACH\+\_\+\+SAFE, but iterates from the last element of a list to the first. {\ttfamily data} is the data related to the current element, while {\ttfamily l} is an \mbox{\hyperlink{group__Eina__List__Group_ga3295e1210efea1fb0fd6acbf3cbc1f29}{Eina\+\_\+\+List}} that is used as the list iterator.

Since this macro stores a pointer to the previous list node in {\ttfamily l\+\_\+prev}, deleting the current node and continuing looping is safe.

The following diagram illustrates this macro iterating over a list of four elements (\char`\"{}one\char`\"{}, \char`\"{}two\char`\"{}, \char`\"{}three\char`\"{} and \char`\"{}four\char`\"{})\+: 
\begin{DoxyImageNoCaption}
  \mbox{\includegraphics[width=\textwidth]{eina-list-reverse-foreach-safe}}
\end{DoxyImageNoCaption}
 

This macro can be used to free list nodes, as in the following example\+:


\begin{DoxyCode}{0}
\DoxyCodeLine{\mbox{\hyperlink{struct__Eina__List}{Eina\_List}}\ *list;}
\DoxyCodeLine{\mbox{\hyperlink{struct__Eina__List}{Eina\_List}}\ *l;}
\DoxyCodeLine{\mbox{\hyperlink{struct__Eina__List}{Eina\_List}}\ *l\_prev;}
\DoxyCodeLine{\textcolor{keywordtype}{char}\ \ \ \ \ \ \ *data;}
\DoxyCodeLine{}
\DoxyCodeLine{\textcolor{comment}{//\ list\ is\ already\ filled,}}
\DoxyCodeLine{\textcolor{comment}{//\ its\ elements\ are\ just\ duplicated\ strings,}}
\DoxyCodeLine{\textcolor{comment}{//\ EINA\_LIST\_REVERSE\_FOREACH\_SAFE\ will\ be\ used\ to\ free\ elements\ that\ match\ "{}key"{}.}}
\DoxyCodeLine{}
\DoxyCodeLine{\mbox{\hyperlink{group__Eina__List__Group_gad1bdb753e4c9eca59a6da87094d516b0}{EINA\_LIST\_REVERSE\_FOREACH\_SAFE}}(list,\ l,\ l\_prev,\ data)}
\DoxyCodeLine{\ \ \textcolor{keywordflow}{if}\ (strcmp(data,\ \textcolor{stringliteral}{"{}key"{}})\ ==\ 0)}
\DoxyCodeLine{\ \ \ \ \{}
\DoxyCodeLine{\ \ \ \ \ \ \ free(data);}
\DoxyCodeLine{\ \ \ \ \ \ \ list\ =\ \mbox{\hyperlink{group__Eina__List__Group_gaf86ee0fd9fe0643ece301fc86f04e720}{eina\_list\_remove\_list}}(list,\ l);}
\DoxyCodeLine{\ \ \ \ \}}

\end{DoxyCode}


\begin{DoxyWarning}{Warning}
{\ttfamily list} must be a pointer to the first element of the list. 
\end{DoxyWarning}
\mbox{\Hypertarget{group__Eina__List__Group_gae27a2c686a0a11693f9b06957c9bba83}\label{group__Eina__List__Group_gae27a2c686a0a11693f9b06957c9bba83}} 
\index{List@{List}!EINA\_LIST\_FREE@{EINA\_LIST\_FREE}}
\index{EINA\_LIST\_FREE@{EINA\_LIST\_FREE}!List@{List}}
\doxysubsubsection{\texorpdfstring{EINA\_LIST\_FREE}{EINA\_LIST\_FREE}}
{\footnotesize\ttfamily \#define EINA\+\_\+\+LIST\+\_\+\+FREE(\begin{DoxyParamCaption}\item[{}]{list,  }\item[{}]{data }\end{DoxyParamCaption})}

{\bfseries Value\+:}
\begin{DoxyCode}{0}
\DoxyCodeLine{\ \ \textcolor{keywordflow}{for}\ (data\ =\ \mbox{\hyperlink{group__Eina__List__Group_gaa6277c6d3fc6fd4cd15112b06d9fb1b0}{eina\_list\_data\_get}}(list),\ \ \ \ \ \ \ \ \ \ \(\backslash\)}
\DoxyCodeLine{\ \ \ \ \ \ \ list\ ?\ \mbox{\hyperlink{group__Eina__Types__Group_ga27cc40c638d9afdb2bcd322515ca17a6}{EINA\_PREFETCH}}(((\mbox{\hyperlink{struct__Eina__List}{Eina\_List}}\ *)list)-\/>next)\ :\ \mbox{\hyperlink{group__Eina__Types__Group_ga27cc40c638d9afdb2bcd322515ca17a6}{EINA\_PREFETCH}}(list);\ \(\backslash\)}
\DoxyCodeLine{\ \ \ \ \ \ \ list;\ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \(\backslash\)}
\DoxyCodeLine{\ \ \ \ \ \ \ list\ =\ \mbox{\hyperlink{group__Eina__List__Group_gaf86ee0fd9fe0643ece301fc86f04e720}{eina\_list\_remove\_list}}(list,\ list),\ \(\backslash\)}
\DoxyCodeLine{\ \ \ \ \ \ \ list\ ?\ \mbox{\hyperlink{group__Eina__Types__Group_ga27cc40c638d9afdb2bcd322515ca17a6}{EINA\_PREFETCH}}(((\mbox{\hyperlink{struct__Eina__List}{Eina\_List}}\ *)list)-\/>next)\ :\ \mbox{\hyperlink{group__Eina__Types__Group_ga27cc40c638d9afdb2bcd322515ca17a6}{EINA\_PREFETCH}}(list),\ \(\backslash\)}
\DoxyCodeLine{\ \ \ \ \ \ \ data\ =\ \mbox{\hyperlink{group__Eina__List__Group_gaa6277c6d3fc6fd4cd15112b06d9fb1b0}{eina\_list\_data\_get}}(list))}

\end{DoxyCode}


Definition for the macro to remove each list node while having access to each node\textquotesingle{}s data. 


\begin{DoxyParams}[1]{Parameters}
\mbox{\texttt{ in,out}}  & {\em list} & The list that will be cleared. \\
\hline
\mbox{\texttt{ out}}  & {\em data} & Current node\textquotesingle{}s data.\\
\hline
\end{DoxyParams}
This macro will call \mbox{\hyperlink{group__Eina__List__Group_gaf86ee0fd9fe0643ece301fc86f04e720}{eina\+\_\+list\+\_\+remove\+\_\+list}} for each list node, and store the data contained in the current node in {\ttfamily data}.

The following diagram illustrates this macro iterating over a list of four elements (\char`\"{}one\char`\"{}, \char`\"{}two\char`\"{}, \char`\"{}three\char`\"{} and \char`\"{}four\char`\"{})\+: 
\begin{DoxyImageNoCaption}
  \mbox{\includegraphics[width=\textwidth]{eina-list-free}}
\end{DoxyImageNoCaption}
 

If you do not need to release node data, it is easier to call \mbox{\hyperlink{group__Eina__List__Group_ga82a1bfa543e21853f9ea3ff88dd1250b}{eina\+\_\+list\+\_\+free()}}.


\begin{DoxyCode}{0}
\DoxyCodeLine{\mbox{\hyperlink{struct__Eina__List}{Eina\_List}}\ *list;}
\DoxyCodeLine{\textcolor{keywordtype}{char}\ \ \ \ \ \ *data;}
\DoxyCodeLine{}
\DoxyCodeLine{\textcolor{comment}{//\ list\ is\ already\ filled,}}
\DoxyCodeLine{\textcolor{comment}{//\ its\ elements\ are\ just\ duplicated\ strings,}}
\DoxyCodeLine{}
\DoxyCodeLine{\mbox{\hyperlink{group__Eina__List__Group_gae27a2c686a0a11693f9b06957c9bba83}{EINA\_LIST\_FREE}}(list,\ data)}
\DoxyCodeLine{\ \ free(data);}

\end{DoxyCode}


\begin{DoxyWarning}{Warning}
{\ttfamily list} must be a pointer to the first element of the list.
\end{DoxyWarning}
\begin{DoxySeeAlso}{See also}
\mbox{\hyperlink{group__Eina__List__Group_ga82a1bfa543e21853f9ea3ff88dd1250b}{eina\+\_\+list\+\_\+free()}} 
\end{DoxySeeAlso}
\begin{Desc}
\item[Examples]\par
\mbox{\hyperlink{ecore_imf_example_8c-example}{ecore\+\_\+imf\+\_\+example.\+c}}, \mbox{\hyperlink{ecore_thread_example_8c-example}{ecore\+\_\+thread\+\_\+example.\+c}}, \mbox{\hyperlink{edje-color-class_8c-example}{edje-\/color-\/class.\+c}}, \mbox{\hyperlink{eet-data-file_descriptor_01_8c-example}{eet-\/data-\/file\+\_\+descriptor\+\_\+01.\+c}}, \mbox{\hyperlink{eet-data-file_descriptor_02_8c-example}{eet-\/data-\/file\+\_\+descriptor\+\_\+02.\+c}}, \mbox{\hyperlink{eet-data-nested_8c-example}{eet-\/data-\/nested.\+c}}, \mbox{\hyperlink{efl_thread_6_8c-example}{efl\+\_\+thread\+\_\+6.\+c}}, \mbox{\hyperlink{eina_list_04_8c-example}{eina\+\_\+list\+\_\+04.\+c}}, \mbox{\hyperlink{eina_tiler_01_8c-example}{eina\+\_\+tiler\+\_\+01.\+c}}, \mbox{\hyperlink{emotion_test_main_8c-example}{emotion\+\_\+test\+\_\+main.\+c}}, \mbox{\hyperlink{genlist_example_02_8c-example}{genlist\+\_\+example\+\_\+02.\+c}}, and \mbox{\hyperlink{genlist_example_05_8c-example}{genlist\+\_\+example\+\_\+05.\+c}}.\end{Desc}


\doxysubsection{Function Documentation}
\mbox{\Hypertarget{group__Eina__List__Group_ga625698a383dda8fc0db245a1c7608c49}\label{group__Eina__List__Group_ga625698a383dda8fc0db245a1c7608c49}} 
\index{List@{List}!eina\_list\_append@{eina\_list\_append}}
\index{eina\_list\_append@{eina\_list\_append}!List@{List}}
\doxysubsubsection{\texorpdfstring{eina\_list\_append()}{eina\_list\_append()}}
{\footnotesize\ttfamily \mbox{\hyperlink{group__Eina__Types__Group_ga6ac08753ba12bc9c7a0390cf67868f4f}{EINA\+\_\+\+API}} \mbox{\hyperlink{group__Eina__List__Group_ga3295e1210efea1fb0fd6acbf3cbc1f29}{Eina\+\_\+\+List}} $\ast$ eina\+\_\+list\+\_\+append (\begin{DoxyParamCaption}\item[{\mbox{\hyperlink{group__Eina__List__Group_ga3295e1210efea1fb0fd6acbf3cbc1f29}{Eina\+\_\+\+List}} $\ast$}]{list,  }\item[{const void $\ast$}]{data }\end{DoxyParamCaption})}



Appends the given data to the given linked list. 


\begin{DoxyParams}[1]{Parameters}
\mbox{\texttt{ in,out}}  & {\em list} & The given list. \\
\hline
\mbox{\texttt{ in}}  & {\em data} & The data to append. \\
\hline
\end{DoxyParams}
\begin{DoxyReturn}{Returns}
A list pointer, or {\ttfamily NULL} on error.
\end{DoxyReturn}
This function appends {\ttfamily data} to {\ttfamily list}. If {\ttfamily list} is {\ttfamily NULL}, a new list is returned. On success, a new list pointer that should be used in place of the one given to this function is returned. Otherwise, the old pointer is returned.

The following example code demonstrates how to ensure that the given data has been successfully appended.


\begin{DoxyCode}{0}
\DoxyCodeLine{\mbox{\hyperlink{struct__Eina__List}{Eina\_List}}\ *list\ =\ NULL;}
\DoxyCodeLine{\textcolor{keyword}{extern}\ \textcolor{keywordtype}{void}\ *my\_data;}
\DoxyCodeLine{}
\DoxyCodeLine{list\ =\ \mbox{\hyperlink{group__Eina__List__Group_ga625698a383dda8fc0db245a1c7608c49}{eina\_list\_append}}(list,\ my\_data);}

\end{DoxyCode}


\begin{DoxyWarning}{Warning}
{\ttfamily list} must be a pointer to the first element of the list(or NULL). 
\end{DoxyWarning}


References \mbox{\hyperlink{struct__Eina__List_a8de6c30516f67b8e6b1c97049b3edd05}{\+\_\+\+Eina\+\_\+\+List\+::accounting}}, \mbox{\hyperlink{struct__Eina__List_a043e22d601d3a0504f30255a43a25e7a}{\+\_\+\+Eina\+\_\+\+List\+::data}}, \mbox{\hyperlink{struct__Eina__List__Accounting_a31b43d26381e267e44f935688329e46a}{\+\_\+\+Eina\+\_\+\+List\+\_\+\+Accounting\+::last}}, \mbox{\hyperlink{struct__Eina__List_aa4ab38c660af0b7f905125e2fe206891}{\+\_\+\+Eina\+\_\+\+List\+::next}}, and \mbox{\hyperlink{struct__Eina__List_a8ab349e200404f6596222591d2de9f77}{\+\_\+\+Eina\+\_\+\+List\+::prev}}.



Referenced by \mbox{\hyperlink{group__Ecore__Con__Eet__Group_gacd0437282a3802e12e5644bdc211a057}{ecore\+\_\+con\+\_\+eet\+\_\+client\+\_\+connect\+\_\+callback\+\_\+add()}}, \mbox{\hyperlink{group__Ecore__Con__Eet__Group_ga222c319bce8c49db67609e6fefbe1b6f}{ecore\+\_\+con\+\_\+eet\+\_\+client\+\_\+disconnect\+\_\+callback\+\_\+add()}}, \mbox{\hyperlink{group__Ecore__Con__Eet__Group_ga539d115231fd6635f1adf7c2c12305eb}{ecore\+\_\+con\+\_\+eet\+\_\+server\+\_\+connect\+\_\+callback\+\_\+add()}}, \mbox{\hyperlink{group__Ecore__Con__Eet__Group_ga5ed03e13506b5f2f29b747b7f3d57bd4}{ecore\+\_\+con\+\_\+eet\+\_\+server\+\_\+disconnect\+\_\+callback\+\_\+add()}}, \mbox{\hyperlink{group__Ecore__Con__Lib__Group_ga25b58526055fd5bfa3166e6fe182b0fb}{ecore\+\_\+con\+\_\+lookup()}}, \mbox{\hyperlink{group__Ecore__Con__Socks__Group_ga8e05b07d5f20f8d1e87317090bc3a5c0}{ecore\+\_\+con\+\_\+socks4\+\_\+remote\+\_\+add()}}, \mbox{\hyperlink{group__Ecore__Con__Socks__Group_gaca49f4df380ef761111265ce95566a35}{ecore\+\_\+con\+\_\+socks5\+\_\+remote\+\_\+add()}}, \mbox{\hyperlink{group__Ecore__Con__SSL__Group_gad1ea485fd7af231d9b817ed5f58333b9}{ecore\+\_\+con\+\_\+ssl\+\_\+server\+\_\+cafile\+\_\+add()}}, \mbox{\hyperlink{group__Ecore__Con__SSL__Group_gaff32bd112f4176c27590b1a6e2411fde}{ecore\+\_\+con\+\_\+ssl\+\_\+server\+\_\+cert\+\_\+add()}}, \mbox{\hyperlink{group__Ecore__Con__SSL__Group_ga68afbea8704bb7f8bd457bc43062c328}{ecore\+\_\+con\+\_\+ssl\+\_\+server\+\_\+crl\+\_\+add()}}, \mbox{\hyperlink{group__Ecore__Con__SSL__Group_ga6a20fe4c9602bbe1c0ba8a930f5576e5}{ecore\+\_\+con\+\_\+ssl\+\_\+server\+\_\+privkey\+\_\+add()}}, \mbox{\hyperlink{group__Ecore__Con__Url__Group_gae8aba3432937e59e434ea31daf0963b8}{ecore\+\_\+con\+\_\+url\+\_\+additional\+\_\+header\+\_\+add()}}, \mbox{\hyperlink{group__Ecore__Con__Url__Group_ga79b613e890270cd3d29b3339674e7e90}{ecore\+\_\+con\+\_\+url\+\_\+cookies\+\_\+clear()}}, \mbox{\hyperlink{group__Ecore__Con__Url__Group_ga880664a2307acbbbddb1896b49d32a74}{ecore\+\_\+con\+\_\+url\+\_\+cookies\+\_\+file\+\_\+add()}}, \mbox{\hyperlink{group__Ecore__Con__Url__Group_ga8bc02b9db038f83cd0a972aa9750a0cb}{ecore\+\_\+con\+\_\+url\+\_\+cookies\+\_\+init()}}, \mbox{\hyperlink{group__Ecore__Con__Url__Group_gada110b082940f4ec8b16a2721a0bd9b5}{ecore\+\_\+con\+\_\+url\+\_\+cookies\+\_\+session\+\_\+clear()}}, \mbox{\hyperlink{group__Ecore__Con__Url__Group_ga71cce8e67deb5ea13d5f62d67d51ad9b}{ecore\+\_\+con\+\_\+url\+\_\+new()}}, \mbox{\hyperlink{group__Ecore__Drm2__Plane__Group_gabf0a8ec7c51abc9f8d2159bb4664e9fa}{ecore\+\_\+drm2\+\_\+plane\+\_\+assign()}}, \mbox{\hyperlink{group__Ecore__Drm2__Plane__Group_ga56a90884fb3cc93308b5028cad9e6fcc}{ecore\+\_\+drm2\+\_\+plane\+\_\+fb\+\_\+set()}}, \mbox{\hyperlink{group__Ecore__Drm2__Plane__Group_gaabcd3bad36e496ec5275b5e8f4e49055}{ecore\+\_\+drm2\+\_\+plane\+\_\+release()}}, \mbox{\hyperlink{group__Ecore__Drm__Device__Group_ga0c6bdd909fef2f525c562bd0d6636675}{ecore\+\_\+drm\+\_\+device\+\_\+find()}}, \mbox{\hyperlink{group__Ecore__Evas__Group_ga73f609f5aa459552527fc5775779e4da}{ecore\+\_\+evas\+\_\+aux\+\_\+hint\+\_\+add()}}, \mbox{\hyperlink{group__Ecore__Evas__Group_gae6f4137a8013a4a020191e629b54a24a}{ecore\+\_\+evas\+\_\+aux\+\_\+hints\+\_\+allowed\+\_\+get()}}, \mbox{\hyperlink{group__Ecore__Evas__Group_ga6695029935d93f64f422eaf6e7c85e62}{ecore\+\_\+evas\+\_\+ecore\+\_\+evas\+\_\+list\+\_\+get()}}, \mbox{\hyperlink{group__Ecore__Evas__Group_ga4d9b4d70abe58eccb34e89792d07847d}{ecore\+\_\+evas\+\_\+vnc\+\_\+start()}}, \mbox{\hyperlink{group__Ecore__FB__Group_gad63427b3b6a5f5edde226673d6e71f65}{ecore\+\_\+fb\+\_\+input\+\_\+device\+\_\+open()}}, \mbox{\hyperlink{group__Ecore__File__Group_ga2db5a6fe2780d5fa14109661ee4bac60}{ecore\+\_\+file\+\_\+app\+\_\+list()}}, \mbox{\hyperlink{group__Ecore__File__Group_ga2b26cf72e4c7370122359b45f866f73f}{ecore\+\_\+file\+\_\+download\+\_\+full()}}, \mbox{\hyperlink{group__Ecore__File__Group_gab7baa24c2abea205b4d1f92397f1bda0}{ecore\+\_\+file\+\_\+ls()}}, \mbox{\hyperlink{group__Ecore__Main__Loop__Group_gad4c3bd5fb81af093ce3d64f6f8331043}{ecore\+\_\+fork\+\_\+reset\+\_\+callback\+\_\+add()}}, \mbox{\hyperlink{group__Ecore__IMF__Context__Group_ga7e0ef28b49fbdc54c4657d88a139d5f5}{ecore\+\_\+imf\+\_\+context\+\_\+event\+\_\+callback\+\_\+add()}}, \mbox{\hyperlink{group__Ecore__IMF__Context__Group_ga13dbe7fdb90b3302988b31f9fa2700f4}{ecore\+\_\+imf\+\_\+context\+\_\+input\+\_\+panel\+\_\+event\+\_\+callback\+\_\+add()}}, \mbox{\hyperlink{group__Ecore__IPC__Server__Group_ga4314631af279786f7a3d3d043f96f8d4}{ecore\+\_\+ipc\+\_\+server\+\_\+add()}}, \mbox{\hyperlink{group__Ecore__IPC__Server__Group_gae7048746096a322f343f5499c8892c88}{ecore\+\_\+ipc\+\_\+server\+\_\+connect()}}, \mbox{\hyperlink{group__Ecore__FD__Handler__Group_ga072d1719e94e56639abcd385f7cbc692}{ecore\+\_\+main\+\_\+fd\+\_\+handler\+\_\+prepare\+\_\+callback\+\_\+set()}}, \mbox{\hyperlink{group__Ecore__Thread__Group_ga941fa6f0313a6fe551f5d80e2a012bba}{ecore\+\_\+thread\+\_\+feedback\+\_\+run()}}, \mbox{\hyperlink{group__Ecore__Thread__Group_ga6857d9e5bd717ae3d8417b39ec585c3f}{ecore\+\_\+thread\+\_\+run()}}, \mbox{\hyperlink{group__Ecore__Wl2__Dnd__Group_ga6d82480fec6a1c706c226d9761715018}{ecore\+\_\+wl2\+\_\+offer\+\_\+receive()}}, \mbox{\hyperlink{group__Ecore__Wl2__Window__Group_ga75c4e1927993a49425b7666cc7e0d56e}{ecore\+\_\+wl2\+\_\+window\+\_\+aux\+\_\+hints\+\_\+supported\+\_\+get()}}, \mbox{\hyperlink{group__Edje__General__Group_ga3ad1025c24e7262cf489afb042171b43}{edje\+\_\+available\+\_\+modules\+\_\+get()}}, \mbox{\hyperlink{Edje__Edit_8h_a2e726dcd3721891ad9b4e0719c3df09e}{edje\+\_\+edit\+\_\+color\+\_\+class\+\_\+add()}}, \mbox{\hyperlink{Edje__Edit_8h_a9f0b94bfa6943f28329fe525f5150c3f}{edje\+\_\+edit\+\_\+color\+\_\+classes\+\_\+list\+\_\+get()}}, \mbox{\hyperlink{Edje__Edit_8h_a62d4b934de8485bf7ac4d20c32134073}{edje\+\_\+edit\+\_\+data\+\_\+list\+\_\+get()}}, \mbox{\hyperlink{Edje__Edit_8h_af883753d45e5e593ab868e0ccb9ca556}{edje\+\_\+edit\+\_\+externals\+\_\+list\+\_\+get()}}, \mbox{\hyperlink{Edje__Edit_8h_a898c821cfc81d6279450322f98d89994}{edje\+\_\+edit\+\_\+fonts\+\_\+list\+\_\+get()}}, \mbox{\hyperlink{Edje__Edit_8h_a4fc3c8d872d5bffd2af00813a6136b9d}{edje\+\_\+edit\+\_\+group\+\_\+aliases\+\_\+get()}}, \mbox{\hyperlink{Edje__Edit_8h_a52b061c3b5068a7aa549e2f34a9a3834}{edje\+\_\+edit\+\_\+group\+\_\+data\+\_\+list\+\_\+get()}}, \mbox{\hyperlink{Edje__Edit_8h_a595cd0138a6ab1b842f3a79eb7ebc79b}{edje\+\_\+edit\+\_\+image\+\_\+set\+\_\+image\+\_\+add()}}, \mbox{\hyperlink{Edje__Edit_8h_a8c6a7d6565fc1b7cab640cf1bf1a75ce}{edje\+\_\+edit\+\_\+image\+\_\+set\+\_\+images\+\_\+list\+\_\+get()}}, \mbox{\hyperlink{Edje__Edit_8h_a340fbfc01fa91dc7015ae889b629f83f}{edje\+\_\+edit\+\_\+image\+\_\+set\+\_\+list\+\_\+get()}}, \mbox{\hyperlink{Edje__Edit_8h_aaf92a91def6b82c90aeac13d7e1bf928}{edje\+\_\+edit\+\_\+images\+\_\+list\+\_\+get()}}, \mbox{\hyperlink{Edje__Edit_8h_a5fc44b1f806947ae5d4f281c8c802b1f}{edje\+\_\+edit\+\_\+part\+\_\+items\+\_\+list\+\_\+get()}}, \mbox{\hyperlink{Edje__Edit_8h_a1046468963e441aebb83a4bbdc1ee138}{edje\+\_\+edit\+\_\+part\+\_\+states\+\_\+list\+\_\+get()}}, \mbox{\hyperlink{Edje__Edit_8h_ad51f801812349c4fe1ef8366c7289cb3}{edje\+\_\+edit\+\_\+parts\+\_\+list\+\_\+get()}}, \mbox{\hyperlink{Edje__Edit_8h_a63544bfcf51e96d95ad35f75cec04af0}{edje\+\_\+edit\+\_\+program\+\_\+after\+\_\+add()}}, \mbox{\hyperlink{Edje__Edit_8h_a2a3291d483eba9b1a308f23ca2b5e76f}{edje\+\_\+edit\+\_\+program\+\_\+after\+\_\+insert\+\_\+at()}}, \mbox{\hyperlink{Edje__Edit_8h_ab5ca67139993bde51f9ea03fdcbe3990}{edje\+\_\+edit\+\_\+program\+\_\+target\+\_\+add()}}, \mbox{\hyperlink{Edje__Edit_8h_a432140317bbd3d29e0eee5c209cd99d8}{edje\+\_\+edit\+\_\+program\+\_\+target\+\_\+insert\+\_\+at()}}, \mbox{\hyperlink{Edje__Edit_8h_a74769eaa101d84937672ddf5f24a722a}{edje\+\_\+edit\+\_\+programs\+\_\+list\+\_\+get()}}, \mbox{\hyperlink{Edje__Edit_8h_adda577bf9ec7f0f3927bc133c1a681d9}{edje\+\_\+edit\+\_\+size\+\_\+class\+\_\+add()}}, \mbox{\hyperlink{Edje__Edit_8h_aa31fc157105a2bd9f8a7f0754a7cafbc}{edje\+\_\+edit\+\_\+size\+\_\+classes\+\_\+list\+\_\+get()}}, \mbox{\hyperlink{Edje__Edit_8h_a9bf1ac842801729923afe5d30e4f0515}{edje\+\_\+edit\+\_\+sound\+\_\+samples\+\_\+list\+\_\+get()}}, \mbox{\hyperlink{Edje__Edit_8h_ad678712cc7fd62f9fd9539338cebc413}{edje\+\_\+edit\+\_\+sound\+\_\+tones\+\_\+list\+\_\+get()}}, \mbox{\hyperlink{Edje__Edit_8h_a83a788f221633346b49376c06c1c716a}{edje\+\_\+edit\+\_\+state\+\_\+add()}}, \mbox{\hyperlink{Edje__Edit_8h_abf49538eaacf3cb1d8b47620c055a417}{edje\+\_\+edit\+\_\+state\+\_\+external\+\_\+param\+\_\+set()}}, \mbox{\hyperlink{Edje__Edit_8h_a8bbabbcba7f76c640044a4f3c10cf9c7}{edje\+\_\+edit\+\_\+state\+\_\+tweens\+\_\+list\+\_\+get()}}, \mbox{\hyperlink{Edje__Edit_8h_ae51e4a6c3a105e5e27fcaac19e46e930}{edje\+\_\+edit\+\_\+style\+\_\+add()}}, \mbox{\hyperlink{Edje__Edit_8h_ac4df8dca34ca0658caeedf1b20d00882}{edje\+\_\+edit\+\_\+style\+\_\+tag\+\_\+add()}}, \mbox{\hyperlink{Edje__Edit_8h_a02bde017b18d43c658f7215245c30562}{edje\+\_\+edit\+\_\+style\+\_\+tags\+\_\+list\+\_\+get()}}, \mbox{\hyperlink{Edje__Edit_8h_a7473a5516a2402d17a581ad6434bef39}{edje\+\_\+edit\+\_\+styles\+\_\+list\+\_\+get()}}, \mbox{\hyperlink{Edje__Edit_8h_a98624b038650e3d7e9458383d94796fa}{edje\+\_\+edit\+\_\+text\+\_\+class\+\_\+add()}}, \mbox{\hyperlink{Edje__Edit_8h_a5df38cafd4495b5eeecbfdd0531ac805}{edje\+\_\+edit\+\_\+text\+\_\+classes\+\_\+list\+\_\+get()}}, \mbox{\hyperlink{Edje__Edit_8h_af81865f31d04847d5fd26f19be815d04}{edje\+\_\+edit\+\_\+vectors\+\_\+list\+\_\+get()}}, \mbox{\hyperlink{group__Edje__Object__File_ga0c33b9b3c7d5793aa4fc2f83f2976735}{edje\+\_\+mmap\+\_\+collection\+\_\+list()}}, \mbox{\hyperlink{group__Edje__Object__File_ga73184b169c80006c15050d8638886517}{edje\+\_\+mmap\+\_\+color\+\_\+class\+\_\+used\+\_\+list()}}, \mbox{\hyperlink{group__Edje__Object__File_ga8d44d75ddf833e86e2dc54d81e17e9d5}{edje\+\_\+mmap\+\_\+group\+\_\+exists()}}, \mbox{\hyperlink{group__Edje__Object__Part_gad4c941720f21a09944811f30abcf44a3}{edje\+\_\+object\+\_\+access\+\_\+part\+\_\+list\+\_\+get()}}, \mbox{\hyperlink{group__Edje__Perspective_ga0087812fb067751f8b3ce1581575cafc}{edje\+\_\+object\+\_\+perspective\+\_\+set()}}, \mbox{\hyperlink{group__Edje__Object__Group_ga1ad7f27d53b1ce9c8f3e787d2121c456}{edje\+\_\+object\+\_\+text\+\_\+insert\+\_\+filter\+\_\+callback\+\_\+add()}}, \mbox{\hyperlink{group__Edje__Object__Group_gab4ef8cf524d9c4fd449eb5fd7b7bcab2}{edje\+\_\+object\+\_\+text\+\_\+markup\+\_\+filter\+\_\+callback\+\_\+add()}}, \mbox{\hyperlink{group__Eet__Data__Group_gac1fe86198291a7acb6642053301f317f}{eet\+\_\+eina\+\_\+stream\+\_\+data\+\_\+descriptor\+\_\+class\+\_\+set()}}, \mbox{\hyperlink{group__Eet__Node__Group_gac2f62c3d61bcbbddc79a294bb02b2bf2}{eet\+\_\+node\+\_\+hash\+\_\+new()}}, \mbox{\hyperlink{group__Eet__Node__Group_gaacd72cb83bc6078a2a2654e824da15f1}{eet\+\_\+node\+\_\+list\+\_\+append()}}, \mbox{\hyperlink{group__Eeze__Disk_ga45173ebbd5c0861b57a433bc67d9f4b2}{eeze\+\_\+disk\+\_\+eject()}}, \mbox{\hyperlink{group__Eeze__Disk_ga629653a78f2a7e9a9996d4f346dbcc16}{eeze\+\_\+disk\+\_\+mount()}}, \mbox{\hyperlink{group__Eeze__Disk_ga5c147ad9c1d2dc4dad04c2045a9dd1f2}{eeze\+\_\+disk\+\_\+new()}}, \mbox{\hyperlink{group__Eeze__Disk_ga4f86f4abef7200b5b3696d0461f43498}{eeze\+\_\+disk\+\_\+new\+\_\+from\+\_\+mount()}}, \mbox{\hyperlink{group__Eeze__Disk_gae3b4fe79fad40e303ad649e404e03245}{eeze\+\_\+disk\+\_\+unmount()}}, \mbox{\hyperlink{group__Eeze__Net_gae5571ef4f00ee346c89f3a9cf7a1657f}{eeze\+\_\+net\+\_\+list()}}, \mbox{\hyperlink{group__Eeze__Find_gadd4c62b00f1105d6df3004410280bafd}{eeze\+\_\+udev\+\_\+find\+\_\+by\+\_\+filter()}}, \mbox{\hyperlink{group__Eeze__Find_ga639c3968898038d64e4d63f50f534e4c}{eeze\+\_\+udev\+\_\+find\+\_\+by\+\_\+subsystem\+\_\+sysname()}}, \mbox{\hyperlink{group__Eeze__Find_gac46459de0637d19c278610c30f1b340d}{eeze\+\_\+udev\+\_\+find\+\_\+by\+\_\+sysattr()}}, \mbox{\hyperlink{group__Eeze__Find_ga67a6541cdde2dd809c8d99d20b4e59e8}{eeze\+\_\+udev\+\_\+find\+\_\+by\+\_\+type()}}, \mbox{\hyperlink{group__Eeze__Syspath_ga8e2d560bc2247bfc780247c849f25768}{eeze\+\_\+udev\+\_\+syspath\+\_\+get\+\_\+parents()}}, \mbox{\hyperlink{group__Eeze__Syspath_gad97c4fb6e8496dc3a82b1366edaf9525}{eeze\+\_\+udev\+\_\+syspath\+\_\+get\+\_\+sysattr\+\_\+list()}}, \mbox{\hyperlink{group__Efreet__Desktop_ga096d2e88f5f0d76d5b5406682e31d6a4}{efreet\+\_\+desktop\+\_\+category\+\_\+add()}}, \mbox{\hyperlink{group__Efreet__Desktop_ga807eaf40bad0618d94f4f1b711609fdf}{efreet\+\_\+desktop\+\_\+command\+\_\+local\+\_\+get()}}, \mbox{\hyperlink{group__Efreet__Desktop_ga44409171379c91f1b5d4fe1e29d873a5}{efreet\+\_\+desktop\+\_\+command\+\_\+progress\+\_\+get()}}, \mbox{\hyperlink{group__Efreet__Desktop_ga35eae47e5bad0899c8da84ac882ef89a}{efreet\+\_\+desktop\+\_\+string\+\_\+list\+\_\+parse()}}, \mbox{\hyperlink{group__Efreet__Desktop_ga6411cc4272b9cc9c29f7359c1bd1454e}{efreet\+\_\+desktop\+\_\+type\+\_\+add()}}, \mbox{\hyperlink{group__Efreet__Icon_ga8da07fcb2dac1faa76e8df32bab82991}{efreet\+\_\+icon\+\_\+list\+\_\+find()}}, \mbox{\hyperlink{group__Efreet__Menu_gad623606893391e7c32ff4f39fae0aab1}{efreet\+\_\+menu\+\_\+desktop\+\_\+insert()}}, \mbox{\hyperlink{group__Efreet__Menu_gafdc0116e02086b5698fcc7e400bcc15c}{efreet\+\_\+menu\+\_\+kde\+\_\+legacy\+\_\+init()}}, \mbox{\hyperlink{group__Efreet__Mime_gace07bac3ddeff549bb5387a9f255135f}{efreet\+\_\+mime\+\_\+type\+\_\+icon\+\_\+get()}}, \mbox{\hyperlink{group__Efreet__Utils_ga571d4d09c9517237ce7862a657e9ef2f}{efreet\+\_\+util\+\_\+desktop\+\_\+categories\+\_\+list()}}, \mbox{\hyperlink{group__Efreet__Utils_ga73785f895c0bfe8e6a89918c5ae2c215}{efreet\+\_\+util\+\_\+desktop\+\_\+environments\+\_\+list()}}, \mbox{\hyperlink{group__Efreet__Utils_gaa046fa3938f7dbfb515757a63168f0c8}{efreet\+\_\+util\+\_\+desktop\+\_\+exec\+\_\+glob\+\_\+list()}}, \mbox{\hyperlink{group__Eina__Benchmark__Group_ga0375144e67c0f4ca6f687236bc845cfe}{eina\+\_\+benchmark\+\_\+run()}}, \mbox{\hyperlink{group__Eina__Debug_ga83f8611108de835877081c5a9fd6ed14}{eina\+\_\+debug\+\_\+opcodes\+\_\+register()}}, \mbox{\hyperlink{group__Eina__File__Group_ga64a3123b8e0b9698d30611bacd548b9e}{eina\+\_\+file\+\_\+flush()}}, \mbox{\hyperlink{group__Eina__Hash__Group_gac38e4adc3089b2ee5356bdae0426db85}{eina\+\_\+hash\+\_\+list\+\_\+append()}}, \mbox{\hyperlink{group__Eina__Hash__Group_ga52d2c5ce10d6d3ee7f52679ad327d851}{eina\+\_\+hash\+\_\+list\+\_\+direct\+\_\+append()}}, \mbox{\hyperlink{group__Eina__Hash__Group_ga8befc830ed224bb9a98b64e79e1ebaee}{eina\+\_\+hash\+\_\+list\+\_\+direct\+\_\+prepend()}}, \mbox{\hyperlink{group__Eina__Hash__Group_gad84f97a2335a693aa8b9507b9a4a7c42}{eina\+\_\+hash\+\_\+list\+\_\+prepend()}}, \mbox{\hyperlink{group__Eina__List__Group_ga2cc230dec347eaf4dee2e77637063ba5}{eina\+\_\+list\+\_\+append\+\_\+relative()}}, \mbox{\hyperlink{group__Eina__List__Group_gaaf5cc0fb74a42e16757e5523bacdee53}{eina\+\_\+list\+\_\+append\+\_\+relative\+\_\+list()}}, \mbox{\hyperlink{group__Eina__List__Group_gabffc00a6b64c1574d803e3663ca06e62}{eina\+\_\+list\+\_\+clone()}}, \mbox{\hyperlink{group__Eina__List__Group_ga52354c2503d1cf8e6e975bc245e3450c}{eina\+\_\+list\+\_\+move()}}, \mbox{\hyperlink{group__Eina__List__Group_ga18a4ae97ee93cef1f7ea583b57d50d21}{eina\+\_\+list\+\_\+move\+\_\+list()}}, \mbox{\hyperlink{group__Eina__List__Group_gaa47bc3ae29d8fd946105560b94fc242c}{eina\+\_\+list\+\_\+sorted\+\_\+insert()}}, \mbox{\hyperlink{group__Eina__Iterator__Group_gad8e165710ece870e6139ab02c6705235}{eina\+\_\+multi\+\_\+iterator\+\_\+internal\+\_\+new()}}, \mbox{\hyperlink{group__Eina__Rectangle__Group_gaf334edef10f5a4192d1ec2860f6c423b}{eina\+\_\+rectangle\+\_\+pool\+\_\+new()}}, \mbox{\hyperlink{group__Eldbus__Connection_ga118e1c20600b6bdbc9d6471a2089b267}{eldbus\+\_\+connection\+\_\+event\+\_\+callback\+\_\+del()}}, \mbox{\hyperlink{group__Eldbus__Basic_gac3c3b6f6b54ed74cfd7cd9b0ab5cfde1}{eldbus\+\_\+name\+\_\+owner\+\_\+changed\+\_\+callback\+\_\+del()}}, \mbox{\hyperlink{group__Eldbus__Object__Mapper_ga3634ea4bcd8faab23bf5774ee316a428}{eldbus\+\_\+object\+\_\+event\+\_\+callback\+\_\+del()}}, \mbox{\hyperlink{group__Eldbus__Object__Mapper_gad5c4e6619f3bbf93d94fee4de764d72e}{eldbus\+\_\+object\+\_\+signal\+\_\+handler\+\_\+add()}}, \mbox{\hyperlink{group__Eldbus__Proxy_gaa0c972c94ccaf39b0ca3586c5d549af4}{eldbus\+\_\+proxy\+\_\+event\+\_\+callback\+\_\+del()}}, \mbox{\hyperlink{group__Eldbus__Proxy_ga3ec2ab94891c39548b44135ebe275b9f}{eldbus\+\_\+proxy\+\_\+signal\+\_\+handler\+\_\+add()}}, \mbox{\hyperlink{group__Elm__Color__Class__Group_gaf9e0a25a2cd3e57d3ff211b62d763ba8}{elm\+\_\+color\+\_\+class\+\_\+editor\+\_\+add()}}, \mbox{\hyperlink{group__Elm__Color__Class__Group_ga8907766e782fdb43c916f322e7e543d2}{elm\+\_\+color\+\_\+class\+\_\+util\+\_\+edje\+\_\+file\+\_\+list()}}, \mbox{\hyperlink{group__Elm__Profile_gae65dd9ed2cd9a110163eb3bf15729e66}{elm\+\_\+config\+\_\+profile\+\_\+derived\+\_\+add()}}, \mbox{\hyperlink{group__CopyPaste_ga0ab7b2197c6c0f7c0806ef9842e25995}{elm\+\_\+drag\+\_\+item\+\_\+container\+\_\+add()}}, \mbox{\hyperlink{group__CopyPaste_ga250bae4f6f8e9195cefae317b180bd43}{elm\+\_\+drop\+\_\+item\+\_\+container\+\_\+add()}}, \mbox{\hyperlink{group__Elm__Layout_ga9e9c46f6b8dc9c554f6f535ea758b3da}{elm\+\_\+layout\+\_\+content\+\_\+swallow\+\_\+list\+\_\+get()}}, \mbox{\hyperlink{group__Elm__Prefs_gafeffd07fade957a5c92e217e4436de99}{elm\+\_\+prefs\+\_\+data\+\_\+event\+\_\+callback\+\_\+del()}}, \mbox{\hyperlink{group__Elm__General_gacf77b0ccf1837770be2d485aab7e2ca8}{elm\+\_\+quicklaunch\+\_\+exe\+\_\+path\+\_\+get()}}, \mbox{\hyperlink{group__Elm__Radio__Group_gaa597f8aaad338c0221dada51ac7e110f}{elm\+\_\+radio\+\_\+group\+\_\+add()}}, \mbox{\hyperlink{group__Elm__Theme_ga4edbb2396ddde3ed3b73641c437d128f}{elm\+\_\+theme\+\_\+copy()}}, \mbox{\hyperlink{group__Elm__Theme_gaadae92d4bdb22ab71be5ac81c24f1d39}{elm\+\_\+theme\+\_\+extension\+\_\+list\+\_\+get()}}, \mbox{\hyperlink{group__Elm__Theme_gab2859df93b40158af65d70171466b1de}{elm\+\_\+theme\+\_\+list\+\_\+get()}}, \mbox{\hyperlink{group__Elm__Theme_ga02474d8fd11ce6d00b9790c971509f5b}{elm\+\_\+theme\+\_\+name\+\_\+available\+\_\+list\+\_\+new()}}, \mbox{\hyperlink{group__Elm__Theme_ga90e92e6dbb1b51a3371ab9cd093083b2}{elm\+\_\+theme\+\_\+overlay\+\_\+list\+\_\+get()}}, \mbox{\hyperlink{group__Elm__Theme_ga31898dcc7f8c5b7414144ba58c8c9b5c}{elm\+\_\+theme\+\_\+ref\+\_\+set()}}, \mbox{\hyperlink{group__Elm__Transit_ga4e6f191c415b31c0f3a19505e144e390}{elm\+\_\+transit\+\_\+chain\+\_\+transit\+\_\+add()}}, \mbox{\hyperlink{group__Elm__Transit_gab4e46606ff9cf54591289bffe193c03b}{elm\+\_\+transit\+\_\+object\+\_\+add()}}, \mbox{\hyperlink{group__Elua_ga1c0e7c790bcfb9f0e9b19295d6e953f4}{elua\+\_\+state\+\_\+include\+\_\+path\+\_\+add()}}, \mbox{\hyperlink{group__Elua_gafde1f73d35f2521d3812b72b2c3542c1}{elua\+\_\+util\+\_\+require()}}, \mbox{\hyperlink{group__Eolian_ga5f3fdcb53e7caaca409b444a02d58f7d}{eolian\+\_\+aux\+\_\+class\+\_\+callables\+\_\+get()}}, \mbox{\hyperlink{group__Eolian_gab684e19f341e44566e2edd412b755a44}{eolian\+\_\+aux\+\_\+state\+\_\+class\+\_\+children\+\_\+find()}}, \mbox{\hyperlink{group__Ethumb__Client__Setup_ga3c7614c135bfce086a7ab8dc1f7bbc20}{ethumb\+\_\+client\+\_\+ethumb\+\_\+setup()}}, \mbox{\hyperlink{group__Ethumb__Client__Basics_ga55fad34988a1cde2962141e25c5b26c5}{ethumb\+\_\+client\+\_\+generate\+\_\+cancel()}}, \mbox{\hyperlink{group__Ethumb__Client__Basics_gab69c8658057776f0d103237164737753}{ethumb\+\_\+client\+\_\+thumb\+\_\+exists()}}, \mbox{\hyperlink{group__Evas__Event__Feeding__Group_gad67f542e92ee88f4bed25bc20a452130}{evas\+\_\+device\+\_\+add\+\_\+full()}}, \mbox{\hyperlink{group__Evas__Font__Path__Group_gac56c67c9bad8e9548d2aa35134387b48}{evas\+\_\+font\+\_\+path\+\_\+global\+\_\+append()}}, \mbox{\hyperlink{group__Evas__Object__Box__Group_gad70d6bbbbf4a0e093010a9a23c3a32e9}{evas\+\_\+object\+\_\+box\+\_\+children\+\_\+get()}}, \mbox{\hyperlink{group__Evas__Object__Group_ga651f25b33a8167880ef6e90be03dca5d}{evas\+\_\+object\+\_\+clipees\+\_\+get()}}, \mbox{\hyperlink{group__Evas__Object__Image_ga729dbdcf7d1b5e266df32e9dfde798b1}{evas\+\_\+object\+\_\+image\+\_\+video\+\_\+surface\+\_\+set()}}, \mbox{\hyperlink{group__Evas__Smart__Object__Group_ga1b606da417ca51d77b2fcd269de9b409}{evas\+\_\+object\+\_\+smart\+\_\+members\+\_\+get()}}, \mbox{\hyperlink{group__Evas__Object__Textblock__Group_ga21bafffbb4dbf4d449d0d2d2cffd2d36}{evas\+\_\+object\+\_\+textblock\+\_\+cursor\+\_\+new()}}, \mbox{\hyperlink{group__Evas__Object__Textblock__Group_ga0ab40ce72ebc7de3b861812e34a57358}{evas\+\_\+textblock\+\_\+cursor\+\_\+range\+\_\+formats\+\_\+get()}}, and \mbox{\hyperlink{group__Evas__Object__Textblock__Group_ga4f65a8e41ce3e4b4e59264ddde80b6fe}{evas\+\_\+textblock\+\_\+cursor\+\_\+range\+\_\+simple\+\_\+geometry\+\_\+get()}}.

\mbox{\Hypertarget{group__Eina__List__Group_ga4a2716e8fba1c3f60e3b112caef26fb9}\label{group__Eina__List__Group_ga4a2716e8fba1c3f60e3b112caef26fb9}} 
\index{List@{List}!eina\_list\_prepend@{eina\_list\_prepend}}
\index{eina\_list\_prepend@{eina\_list\_prepend}!List@{List}}
\doxysubsubsection{\texorpdfstring{eina\_list\_prepend()}{eina\_list\_prepend()}}
{\footnotesize\ttfamily \mbox{\hyperlink{group__Eina__Types__Group_ga6ac08753ba12bc9c7a0390cf67868f4f}{EINA\+\_\+\+API}} \mbox{\hyperlink{group__Eina__List__Group_ga3295e1210efea1fb0fd6acbf3cbc1f29}{Eina\+\_\+\+List}} $\ast$ eina\+\_\+list\+\_\+prepend (\begin{DoxyParamCaption}\item[{\mbox{\hyperlink{group__Eina__List__Group_ga3295e1210efea1fb0fd6acbf3cbc1f29}{Eina\+\_\+\+List}} $\ast$}]{list,  }\item[{const void $\ast$}]{data }\end{DoxyParamCaption})}



Prepends the given data to the given linked list. 


\begin{DoxyParams}[1]{Parameters}
\mbox{\texttt{ in,out}}  & {\em list} & The given list. \\
\hline
\mbox{\texttt{ in}}  & {\em data} & The data to prepend. \\
\hline
\end{DoxyParams}
\begin{DoxyReturn}{Returns}
A list pointer, or {\ttfamily NULL} on error.
\end{DoxyReturn}
This function prepends {\ttfamily data} to {\ttfamily list}. If {\ttfamily list} is {\ttfamily NULL}, a new list is returned. On success, a new list pointer that should be used in place of the one given to this function is returned. Otherwise, the old pointer is returned.

The following example code demonstrates how to ensure that the given data has been successfully prepended.

Example\+: 
\begin{DoxyCode}{0}
\DoxyCodeLine{\mbox{\hyperlink{struct__Eina__List}{Eina\_List}}\ *list\ =\ NULL;}
\DoxyCodeLine{\textcolor{keyword}{extern}\ \textcolor{keywordtype}{void}\ *my\_data;}
\DoxyCodeLine{}
\DoxyCodeLine{list\ =\ \mbox{\hyperlink{group__Eina__List__Group_ga4a2716e8fba1c3f60e3b112caef26fb9}{eina\_list\_prepend}}(list,\ my\_data);}

\end{DoxyCode}


\begin{DoxyWarning}{Warning}
{\ttfamily list} must be a pointer to the first element of the list. 
\end{DoxyWarning}


References \mbox{\hyperlink{struct__Eina__List_a043e22d601d3a0504f30255a43a25e7a}{\+\_\+\+Eina\+\_\+\+List\+::data}}, \mbox{\hyperlink{struct__Eina__List_aa4ab38c660af0b7f905125e2fe206891}{\+\_\+\+Eina\+\_\+\+List\+::next}}, and \mbox{\hyperlink{struct__Eina__List_a8ab349e200404f6596222591d2de9f77}{\+\_\+\+Eina\+\_\+\+List\+::prev}}.



Referenced by \mbox{\hyperlink{Edje__Edit_8h_a3f65037e6d6db37bcb19dd49f721f9f9}{edje\+\_\+edit\+\_\+group\+\_\+add()}}, \mbox{\hyperlink{group__Eet__Node__Group_gab62c65ad6dbcb8a9851ab2893417e08a}{eet\+\_\+node\+\_\+struct\+\_\+child\+\_\+new()}}, \mbox{\hyperlink{group__Eeze__Find_ga8e785cff03693ea31d7340fdc5ba1f65}{eeze\+\_\+udev\+\_\+find\+\_\+similar\+\_\+from\+\_\+syspath()}}, \mbox{\hyperlink{group__Efreet__Icon_ga3bef02386e63f639a6977b733383c91f}{efreet\+\_\+icon\+\_\+extension\+\_\+add()}}, \mbox{\hyperlink{group__Eina__Hash__Group_ga8befc830ed224bb9a98b64e79e1ebaee}{eina\+\_\+hash\+\_\+list\+\_\+direct\+\_\+prepend()}}, \mbox{\hyperlink{group__Eina__Hash__Group_gad84f97a2335a693aa8b9507b9a4a7c42}{eina\+\_\+hash\+\_\+list\+\_\+prepend()}}, \mbox{\hyperlink{group__Eina__List__Group_ga6714b4c62fe6022f6bfe526bb5449b54}{eina\+\_\+list\+\_\+prepend\+\_\+relative()}}, \mbox{\hyperlink{group__Eina__List__Group_gac2ae5d9426f552b9f70eb573582b491c}{eina\+\_\+list\+\_\+prepend\+\_\+relative\+\_\+list()}}, \mbox{\hyperlink{group__Eina__List__Group_gaba7131bd0092c4fce38930e6bf07da3c}{eina\+\_\+list\+\_\+reverse\+\_\+clone()}}, \mbox{\hyperlink{group__Evas__Font__Path__Group_gad7f50923dc4b94bca74484f9569189f5}{evas\+\_\+font\+\_\+path\+\_\+global\+\_\+prepend()}}, \mbox{\hyperlink{group__Evas__GL_ga73e30eab669dbeee95c8e87bcb7deb51}{evas\+\_\+gl\+\_\+context\+\_\+version\+\_\+create()}}, \mbox{\hyperlink{group__Evas__GL_ga5a217780cca555ef74eec463896a8079}{evas\+\_\+gl\+\_\+pbuffer\+\_\+surface\+\_\+create()}}, \mbox{\hyperlink{group__Evas__GL_ga5735e545e25ee3afe674b60bea6651e6}{evas\+\_\+gl\+\_\+surface\+\_\+create()}}, \mbox{\hyperlink{group__Evas__Canvas__Events_ga5a9c8cebea1fb45ad7e13a319bee92a8}{evas\+\_\+post\+\_\+event\+\_\+callback\+\_\+push()}}, and \mbox{\hyperlink{group__Evas__Object__Textblock__Group_gaa090505c50af34ffde0973ccfa9f422e}{evas\+\_\+textblock\+\_\+node\+\_\+format\+\_\+remove\+\_\+pair()}}.

\mbox{\Hypertarget{group__Eina__List__Group_ga2cc230dec347eaf4dee2e77637063ba5}\label{group__Eina__List__Group_ga2cc230dec347eaf4dee2e77637063ba5}} 
\index{List@{List}!eina\_list\_append\_relative@{eina\_list\_append\_relative}}
\index{eina\_list\_append\_relative@{eina\_list\_append\_relative}!List@{List}}
\doxysubsubsection{\texorpdfstring{eina\_list\_append\_relative()}{eina\_list\_append\_relative()}}
{\footnotesize\ttfamily \mbox{\hyperlink{group__Eina__Types__Group_ga6ac08753ba12bc9c7a0390cf67868f4f}{EINA\+\_\+\+API}} \mbox{\hyperlink{group__Eina__List__Group_ga3295e1210efea1fb0fd6acbf3cbc1f29}{Eina\+\_\+\+List}} $\ast$ eina\+\_\+list\+\_\+append\+\_\+relative (\begin{DoxyParamCaption}\item[{\mbox{\hyperlink{group__Eina__List__Group_ga3295e1210efea1fb0fd6acbf3cbc1f29}{Eina\+\_\+\+List}} $\ast$}]{list,  }\item[{const void $\ast$}]{data,  }\item[{const void $\ast$}]{relative }\end{DoxyParamCaption})}



Inserts the given data into the given linked list after the specified data. 


\begin{DoxyParams}[1]{Parameters}
\mbox{\texttt{ in,out}}  & {\em list} & The given linked list. \\
\hline
\mbox{\texttt{ in}}  & {\em data} & The data to insert. \\
\hline
\mbox{\texttt{ in}}  & {\em relative} & The data to insert after. \\
\hline
\end{DoxyParams}
\begin{DoxyReturn}{Returns}
A list pointer, or {\ttfamily NULL} on error.
\end{DoxyReturn}
This function inserts {\ttfamily data} into {\ttfamily list} after {\ttfamily relative}. If {\ttfamily relative} is not in the list, {\ttfamily data} is appended to the list. If {\ttfamily list} is {\ttfamily NULL}, a new list is returned. If there are multiple instances of {\ttfamily relative} in the list, {\ttfamily data} is inserted after the first instance. On success, a new list pointer that should be used in place of the one given to this function is returned. Otherwise, the old pointer is returned.

The following example code demonstrates how to ensure that the given data has been successfully inserted.


\begin{DoxyCode}{0}
\DoxyCodeLine{\mbox{\hyperlink{struct__Eina__List}{Eina\_List}}\ *list\ =\ NULL;}
\DoxyCodeLine{\textcolor{keyword}{extern}\ \textcolor{keywordtype}{void}\ *my\_data;}
\DoxyCodeLine{\textcolor{keyword}{extern}\ \textcolor{keywordtype}{void}\ *relative\_member;}
\DoxyCodeLine{}
\DoxyCodeLine{list\ =\ \mbox{\hyperlink{group__Eina__List__Group_ga625698a383dda8fc0db245a1c7608c49}{eina\_list\_append}}(list,\ relative\_member);}
\DoxyCodeLine{list\ =\ \mbox{\hyperlink{group__Eina__List__Group_ga2cc230dec347eaf4dee2e77637063ba5}{eina\_list\_append\_relative}}(list,\ my\_data,\ relative\_member);}

\end{DoxyCode}


\begin{DoxyWarning}{Warning}
{\ttfamily list} must be a pointer to the first element of the list. 
\end{DoxyWarning}


References \mbox{\hyperlink{group__Eina__List__Group_ga625698a383dda8fc0db245a1c7608c49}{eina\+\_\+list\+\_\+append()}}, \mbox{\hyperlink{group__Eina__List__Group_gaaf5cc0fb74a42e16757e5523bacdee53}{eina\+\_\+list\+\_\+append\+\_\+relative\+\_\+list()}}, and \mbox{\hyperlink{group__Eina__List__Group_gac6efafc19f526d916cdb9757240a8773}{EINA\+\_\+\+LIST\+\_\+\+FOREACH}}.



Referenced by \mbox{\hyperlink{group__Efreet__Menu_gad623606893391e7c32ff4f39fae0aab1}{efreet\+\_\+menu\+\_\+desktop\+\_\+insert()}}, and \mbox{\hyperlink{group__Elm__Focus_ga2b9658989f3db1d7cacd87f1a8bc53c2}{elm\+\_\+object\+\_\+focus\+\_\+custom\+\_\+chain\+\_\+append()}}.

\mbox{\Hypertarget{group__Eina__List__Group_gaaf5cc0fb74a42e16757e5523bacdee53}\label{group__Eina__List__Group_gaaf5cc0fb74a42e16757e5523bacdee53}} 
\index{List@{List}!eina\_list\_append\_relative\_list@{eina\_list\_append\_relative\_list}}
\index{eina\_list\_append\_relative\_list@{eina\_list\_append\_relative\_list}!List@{List}}
\doxysubsubsection{\texorpdfstring{eina\_list\_append\_relative\_list()}{eina\_list\_append\_relative\_list()}}
{\footnotesize\ttfamily \mbox{\hyperlink{group__Eina__Types__Group_ga6ac08753ba12bc9c7a0390cf67868f4f}{EINA\+\_\+\+API}} \mbox{\hyperlink{group__Eina__List__Group_ga3295e1210efea1fb0fd6acbf3cbc1f29}{Eina\+\_\+\+List}} $\ast$ eina\+\_\+list\+\_\+append\+\_\+relative\+\_\+list (\begin{DoxyParamCaption}\item[{\mbox{\hyperlink{group__Eina__List__Group_ga3295e1210efea1fb0fd6acbf3cbc1f29}{Eina\+\_\+\+List}} $\ast$}]{list,  }\item[{const void $\ast$}]{data,  }\item[{\mbox{\hyperlink{group__Eina__List__Group_ga3295e1210efea1fb0fd6acbf3cbc1f29}{Eina\+\_\+\+List}} $\ast$}]{relative }\end{DoxyParamCaption})}



Appends a list node to a linked list after the specified member. 


\begin{DoxyParams}[1]{Parameters}
\mbox{\texttt{ in,out}}  & {\em list} & The given linked list. \\
\hline
\mbox{\texttt{ in}}  & {\em data} & The data to insert. \\
\hline
\mbox{\texttt{ in}}  & {\em relative} & The list node to insert after. \\
\hline
\end{DoxyParams}
\begin{DoxyReturn}{Returns}
A list pointer, or {\ttfamily NULL} on error.
\end{DoxyReturn}
This function inserts {\ttfamily data} into {\ttfamily list} after the list node {\ttfamily relative}. If {\ttfamily list} or {\ttfamily relative} are {\ttfamily NULL}, {\ttfamily data} is just appended to {\ttfamily list} using \mbox{\hyperlink{group__Eina__List__Group_ga625698a383dda8fc0db245a1c7608c49}{eina\+\_\+list\+\_\+append()}}. If {\ttfamily list} is {\ttfamily NULL}, a new list is returned. If there are multiple instances of {\ttfamily relative} in the list, {\ttfamily data} is inserted after the first instance. On success, a new list pointer that should be used in place of the one given to this function is returned. Otherwise, the old pointer is returned.

\begin{DoxyWarning}{Warning}
{\ttfamily list} must be a pointer to the first element of the list. 
\end{DoxyWarning}


References \mbox{\hyperlink{struct__Eina__List_a8de6c30516f67b8e6b1c97049b3edd05}{\+\_\+\+Eina\+\_\+\+List\+::accounting}}, \mbox{\hyperlink{struct__Eina__List_a043e22d601d3a0504f30255a43a25e7a}{\+\_\+\+Eina\+\_\+\+List\+::data}}, \mbox{\hyperlink{group__Eina__List__Group_ga625698a383dda8fc0db245a1c7608c49}{eina\+\_\+list\+\_\+append()}}, \mbox{\hyperlink{struct__Eina__List__Accounting_a31b43d26381e267e44f935688329e46a}{\+\_\+\+Eina\+\_\+\+List\+\_\+\+Accounting\+::last}}, \mbox{\hyperlink{struct__Eina__List_aa4ab38c660af0b7f905125e2fe206891}{\+\_\+\+Eina\+\_\+\+List\+::next}}, and \mbox{\hyperlink{struct__Eina__List_a8ab349e200404f6596222591d2de9f77}{\+\_\+\+Eina\+\_\+\+List\+::prev}}.



Referenced by \mbox{\hyperlink{group__Eina__List__Group_ga2cc230dec347eaf4dee2e77637063ba5}{eina\+\_\+list\+\_\+append\+\_\+relative()}}, and \mbox{\hyperlink{group__Eina__List__Group_gaa47bc3ae29d8fd946105560b94fc242c}{eina\+\_\+list\+\_\+sorted\+\_\+insert()}}.

\mbox{\Hypertarget{group__Eina__List__Group_ga6714b4c62fe6022f6bfe526bb5449b54}\label{group__Eina__List__Group_ga6714b4c62fe6022f6bfe526bb5449b54}} 
\index{List@{List}!eina\_list\_prepend\_relative@{eina\_list\_prepend\_relative}}
\index{eina\_list\_prepend\_relative@{eina\_list\_prepend\_relative}!List@{List}}
\doxysubsubsection{\texorpdfstring{eina\_list\_prepend\_relative()}{eina\_list\_prepend\_relative()}}
{\footnotesize\ttfamily \mbox{\hyperlink{group__Eina__Types__Group_ga6ac08753ba12bc9c7a0390cf67868f4f}{EINA\+\_\+\+API}} \mbox{\hyperlink{group__Eina__List__Group_ga3295e1210efea1fb0fd6acbf3cbc1f29}{Eina\+\_\+\+List}} $\ast$ eina\+\_\+list\+\_\+prepend\+\_\+relative (\begin{DoxyParamCaption}\item[{\mbox{\hyperlink{group__Eina__List__Group_ga3295e1210efea1fb0fd6acbf3cbc1f29}{Eina\+\_\+\+List}} $\ast$}]{list,  }\item[{const void $\ast$}]{data,  }\item[{const void $\ast$}]{relative }\end{DoxyParamCaption})}



Prepends a data pointer to a linked list before the specified member. 


\begin{DoxyParams}[1]{Parameters}
\mbox{\texttt{ in,out}}  & {\em list} & The given linked list. \\
\hline
\mbox{\texttt{ in}}  & {\em data} & The data to insert. \\
\hline
\mbox{\texttt{ in}}  & {\em relative} & The member that data will be inserted before. \\
\hline
\end{DoxyParams}
\begin{DoxyReturn}{Returns}
A list pointer, or {\ttfamily NULL} on error.
\end{DoxyReturn}
This function inserts {\ttfamily data} to {\ttfamily list} before {\ttfamily relative}. If {\ttfamily relative} is not in the list, {\ttfamily data} is prepended to the list with \mbox{\hyperlink{group__Eina__List__Group_ga4a2716e8fba1c3f60e3b112caef26fb9}{eina\+\_\+list\+\_\+prepend()}}. If {\ttfamily list} is {\ttfamily NULL}, a new list is returned. If there are multiple instances of {\ttfamily relative} in the list, {\ttfamily data} is inserted before the first instance. On success, a new list pointer that should be used in place of the one given to this function is returned. Otherwise, the old pointer is returned.

The following code example demonstrates how to ensure that the given data has been successfully inserted.


\begin{DoxyCode}{0}
\DoxyCodeLine{\mbox{\hyperlink{struct__Eina__List}{Eina\_List}}\ *list\ =\ NULL;}
\DoxyCodeLine{\textcolor{keyword}{extern}\ \textcolor{keywordtype}{void}\ *my\_data;}
\DoxyCodeLine{\textcolor{keyword}{extern}\ \textcolor{keywordtype}{void}\ *relative\_member;}
\DoxyCodeLine{}
\DoxyCodeLine{list\ =\ \mbox{\hyperlink{group__Eina__List__Group_ga625698a383dda8fc0db245a1c7608c49}{eina\_list\_append}}(list,\ relative\_member);}
\DoxyCodeLine{list\ =\ \mbox{\hyperlink{group__Eina__List__Group_ga6714b4c62fe6022f6bfe526bb5449b54}{eina\_list\_prepend\_relative}}(list,\ my\_data,\ relative\_member);}

\end{DoxyCode}


\begin{DoxyWarning}{Warning}
{\ttfamily list} must be a pointer to the first element of the list. 
\end{DoxyWarning}


References \mbox{\hyperlink{group__Eina__List__Group_gac6efafc19f526d916cdb9757240a8773}{EINA\+\_\+\+LIST\+\_\+\+FOREACH}}, \mbox{\hyperlink{group__Eina__List__Group_ga4a2716e8fba1c3f60e3b112caef26fb9}{eina\+\_\+list\+\_\+prepend()}}, and \mbox{\hyperlink{group__Eina__List__Group_gac2ae5d9426f552b9f70eb573582b491c}{eina\+\_\+list\+\_\+prepend\+\_\+relative\+\_\+list()}}.



Referenced by \mbox{\hyperlink{group__Elm__Focus_ga0032b30a596ed1a4509c51ffa5d07e8c}{elm\+\_\+object\+\_\+focus\+\_\+custom\+\_\+chain\+\_\+prepend()}}.

\mbox{\Hypertarget{group__Eina__List__Group_gac2ae5d9426f552b9f70eb573582b491c}\label{group__Eina__List__Group_gac2ae5d9426f552b9f70eb573582b491c}} 
\index{List@{List}!eina\_list\_prepend\_relative\_list@{eina\_list\_prepend\_relative\_list}}
\index{eina\_list\_prepend\_relative\_list@{eina\_list\_prepend\_relative\_list}!List@{List}}
\doxysubsubsection{\texorpdfstring{eina\_list\_prepend\_relative\_list()}{eina\_list\_prepend\_relative\_list()}}
{\footnotesize\ttfamily \mbox{\hyperlink{group__Eina__Types__Group_ga6ac08753ba12bc9c7a0390cf67868f4f}{EINA\+\_\+\+API}} \mbox{\hyperlink{group__Eina__List__Group_ga3295e1210efea1fb0fd6acbf3cbc1f29}{Eina\+\_\+\+List}} $\ast$ eina\+\_\+list\+\_\+prepend\+\_\+relative\+\_\+list (\begin{DoxyParamCaption}\item[{\mbox{\hyperlink{group__Eina__List__Group_ga3295e1210efea1fb0fd6acbf3cbc1f29}{Eina\+\_\+\+List}} $\ast$}]{list,  }\item[{const void $\ast$}]{data,  }\item[{\mbox{\hyperlink{group__Eina__List__Group_ga3295e1210efea1fb0fd6acbf3cbc1f29}{Eina\+\_\+\+List}} $\ast$}]{relative }\end{DoxyParamCaption})}



Prepends a list node to a linked list before the specified member. 


\begin{DoxyParams}[1]{Parameters}
\mbox{\texttt{ in,out}}  & {\em list} & The given linked list. \\
\hline
\mbox{\texttt{ in}}  & {\em data} & The data to insert. \\
\hline
\mbox{\texttt{ in}}  & {\em relative} & The list node to insert before. \\
\hline
\end{DoxyParams}
\begin{DoxyReturn}{Returns}
A list pointer, or {\ttfamily NULL} on error.
\end{DoxyReturn}
This function inserts {\ttfamily data} to {\ttfamily list} before the list node {\ttfamily relative}. If {\ttfamily list} or {\ttfamily relative} are {\ttfamily NULL}, {\ttfamily data} is just prepended to {\ttfamily list} using \mbox{\hyperlink{group__Eina__List__Group_ga4a2716e8fba1c3f60e3b112caef26fb9}{eina\+\_\+list\+\_\+prepend()}}. If {\ttfamily list} is {\ttfamily NULL}, a new list is returned. If there are multiple instances of {\ttfamily relative} in the list, {\ttfamily data} is inserted before the first instance. On success, a new list pointer that should be used in place of the one given to this function is returned. Otherwise, the old pointer is returned.

\begin{DoxyWarning}{Warning}
{\ttfamily list} must be a pointer to the first element of the list. 
\end{DoxyWarning}


References \mbox{\hyperlink{struct__Eina__List_a043e22d601d3a0504f30255a43a25e7a}{\+\_\+\+Eina\+\_\+\+List\+::data}}, \mbox{\hyperlink{group__Eina__List__Group_ga4a2716e8fba1c3f60e3b112caef26fb9}{eina\+\_\+list\+\_\+prepend()}}, \mbox{\hyperlink{struct__Eina__List_aa4ab38c660af0b7f905125e2fe206891}{\+\_\+\+Eina\+\_\+\+List\+::next}}, and \mbox{\hyperlink{struct__Eina__List_a8ab349e200404f6596222591d2de9f77}{\+\_\+\+Eina\+\_\+\+List\+::prev}}.



Referenced by \mbox{\hyperlink{Edje__Edit_8h_a2a3291d483eba9b1a308f23ca2b5e76f}{edje\+\_\+edit\+\_\+program\+\_\+after\+\_\+insert\+\_\+at()}}, \mbox{\hyperlink{Edje__Edit_8h_a432140317bbd3d29e0eee5c209cd99d8}{edje\+\_\+edit\+\_\+program\+\_\+target\+\_\+insert\+\_\+at()}}, \mbox{\hyperlink{group__Eina__List__Group_ga6714b4c62fe6022f6bfe526bb5449b54}{eina\+\_\+list\+\_\+prepend\+\_\+relative()}}, and \mbox{\hyperlink{group__Eina__List__Group_gaa47bc3ae29d8fd946105560b94fc242c}{eina\+\_\+list\+\_\+sorted\+\_\+insert()}}.

\mbox{\Hypertarget{group__Eina__List__Group_gaa47bc3ae29d8fd946105560b94fc242c}\label{group__Eina__List__Group_gaa47bc3ae29d8fd946105560b94fc242c}} 
\index{List@{List}!eina\_list\_sorted\_insert@{eina\_list\_sorted\_insert}}
\index{eina\_list\_sorted\_insert@{eina\_list\_sorted\_insert}!List@{List}}
\doxysubsubsection{\texorpdfstring{eina\_list\_sorted\_insert()}{eina\_list\_sorted\_insert()}}
{\footnotesize\ttfamily \mbox{\hyperlink{group__Eina__Types__Group_ga6ac08753ba12bc9c7a0390cf67868f4f}{EINA\+\_\+\+API}} \mbox{\hyperlink{group__Eina__List__Group_ga3295e1210efea1fb0fd6acbf3cbc1f29}{Eina\+\_\+\+List}} $\ast$ eina\+\_\+list\+\_\+sorted\+\_\+insert (\begin{DoxyParamCaption}\item[{\mbox{\hyperlink{group__Eina__List__Group_ga3295e1210efea1fb0fd6acbf3cbc1f29}{Eina\+\_\+\+List}} $\ast$}]{list,  }\item[{\mbox{\hyperlink{group__Eina__Types__Group_ga1b31ffcc0d46eed63a2381c5a011b486}{Eina\+\_\+\+Compare\+\_\+\+Cb}}}]{func,  }\item[{const void $\ast$}]{data }\end{DoxyParamCaption})}



Inserts a new node into a sorted list. 


\begin{DoxyParams}[1]{Parameters}
\mbox{\texttt{ in,out}}  & {\em list} & The given linked list, {\bfseries{must}} be sorted. \\
\hline
\mbox{\texttt{ in}}  & {\em func} & The function called for the sort. \\
\hline
\mbox{\texttt{ in}}  & {\em data} & The data to be inserted in sorted order. \\
\hline
\end{DoxyParams}
\begin{DoxyReturn}{Returns}
A list pointer, or {\ttfamily NULL} on error.
\end{DoxyReturn}
This function inserts values into a linked list assuming it was sorted and the result will be sorted. If {\ttfamily list} is {\ttfamily NULL}, a new list is returned. On success, a new list pointer that should be used in place of the one given to this function is returned. Otherwise, the old pointer is returned.

\begin{DoxyNote}{Note}
O(log2(n)) comparisons (calls to {\ttfamily func}) average/worst case performance as it uses \mbox{\hyperlink{group__Eina__List__Group_ga4e667216422b60be1d6636f821eddea2}{eina\+\_\+list\+\_\+search\+\_\+sorted\+\_\+near\+\_\+list()}} and thus is bounded to that. As said in \mbox{\hyperlink{group__Eina__List__Group_ga4e667216422b60be1d6636f821eddea2}{eina\+\_\+list\+\_\+search\+\_\+sorted\+\_\+near\+\_\+list()}}, lists do not have O(1) access time, so walking to the correct node can be costly, consider worst case to be almost O(n) pointer dereference (list walk).
\end{DoxyNote}
\begin{DoxyWarning}{Warning}
{\ttfamily list} must be a pointer to the first element of the list. 
\end{DoxyWarning}


References \mbox{\hyperlink{group__Eina__List__Group_ga625698a383dda8fc0db245a1c7608c49}{eina\+\_\+list\+\_\+append()}}, \mbox{\hyperlink{group__Eina__List__Group_gaaf5cc0fb74a42e16757e5523bacdee53}{eina\+\_\+list\+\_\+append\+\_\+relative\+\_\+list()}}, \mbox{\hyperlink{group__Eina__List__Group_gac2ae5d9426f552b9f70eb573582b491c}{eina\+\_\+list\+\_\+prepend\+\_\+relative\+\_\+list()}}, and \mbox{\hyperlink{group__Eina__List__Group_ga4e667216422b60be1d6636f821eddea2}{eina\+\_\+list\+\_\+search\+\_\+sorted\+\_\+near\+\_\+list()}}.

\mbox{\Hypertarget{group__Eina__List__Group_ga6e81c26272c54177d087b29c965af4d8}\label{group__Eina__List__Group_ga6e81c26272c54177d087b29c965af4d8}} 
\index{List@{List}!eina\_list\_remove@{eina\_list\_remove}}
\index{eina\_list\_remove@{eina\_list\_remove}!List@{List}}
\doxysubsubsection{\texorpdfstring{eina\_list\_remove()}{eina\_list\_remove()}}
{\footnotesize\ttfamily \mbox{\hyperlink{group__Eina__Types__Group_ga6ac08753ba12bc9c7a0390cf67868f4f}{EINA\+\_\+\+API}} \mbox{\hyperlink{group__Eina__List__Group_ga3295e1210efea1fb0fd6acbf3cbc1f29}{Eina\+\_\+\+List}} $\ast$ eina\+\_\+list\+\_\+remove (\begin{DoxyParamCaption}\item[{\mbox{\hyperlink{group__Eina__List__Group_ga3295e1210efea1fb0fd6acbf3cbc1f29}{Eina\+\_\+\+List}} $\ast$}]{list,  }\item[{const void $\ast$}]{data }\end{DoxyParamCaption})}



Removes the first instance of the specified data from the given list. 


\begin{DoxyParams}[1]{Parameters}
\mbox{\texttt{ in,out}}  & {\em list} & The given list. \\
\hline
\mbox{\texttt{ in}}  & {\em data} & The specified data. \\
\hline
\end{DoxyParams}
\begin{DoxyReturn}{Returns}
A list pointer, or {\ttfamily NULL} on error.
\end{DoxyReturn}
This function removes the first instance of {\ttfamily data} from {\ttfamily list}. If {\ttfamily data} is not in the given list or is {\ttfamily NULL}, nothing is done and the specified {\ttfamily list} returned. If {\ttfamily list} is {\ttfamily NULL}, {\ttfamily NULL} is returned, otherwise a new list pointer that should be used in place of the one passed to this function is returned.

\begin{DoxyWarning}{Warning}
{\ttfamily list} must be a pointer to the first element of the list. 
\end{DoxyWarning}


References \mbox{\hyperlink{group__Eina__List__Group_gafa48dac0f51f3d8d91b2a2f223bf4079}{eina\+\_\+list\+\_\+data\+\_\+find\+\_\+list()}}, and \mbox{\hyperlink{group__Eina__List__Group_gaf86ee0fd9fe0643ece301fc86f04e720}{eina\+\_\+list\+\_\+remove\+\_\+list()}}.



Referenced by \mbox{\hyperlink{group__Ecore__Con__Socks__Group_gaf83c09019e39d0af2bb45e5733473133}{ecore\+\_\+con\+\_\+socks4\+\_\+remote\+\_\+del()}}, \mbox{\hyperlink{group__Ecore__Con__Socks__Group_ga53afc6008afa6b0099c2d5b5c6e72a76}{ecore\+\_\+con\+\_\+socks5\+\_\+remote\+\_\+del()}}, \mbox{\hyperlink{group__Ecore__Con__Socks__Group_gae1963d7492a88ba1bdc1efa7c8abae64}{ecore\+\_\+con\+\_\+socks\+\_\+remote\+\_\+del()}}, \mbox{\hyperlink{group__Ecore__Con__Url__Group_ga856c091a11980598adb0666cec9b5add}{ecore\+\_\+con\+\_\+url\+\_\+free()}}, \mbox{\hyperlink{group__Ecore__Drm2__Plane__Group_gabf0a8ec7c51abc9f8d2159bb4664e9fa}{ecore\+\_\+drm2\+\_\+plane\+\_\+assign()}}, \mbox{\hyperlink{group__Ecore__Drm__Device__Group_gab206267ef3b8706b22c42391f0dee07e}{ecore\+\_\+drm\+\_\+device\+\_\+free()}}, \mbox{\hyperlink{group__Ecore__Evas__Group_ga8a37d58727bbe7cf4dea4cdb3816e4da}{ecore\+\_\+evas\+\_\+aux\+\_\+hint\+\_\+del()}}, \mbox{\hyperlink{group__Ecore__FB__Group_ga5bc9b86d21424f4661fcb3cefb4e0c86}{ecore\+\_\+fb\+\_\+input\+\_\+device\+\_\+close()}}, \mbox{\hyperlink{group__Ecore__IMF__Context__Group_ga66ae63a113019edb5569c768677d0695}{ecore\+\_\+imf\+\_\+context\+\_\+input\+\_\+panel\+\_\+event\+\_\+callback\+\_\+clear()}}, \mbox{\hyperlink{group__Ecore__IPC__Client__Group_ga7427239388edc03407feb26989a14bb4}{ecore\+\_\+ipc\+\_\+client\+\_\+del()}}, \mbox{\hyperlink{group__Ecore__IPC__Server__Group_gadcf98d375b54c532adbda10b5baafe77}{ecore\+\_\+ipc\+\_\+server\+\_\+del()}}, \mbox{\hyperlink{group__Ecore__Thread__Group_ga941fa6f0313a6fe551f5d80e2a012bba}{ecore\+\_\+thread\+\_\+feedback\+\_\+run()}}, \mbox{\hyperlink{group__Ecore__Thread__Group_ga6857d9e5bd717ae3d8417b39ec585c3f}{ecore\+\_\+thread\+\_\+run()}}, \mbox{\hyperlink{Edje__Edit_8h_a2774cf8143208093d9a37f8866b43bac}{edje\+\_\+edit\+\_\+color\+\_\+class\+\_\+del()}}, \mbox{\hyperlink{Edje__Edit_8h_a51d7101fc86cea7136985c9cb34c2650}{edje\+\_\+edit\+\_\+size\+\_\+class\+\_\+del()}}, \mbox{\hyperlink{Edje__Edit_8h_aa597ce7a58fc2e5d87a38b195464252c}{edje\+\_\+edit\+\_\+string\+\_\+list\+\_\+free()}}, \mbox{\hyperlink{Edje__Edit_8h_a2858806a0f94f609e9a1c6c682be3658}{edje\+\_\+edit\+\_\+style\+\_\+del()}}, \mbox{\hyperlink{Edje__Edit_8h_a33cc8d7c5c98b2c5c6ae2e1b3b271ffd}{edje\+\_\+edit\+\_\+style\+\_\+tag\+\_\+del()}}, \mbox{\hyperlink{Edje__Edit_8h_a14c5160044961813d5a036fae644a573}{edje\+\_\+edit\+\_\+text\+\_\+class\+\_\+del()}}, \mbox{\hyperlink{group__Edje__Object__File_ga4301434642378c3a733e39836446ae4f}{edje\+\_\+file\+\_\+collection\+\_\+list\+\_\+free()}}, \mbox{\hyperlink{group__Edje__Perspective_ga0087812fb067751f8b3ce1581575cafc}{edje\+\_\+object\+\_\+perspective\+\_\+set()}}, \mbox{\hyperlink{group__Eeze__Disk_gac3061cc01944ac6745ef009ff6c97297}{eeze\+\_\+disk\+\_\+free()}}, \mbox{\hyperlink{group__Efreet__Desktop_ga8223591c563f6ad2cc4e30d8b3c7ed9b}{efreet\+\_\+desktop\+\_\+category\+\_\+del()}}, \mbox{\hyperlink{group__Efreet__Menu_ga1341ea90ebef422eb859f6fe69e81a1b}{efreet\+\_\+menu\+\_\+desktop\+\_\+remove()}}, \mbox{\hyperlink{group__Eina__Hash__Group_ga5ff50760c480ab612433022352648a8f}{eina\+\_\+hash\+\_\+list\+\_\+remove()}}, \mbox{\hyperlink{group__Eina__Quadtree__Group_gad431f20dceb85127549b8b1ef1185b8e}{eina\+\_\+quadtree\+\_\+del()}}, \mbox{\hyperlink{group__Elm__Radio__Group_gaa597f8aaad338c0221dada51ac7e110f}{elm\+\_\+radio\+\_\+group\+\_\+add()}}, \mbox{\hyperlink{group__Elm__Transit_ga4e6f191c415b31c0f3a19505e144e390}{elm\+\_\+transit\+\_\+chain\+\_\+transit\+\_\+add()}}, \mbox{\hyperlink{group__Elm__Transit_ga3716718150403795b978445949c6beec}{elm\+\_\+transit\+\_\+chain\+\_\+transit\+\_\+del()}}, \mbox{\hyperlink{group__Ethumb__Client__Basics_gad96b376ead632e96723ca9f9b0735918}{ethumb\+\_\+client\+\_\+thumb\+\_\+exists\+\_\+cancel()}}, \mbox{\hyperlink{group__Evas__Font__Path__Group_gaed7a61b122da6f74876feb293f0f4b73}{evas\+\_\+font\+\_\+path\+\_\+global\+\_\+clear()}}, \mbox{\hyperlink{group__Evas__GL_ga85029b5e926772e855bc38fc13c4865d}{evas\+\_\+gl\+\_\+context\+\_\+destroy()}}, \mbox{\hyperlink{group__Evas__GL_gab6ae0d0532f68400cbbed7156ca52b54}{evas\+\_\+gl\+\_\+surface\+\_\+destroy()}}, \mbox{\hyperlink{group__Evas__Object__Image_ga729dbdcf7d1b5e266df32e9dfde798b1}{evas\+\_\+object\+\_\+image\+\_\+video\+\_\+surface\+\_\+set()}}, and \mbox{\hyperlink{group__Evas__Object__Textblock__Group_ga8ba9bc5084973da312e1d091014d53a0}{evas\+\_\+textblock\+\_\+cursor\+\_\+free()}}.

\mbox{\Hypertarget{group__Eina__List__Group_gaf86ee0fd9fe0643ece301fc86f04e720}\label{group__Eina__List__Group_gaf86ee0fd9fe0643ece301fc86f04e720}} 
\index{List@{List}!eina\_list\_remove\_list@{eina\_list\_remove\_list}}
\index{eina\_list\_remove\_list@{eina\_list\_remove\_list}!List@{List}}
\doxysubsubsection{\texorpdfstring{eina\_list\_remove\_list()}{eina\_list\_remove\_list()}}
{\footnotesize\ttfamily \mbox{\hyperlink{group__Eina__Types__Group_ga6ac08753ba12bc9c7a0390cf67868f4f}{EINA\+\_\+\+API}} \mbox{\hyperlink{group__Eina__List__Group_ga3295e1210efea1fb0fd6acbf3cbc1f29}{Eina\+\_\+\+List}} $\ast$ eina\+\_\+list\+\_\+remove\+\_\+list (\begin{DoxyParamCaption}\item[{\mbox{\hyperlink{group__Eina__List__Group_ga3295e1210efea1fb0fd6acbf3cbc1f29}{Eina\+\_\+\+List}} $\ast$}]{list,  }\item[{\mbox{\hyperlink{group__Eina__List__Group_ga3295e1210efea1fb0fd6acbf3cbc1f29}{Eina\+\_\+\+List}} $\ast$}]{remove\+\_\+list }\end{DoxyParamCaption})}



Removes the specified list node. 


\begin{DoxyParams}[1]{Parameters}
\mbox{\texttt{ in,out}}  & {\em list} & The given linked list. \\
\hline
\mbox{\texttt{ in}}  & {\em remove\+\_\+list} & The list node which is to be removed. \\
\hline
\end{DoxyParams}
\begin{DoxyReturn}{Returns}
A list pointer, or {\ttfamily NULL} on error.
\end{DoxyReturn}
This function removes the list node {\ttfamily remove\+\_\+list} from {\ttfamily list} and frees the list node structure {\ttfamily remove\+\_\+list}. If {\ttfamily list} is {\ttfamily NULL}, this function returns {\ttfamily NULL}. If {\ttfamily remove\+\_\+list} is {\ttfamily NULL}, it returns {\ttfamily list}; otherwise, a new list pointer that should be used in place of the one passed to this function.

The following code gives an example. (Notice we use EINA\+\_\+\+LIST\+\_\+\+FOREACH rather than EINA\+\_\+\+LIST\+\_\+\+FOREACH\+\_\+\+SAFE because we stop the loop after removing the current node.)


\begin{DoxyCode}{0}
\DoxyCodeLine{\textcolor{keyword}{extern}\ \mbox{\hyperlink{struct__Eina__List}{Eina\_List}}\ *list;}
\DoxyCodeLine{\mbox{\hyperlink{struct__Eina__List}{Eina\_List}}\ *l;}
\DoxyCodeLine{\textcolor{keyword}{extern}\ \textcolor{keywordtype}{void}\ *my\_data;}
\DoxyCodeLine{\textcolor{keywordtype}{void}\ *data}
\DoxyCodeLine{}
\DoxyCodeLine{\mbox{\hyperlink{group__Eina__List__Group_gac6efafc19f526d916cdb9757240a8773}{EINA\_LIST\_FOREACH}}(list,\ l,\ data)}
\DoxyCodeLine{\ \ \{}
\DoxyCodeLine{\ \ \ \ \ \textcolor{keywordflow}{if}\ (data\ ==\ my\_data)}
\DoxyCodeLine{\ \ \ \ \ \ \ \{}
\DoxyCodeLine{\ \ \ \ \ \ \ \ \ \ list\ =\ \mbox{\hyperlink{group__Eina__List__Group_gaf86ee0fd9fe0643ece301fc86f04e720}{eina\_list\_remove\_list}}(list,\ l);}
\DoxyCodeLine{\ \ \ \ \ \ \ \ \ \ \textcolor{keywordflow}{break};}
\DoxyCodeLine{\ \ \ \ \ \ \ \}}
\DoxyCodeLine{\ \ \}}

\end{DoxyCode}


\begin{DoxyWarning}{Warning}
{\ttfamily list} must be a pointer to the first element of the list. 
\end{DoxyWarning}


References \mbox{\hyperlink{struct__Eina__List_a8de6c30516f67b8e6b1c97049b3edd05}{\+\_\+\+Eina\+\_\+\+List\+::accounting}}, \mbox{\hyperlink{struct__Eina__List__Accounting_a31b43d26381e267e44f935688329e46a}{\+\_\+\+Eina\+\_\+\+List\+\_\+\+Accounting\+::last}}, \mbox{\hyperlink{struct__Eina__List_aa4ab38c660af0b7f905125e2fe206891}{\+\_\+\+Eina\+\_\+\+List\+::next}}, and \mbox{\hyperlink{struct__Eina__List_a8ab349e200404f6596222591d2de9f77}{\+\_\+\+Eina\+\_\+\+List\+::prev}}.



Referenced by \mbox{\hyperlink{group__Ecore__Con__Eet__Group_ga10241d57a0628745ebf1b1941c5116df}{ecore\+\_\+con\+\_\+eet\+\_\+client\+\_\+connect\+\_\+callback\+\_\+del()}}, \mbox{\hyperlink{group__Ecore__Con__Eet__Group_ga13a07a772c7de8fffce54c5fa1d70f59}{ecore\+\_\+con\+\_\+eet\+\_\+client\+\_\+disconnect\+\_\+callback\+\_\+del()}}, \mbox{\hyperlink{group__Ecore__Con__Eet__Group_gac244d451b7b459cb1001054041a42b86}{ecore\+\_\+con\+\_\+eet\+\_\+server\+\_\+connect\+\_\+callback\+\_\+del()}}, \mbox{\hyperlink{group__Ecore__Con__Eet__Group_gaf564099ee270874159473ba0ae4bf121}{ecore\+\_\+con\+\_\+eet\+\_\+server\+\_\+disconnect\+\_\+callback\+\_\+del()}}, \mbox{\hyperlink{group__Ecore__Drm2__Fb__Group_ga707e208b0864c680788b4d4a73c80340}{ecore\+\_\+drm2\+\_\+fb\+\_\+flip\+\_\+complete()}}, \mbox{\hyperlink{group__Ecore__Main__Loop__Group_gaadff0a56ba8818d8a35f9dc95e25a808}{ecore\+\_\+fork\+\_\+reset()}}, \mbox{\hyperlink{group__Ecore__Main__Loop__Group_ga10a1b477404946b0de4d01e32f84fec5}{ecore\+\_\+fork\+\_\+reset\+\_\+callback\+\_\+del()}}, \mbox{\hyperlink{group__Ecore__IMF__Context__Group_ga3604afcfe094ac249abad4b3dbc8080f}{ecore\+\_\+imf\+\_\+context\+\_\+event\+\_\+callback\+\_\+del()}}, \mbox{\hyperlink{group__Ecore__IMF__Context__Group_ga3c0e364a754734076c03e8087a3c264b}{ecore\+\_\+imf\+\_\+context\+\_\+input\+\_\+panel\+\_\+event\+\_\+callback\+\_\+del()}}, \mbox{\hyperlink{group__Ecore__Thread__Group_gae9b9b20e1ed53c62c51617b55aed2511}{ecore\+\_\+thread\+\_\+cancel()}}, \mbox{\hyperlink{Edje__Edit_8h_a66f994a35f0ecd65b3fe109833b3dc53}{edje\+\_\+edit\+\_\+group\+\_\+del()}}, \mbox{\hyperlink{Edje__Edit_8h_ab826ac780b3a34e37502b811f49f2310}{edje\+\_\+edit\+\_\+image\+\_\+set\+\_\+image\+\_\+del()}}, \mbox{\hyperlink{Edje__Edit_8h_a4c027ca4f7f5ac29100dd859ebcd68c9}{edje\+\_\+edit\+\_\+program\+\_\+after\+\_\+del()}}, \mbox{\hyperlink{Edje__Edit_8h_a8d268980c1b499c20f2a9d5143c4c72d}{edje\+\_\+edit\+\_\+program\+\_\+afters\+\_\+clear()}}, \mbox{\hyperlink{Edje__Edit_8h_ab352e281442a809a2ddedc7d79ce374a}{edje\+\_\+edit\+\_\+program\+\_\+del()}}, \mbox{\hyperlink{Edje__Edit_8h_ad069853b537812057d8dca064b348ab3}{edje\+\_\+edit\+\_\+program\+\_\+target\+\_\+del()}}, \mbox{\hyperlink{Edje__Edit_8h_a97d5cb93161feaddb7a6ef48acccc9fb}{edje\+\_\+edit\+\_\+program\+\_\+targets\+\_\+clear()}}, \mbox{\hyperlink{group__Edje__Object__Group_gae64cc403b31cb466576155a57948f937}{edje\+\_\+object\+\_\+text\+\_\+insert\+\_\+filter\+\_\+callback\+\_\+del()}}, \mbox{\hyperlink{group__Edje__Object__Group_ga41a11ca62d9cc18e66fb18bfab08ea03}{edje\+\_\+object\+\_\+text\+\_\+insert\+\_\+filter\+\_\+callback\+\_\+del\+\_\+full()}}, \mbox{\hyperlink{group__Edje__Object__Group_gae40173f29b685c944fc8dfc540a8829f}{edje\+\_\+object\+\_\+text\+\_\+markup\+\_\+filter\+\_\+callback\+\_\+del()}}, \mbox{\hyperlink{group__Edje__Object__Group_ga74ac2bc616c9e8d71548a2a39bd1bd26}{edje\+\_\+object\+\_\+text\+\_\+markup\+\_\+filter\+\_\+callback\+\_\+del\+\_\+full()}}, \mbox{\hyperlink{group__Efreet__Mime_gace07bac3ddeff549bb5387a9f255135f}{efreet\+\_\+mime\+\_\+type\+\_\+icon\+\_\+get()}}, \mbox{\hyperlink{group__Eina__Debug_ga68d966f21466f3e39c46dd367fa20a9f}{eina\+\_\+debug\+\_\+timer\+\_\+del()}}, \mbox{\hyperlink{group__Eina__File__Group_ga7fc3c176abeb346004562e5ddfdf6e0f}{eina\+\_\+file\+\_\+common\+\_\+map\+\_\+free()}}, \mbox{\hyperlink{group__Eina__List__Group_ga52354c2503d1cf8e6e975bc245e3450c}{eina\+\_\+list\+\_\+move()}}, \mbox{\hyperlink{group__Eina__List__Group_ga18a4ae97ee93cef1f7ea583b57d50d21}{eina\+\_\+list\+\_\+move\+\_\+list()}}, \mbox{\hyperlink{group__Eina__List__Group_ga6e81c26272c54177d087b29c965af4d8}{eina\+\_\+list\+\_\+remove()}}, \mbox{\hyperlink{group__Elm__Profile_ga616fc7d537fbf1a2f1078cba84cf94ce}{elm\+\_\+config\+\_\+profile\+\_\+derived\+\_\+del()}}, \mbox{\hyperlink{group__Elm__Spinner__Group_ga5faa31fa6b9b5ccd0b3657ac013e641c}{elm\+\_\+spinner\+\_\+special\+\_\+value\+\_\+del()}}, \mbox{\hyperlink{group__Ethumb__Client__Basics_ga55fad34988a1cde2962141e25c5b26c5}{ethumb\+\_\+client\+\_\+generate\+\_\+cancel()}}, and \mbox{\hyperlink{group__Evas__Object__Textblock__Group_gaa090505c50af34ffde0973ccfa9f422e}{evas\+\_\+textblock\+\_\+node\+\_\+format\+\_\+remove\+\_\+pair()}}.

\mbox{\Hypertarget{group__Eina__List__Group_gae751b1afefbc47c1d05750be451fcdd2}\label{group__Eina__List__Group_gae751b1afefbc47c1d05750be451fcdd2}} 
\index{List@{List}!eina\_list\_promote\_list@{eina\_list\_promote\_list}}
\index{eina\_list\_promote\_list@{eina\_list\_promote\_list}!List@{List}}
\doxysubsubsection{\texorpdfstring{eina\_list\_promote\_list()}{eina\_list\_promote\_list()}}
{\footnotesize\ttfamily \mbox{\hyperlink{group__Eina__Types__Group_ga6ac08753ba12bc9c7a0390cf67868f4f}{EINA\+\_\+\+API}} \mbox{\hyperlink{group__Eina__List__Group_ga3295e1210efea1fb0fd6acbf3cbc1f29}{Eina\+\_\+\+List}} $\ast$ eina\+\_\+list\+\_\+promote\+\_\+list (\begin{DoxyParamCaption}\item[{\mbox{\hyperlink{group__Eina__List__Group_ga3295e1210efea1fb0fd6acbf3cbc1f29}{Eina\+\_\+\+List}} $\ast$}]{list,  }\item[{\mbox{\hyperlink{group__Eina__List__Group_ga3295e1210efea1fb0fd6acbf3cbc1f29}{Eina\+\_\+\+List}} $\ast$}]{move\+\_\+list }\end{DoxyParamCaption})}



Moves the specified data to the head of the list. 


\begin{DoxyParams}[1]{Parameters}
\mbox{\texttt{ in,out}}  & {\em list} & The given linked list. \\
\hline
\mbox{\texttt{ in}}  & {\em move\+\_\+list} & The list node to move. \\
\hline
\end{DoxyParams}
\begin{DoxyReturn}{Returns}
A new list handle to replace the old one, or {\ttfamily NULL} on error.
\end{DoxyReturn}
This function moves {\ttfamily move\+\_\+list} to the front of {\ttfamily list}. If list is {\ttfamily NULL}, {\ttfamily NULL} is returned. If {\ttfamily move\+\_\+list} is {\ttfamily NULL}, {\ttfamily list} is returned. Otherwise, a new list pointer that should be used in place of the one passed to this function is returned.

Example\+: 
\begin{DoxyCode}{0}
\DoxyCodeLine{\textcolor{keyword}{extern}\ \mbox{\hyperlink{struct__Eina__List}{Eina\_List}}\ *list;}
\DoxyCodeLine{\mbox{\hyperlink{struct__Eina__List}{Eina\_List}}\ *l;}
\DoxyCodeLine{\textcolor{keyword}{extern}\ \textcolor{keywordtype}{void}\ *my\_data;}
\DoxyCodeLine{\textcolor{keywordtype}{void}\ *data;}
\DoxyCodeLine{}
\DoxyCodeLine{\mbox{\hyperlink{group__Eina__List__Group_gac6efafc19f526d916cdb9757240a8773}{EINA\_LIST\_FOREACH}}(list,\ l,\ data)}
\DoxyCodeLine{\ \ \{}
\DoxyCodeLine{\ \ \ \ \ \textcolor{keywordflow}{if}\ (data\ ==\ my\_data)}
\DoxyCodeLine{\ \ \ \ \ \ \ \{}
\DoxyCodeLine{\ \ \ \ \ \ \ \ \ \ list\ =\ \mbox{\hyperlink{group__Eina__List__Group_gae751b1afefbc47c1d05750be451fcdd2}{eina\_list\_promote\_list}}(list,\ l);}
\DoxyCodeLine{\ \ \ \ \ \ \ \ \ \ \textcolor{keywordflow}{break};}
\DoxyCodeLine{\ \ \ \ \ \ \ \}}
\DoxyCodeLine{\ \ \}}

\end{DoxyCode}


\begin{DoxyWarning}{Warning}
{\ttfamily list} must be a pointer to the first element of the list. 
\end{DoxyWarning}


References \mbox{\hyperlink{struct__Eina__List_a8de6c30516f67b8e6b1c97049b3edd05}{\+\_\+\+Eina\+\_\+\+List\+::accounting}}, \mbox{\hyperlink{struct__Eina__List__Accounting_a31b43d26381e267e44f935688329e46a}{\+\_\+\+Eina\+\_\+\+List\+\_\+\+Accounting\+::last}}, \mbox{\hyperlink{struct__Eina__List_aa4ab38c660af0b7f905125e2fe206891}{\+\_\+\+Eina\+\_\+\+List\+::next}}, and \mbox{\hyperlink{struct__Eina__List_a8ab349e200404f6596222591d2de9f77}{\+\_\+\+Eina\+\_\+\+List\+::prev}}.



Referenced by \mbox{\hyperlink{group__Efreet__Icon_ga3bef02386e63f639a6977b733383c91f}{efreet\+\_\+icon\+\_\+extension\+\_\+add()}}.

\mbox{\Hypertarget{group__Eina__List__Group_ga33dc7f75dae277326c99ad5939861613}\label{group__Eina__List__Group_ga33dc7f75dae277326c99ad5939861613}} 
\index{List@{List}!eina\_list\_demote\_list@{eina\_list\_demote\_list}}
\index{eina\_list\_demote\_list@{eina\_list\_demote\_list}!List@{List}}
\doxysubsubsection{\texorpdfstring{eina\_list\_demote\_list()}{eina\_list\_demote\_list()}}
{\footnotesize\ttfamily \mbox{\hyperlink{group__Eina__Types__Group_ga6ac08753ba12bc9c7a0390cf67868f4f}{EINA\+\_\+\+API}} \mbox{\hyperlink{group__Eina__List__Group_ga3295e1210efea1fb0fd6acbf3cbc1f29}{Eina\+\_\+\+List}} $\ast$ eina\+\_\+list\+\_\+demote\+\_\+list (\begin{DoxyParamCaption}\item[{\mbox{\hyperlink{group__Eina__List__Group_ga3295e1210efea1fb0fd6acbf3cbc1f29}{Eina\+\_\+\+List}} $\ast$}]{list,  }\item[{\mbox{\hyperlink{group__Eina__List__Group_ga3295e1210efea1fb0fd6acbf3cbc1f29}{Eina\+\_\+\+List}} $\ast$}]{move\+\_\+list }\end{DoxyParamCaption})}



Moves the specified data to the tail of the list. 


\begin{DoxyParams}[1]{Parameters}
\mbox{\texttt{ in,out}}  & {\em list} & The given linked list. \\
\hline
\mbox{\texttt{ in}}  & {\em move\+\_\+list} & The list node to move. \\
\hline
\end{DoxyParams}
\begin{DoxyReturn}{Returns}
A new list handle to replace the old one, or {\ttfamily NULL} on error.
\end{DoxyReturn}
This function move {\ttfamily move\+\_\+list} to the end of {\ttfamily list}. If list is {\ttfamily NULL}, {\ttfamily NULL} is returned. If {\ttfamily move\+\_\+list} is {\ttfamily NULL}, {\ttfamily list} is returned. Otherwise, a new list pointer that should be used in place of the one passed to this function is returned.

Example\+: 
\begin{DoxyCode}{0}
\DoxyCodeLine{\textcolor{keyword}{extern}\ \mbox{\hyperlink{struct__Eina__List}{Eina\_List}}\ *list;}
\DoxyCodeLine{\mbox{\hyperlink{struct__Eina__List}{Eina\_List}}\ *l;}
\DoxyCodeLine{\textcolor{keyword}{extern}\ \textcolor{keywordtype}{void}\ *my\_data;}
\DoxyCodeLine{\textcolor{keywordtype}{void}\ *data;}
\DoxyCodeLine{}
\DoxyCodeLine{\mbox{\hyperlink{group__Eina__List__Group_gac6efafc19f526d916cdb9757240a8773}{EINA\_LIST\_FOREACH}}(list,\ l,\ data)}
\DoxyCodeLine{\ \ \{}
\DoxyCodeLine{\ \ \ \ \ \textcolor{keywordflow}{if}\ (data\ ==\ my\_data)}
\DoxyCodeLine{\ \ \ \ \ \ \ \{}
\DoxyCodeLine{\ \ \ \ \ \ \ \ \ \ list\ =\ \mbox{\hyperlink{group__Eina__List__Group_ga33dc7f75dae277326c99ad5939861613}{eina\_list\_demote\_list}}(list,\ l);}
\DoxyCodeLine{\ \ \ \ \ \ \ \ \ \ \textcolor{keywordflow}{break};}
\DoxyCodeLine{\ \ \ \ \ \ \ \}}
\DoxyCodeLine{\ \ \}}

\end{DoxyCode}


\begin{DoxyWarning}{Warning}
{\ttfamily list} must be a pointer to the first element of the list. 
\end{DoxyWarning}


References \mbox{\hyperlink{struct__Eina__List_a8de6c30516f67b8e6b1c97049b3edd05}{\+\_\+\+Eina\+\_\+\+List\+::accounting}}, \mbox{\hyperlink{struct__Eina__List__Accounting_a31b43d26381e267e44f935688329e46a}{\+\_\+\+Eina\+\_\+\+List\+\_\+\+Accounting\+::last}}, \mbox{\hyperlink{struct__Eina__List_aa4ab38c660af0b7f905125e2fe206891}{\+\_\+\+Eina\+\_\+\+List\+::next}}, and \mbox{\hyperlink{struct__Eina__List_a8ab349e200404f6596222591d2de9f77}{\+\_\+\+Eina\+\_\+\+List\+::prev}}.

\mbox{\Hypertarget{group__Eina__List__Group_ga4ba54f63ed74cb7d81a1046926a93f4c}\label{group__Eina__List__Group_ga4ba54f63ed74cb7d81a1046926a93f4c}} 
\index{List@{List}!eina\_list\_data\_find@{eina\_list\_data\_find}}
\index{eina\_list\_data\_find@{eina\_list\_data\_find}!List@{List}}
\doxysubsubsection{\texorpdfstring{eina\_list\_data\_find()}{eina\_list\_data\_find()}}
{\footnotesize\ttfamily \mbox{\hyperlink{group__Eina__Types__Group_ga6ac08753ba12bc9c7a0390cf67868f4f}{EINA\+\_\+\+API}} void $\ast$ eina\+\_\+list\+\_\+data\+\_\+find (\begin{DoxyParamCaption}\item[{const \mbox{\hyperlink{group__Eina__List__Group_ga3295e1210efea1fb0fd6acbf3cbc1f29}{Eina\+\_\+\+List}} $\ast$}]{list,  }\item[{const void $\ast$}]{data }\end{DoxyParamCaption})}



Finds a member of a list and returns it. 


\begin{DoxyParams}[1]{Parameters}
\mbox{\texttt{ in}}  & {\em list} & The linked list to search. \\
\hline
\mbox{\texttt{ in}}  & {\em data} & The data member to find in the list. \\
\hline
\end{DoxyParams}
\begin{DoxyReturn}{Returns}
The data member pointer if found, or {\ttfamily NULL} otherwise.
\end{DoxyReturn}
This function searches in {\ttfamily list} from beginning to end for the first member whose data pointer is {\ttfamily data}. If it is found, {\ttfamily data} will be returned, otherwise {\ttfamily NULL} will be returned.

Example\+: 
\begin{DoxyCode}{0}
\DoxyCodeLine{\textcolor{keyword}{extern}\ \mbox{\hyperlink{struct__Eina__List}{Eina\_List}}\ *list;}
\DoxyCodeLine{\textcolor{keyword}{extern}\ \textcolor{keywordtype}{void}\ *my\_data;}
\DoxyCodeLine{}
\DoxyCodeLine{\textcolor{keywordflow}{if}\ (\mbox{\hyperlink{group__Eina__List__Group_ga4ba54f63ed74cb7d81a1046926a93f4c}{eina\_list\_data\_find}}(list,\ my\_data)\ ==\ my\_data)}
\DoxyCodeLine{\ \ \{}
\DoxyCodeLine{\ \ \ \ \ printf(\textcolor{stringliteral}{"{}Found\ member\ \%p\(\backslash\)n"{}},\ my\_data);}
\DoxyCodeLine{\ \ \}}

\end{DoxyCode}


\begin{DoxyWarning}{Warning}
{\ttfamily list} must be a pointer to the first element of the list. 
\end{DoxyWarning}


References \mbox{\hyperlink{group__Eina__List__Group_gafa48dac0f51f3d8d91b2a2f223bf4079}{eina\+\_\+list\+\_\+data\+\_\+find\+\_\+list()}}.



Referenced by \mbox{\hyperlink{group__Ecore__Evas__Group_gac0856e98fb191f4fd38c3ff1198871bf}{ecore\+\_\+evas\+\_\+focus\+\_\+device\+\_\+get()}}, and \mbox{\hyperlink{group__Ecore__FD__Handler__Group_ga072d1719e94e56639abcd385f7cbc692}{ecore\+\_\+main\+\_\+fd\+\_\+handler\+\_\+prepare\+\_\+callback\+\_\+set()}}.

\mbox{\Hypertarget{group__Eina__List__Group_gafa48dac0f51f3d8d91b2a2f223bf4079}\label{group__Eina__List__Group_gafa48dac0f51f3d8d91b2a2f223bf4079}} 
\index{List@{List}!eina\_list\_data\_find\_list@{eina\_list\_data\_find\_list}}
\index{eina\_list\_data\_find\_list@{eina\_list\_data\_find\_list}!List@{List}}
\doxysubsubsection{\texorpdfstring{eina\_list\_data\_find\_list()}{eina\_list\_data\_find\_list()}}
{\footnotesize\ttfamily \mbox{\hyperlink{group__Eina__Types__Group_ga6ac08753ba12bc9c7a0390cf67868f4f}{EINA\+\_\+\+API}} \mbox{\hyperlink{group__Eina__List__Group_ga3295e1210efea1fb0fd6acbf3cbc1f29}{Eina\+\_\+\+List}} $\ast$ eina\+\_\+list\+\_\+data\+\_\+find\+\_\+list (\begin{DoxyParamCaption}\item[{const \mbox{\hyperlink{group__Eina__List__Group_ga3295e1210efea1fb0fd6acbf3cbc1f29}{Eina\+\_\+\+List}} $\ast$}]{list,  }\item[{const void $\ast$}]{data }\end{DoxyParamCaption})}



Finds a member of a list and returns it as a list node. 


\begin{DoxyParams}[1]{Parameters}
\mbox{\texttt{ in}}  & {\em list} & The list to search for data. \\
\hline
\mbox{\texttt{ in}}  & {\em data} & The data pointer to find in the list. \\
\hline
\end{DoxyParams}
\begin{DoxyReturn}{Returns}
A list node containing the data member on success, {\ttfamily NULL} otherwise.
\end{DoxyReturn}
This function searches {\ttfamily list} from beginning to end for the first member whose data pointer is {\ttfamily data}. If it is found, the list node containing the specified member is returned, otherwise {\ttfamily NULL} is returned.

\begin{DoxyWarning}{Warning}
{\ttfamily list} must be a pointer to the first element of the list. 
\end{DoxyWarning}


References \mbox{\hyperlink{group__Eina__List__Group_gac6efafc19f526d916cdb9757240a8773}{EINA\+\_\+\+LIST\+\_\+\+FOREACH}}.



Referenced by \mbox{\hyperlink{group__Efreet__Icon_ga3bef02386e63f639a6977b733383c91f}{efreet\+\_\+icon\+\_\+extension\+\_\+add()}}, \mbox{\hyperlink{group__Eina__Debug_ga68d966f21466f3e39c46dd367fa20a9f}{eina\+\_\+debug\+\_\+timer\+\_\+del()}}, \mbox{\hyperlink{group__Eina__List__Group_ga4ba54f63ed74cb7d81a1046926a93f4c}{eina\+\_\+list\+\_\+data\+\_\+find()}}, \mbox{\hyperlink{group__Eina__List__Group_ga52354c2503d1cf8e6e975bc245e3450c}{eina\+\_\+list\+\_\+move()}}, \mbox{\hyperlink{group__Eina__List__Group_ga6e81c26272c54177d087b29c965af4d8}{eina\+\_\+list\+\_\+remove()}}, and \mbox{\hyperlink{group__Elm__Transit_gab4e46606ff9cf54591289bffe193c03b}{elm\+\_\+transit\+\_\+object\+\_\+add()}}.

\mbox{\Hypertarget{group__Eina__List__Group_ga52354c2503d1cf8e6e975bc245e3450c}\label{group__Eina__List__Group_ga52354c2503d1cf8e6e975bc245e3450c}} 
\index{List@{List}!eina\_list\_move@{eina\_list\_move}}
\index{eina\_list\_move@{eina\_list\_move}!List@{List}}
\doxysubsubsection{\texorpdfstring{eina\_list\_move()}{eina\_list\_move()}}
{\footnotesize\ttfamily \mbox{\hyperlink{group__Eina__Types__Group_ga6ac08753ba12bc9c7a0390cf67868f4f}{EINA\+\_\+\+API}} \mbox{\hyperlink{group__Eina__Types__Group_ga3fe0caf72e93b1bab1ca8ee3ccf3f226}{Eina\+\_\+\+Bool}} eina\+\_\+list\+\_\+move (\begin{DoxyParamCaption}\item[{\mbox{\hyperlink{group__Eina__List__Group_ga3295e1210efea1fb0fd6acbf3cbc1f29}{Eina\+\_\+\+List}} $\ast$$\ast$}]{to,  }\item[{\mbox{\hyperlink{group__Eina__List__Group_ga3295e1210efea1fb0fd6acbf3cbc1f29}{Eina\+\_\+\+List}} $\ast$$\ast$}]{from,  }\item[{void $\ast$}]{data }\end{DoxyParamCaption})}



Moves a data pointer from one list to another. 


\begin{DoxyParams}[1]{Parameters}
\mbox{\texttt{ in,out}}  & {\em to} & The list to move the data to. \\
\hline
\mbox{\texttt{ in,out}}  & {\em from} & The list to move from. \\
\hline
\mbox{\texttt{ in}}  & {\em data} & The data member to move. \\
\hline
\end{DoxyParams}
\begin{DoxyReturn}{Returns}
\mbox{\hyperlink{group__Eina__Types__Group_ga05c12dacc8b4058994df842b41be85fc}{EINA\+\_\+\+TRUE}} on success, \mbox{\hyperlink{group__Eina__Types__Group_ga1feb115f8e9913e806e090d9bd5a7301}{EINA\+\_\+\+FALSE}} otherwise.
\end{DoxyReturn}
This function is a shortcut for doing the following\+: to = eina\+\_\+list\+\_\+append(to, data); from = eina\+\_\+list\+\_\+remove(from, data);

\begin{DoxyWarning}{Warning}
{\ttfamily list} must be a pointer to the first element of the list. 
\end{DoxyWarning}


References \mbox{\hyperlink{group__Eina__Types__Group_ga1feb115f8e9913e806e090d9bd5a7301}{EINA\+\_\+\+FALSE}}, \mbox{\hyperlink{group__Eina__List__Group_ga625698a383dda8fc0db245a1c7608c49}{eina\+\_\+list\+\_\+append()}}, \mbox{\hyperlink{group__Eina__List__Group_gafa48dac0f51f3d8d91b2a2f223bf4079}{eina\+\_\+list\+\_\+data\+\_\+find\+\_\+list()}}, \mbox{\hyperlink{group__Eina__List__Group_gaf86ee0fd9fe0643ece301fc86f04e720}{eina\+\_\+list\+\_\+remove\+\_\+list()}}, \mbox{\hyperlink{group__Eina__Safety__Checks__Group_gab2b07061fc6500dedd9cd41c8d16f95d}{EINA\+\_\+\+SAFETY\+\_\+\+ON\+\_\+\+NULL\+\_\+\+RETURN\+\_\+\+VAL}}, and \mbox{\hyperlink{group__Eina__Types__Group_ga05c12dacc8b4058994df842b41be85fc}{EINA\+\_\+\+TRUE}}.

\mbox{\Hypertarget{group__Eina__List__Group_ga18a4ae97ee93cef1f7ea583b57d50d21}\label{group__Eina__List__Group_ga18a4ae97ee93cef1f7ea583b57d50d21}} 
\index{List@{List}!eina\_list\_move\_list@{eina\_list\_move\_list}}
\index{eina\_list\_move\_list@{eina\_list\_move\_list}!List@{List}}
\doxysubsubsection{\texorpdfstring{eina\_list\_move\_list()}{eina\_list\_move\_list()}}
{\footnotesize\ttfamily \mbox{\hyperlink{group__Eina__Types__Group_ga6ac08753ba12bc9c7a0390cf67868f4f}{EINA\+\_\+\+API}} \mbox{\hyperlink{group__Eina__Types__Group_ga3fe0caf72e93b1bab1ca8ee3ccf3f226}{Eina\+\_\+\+Bool}} eina\+\_\+list\+\_\+move\+\_\+list (\begin{DoxyParamCaption}\item[{\mbox{\hyperlink{group__Eina__List__Group_ga3295e1210efea1fb0fd6acbf3cbc1f29}{Eina\+\_\+\+List}} $\ast$$\ast$}]{to,  }\item[{\mbox{\hyperlink{group__Eina__List__Group_ga3295e1210efea1fb0fd6acbf3cbc1f29}{Eina\+\_\+\+List}} $\ast$$\ast$}]{from,  }\item[{\mbox{\hyperlink{group__Eina__List__Group_ga3295e1210efea1fb0fd6acbf3cbc1f29}{Eina\+\_\+\+List}} $\ast$}]{data }\end{DoxyParamCaption})}



Moves a list node from one list to another. 


\begin{DoxyParams}[1]{Parameters}
\mbox{\texttt{ in,out}}  & {\em to} & The list to move the data to. \\
\hline
\mbox{\texttt{ in,out}}  & {\em from} & The list to move from. \\
\hline
\mbox{\texttt{ in}}  & {\em data} & The list node containing the data to move. \\
\hline
\end{DoxyParams}
\begin{DoxyReturn}{Returns}
\mbox{\hyperlink{group__Eina__Types__Group_ga05c12dacc8b4058994df842b41be85fc}{EINA\+\_\+\+TRUE}} on success, \mbox{\hyperlink{group__Eina__Types__Group_ga1feb115f8e9913e806e090d9bd5a7301}{EINA\+\_\+\+FALSE}} otherwise.
\end{DoxyReturn}
This function is a shortcut for doing the following\+: to = eina\+\_\+list\+\_\+append(to, data-\/\texorpdfstring{$>$}{>}data); from = eina\+\_\+list\+\_\+remove\+\_\+list(from, data);

\begin{DoxyWarning}{Warning}
{\ttfamily list} must be a pointer to the first element of the list. 
\end{DoxyWarning}


References \mbox{\hyperlink{struct__Eina__List_a043e22d601d3a0504f30255a43a25e7a}{\+\_\+\+Eina\+\_\+\+List\+::data}}, \mbox{\hyperlink{group__Eina__Types__Group_ga1feb115f8e9913e806e090d9bd5a7301}{EINA\+\_\+\+FALSE}}, \mbox{\hyperlink{group__Eina__List__Group_ga625698a383dda8fc0db245a1c7608c49}{eina\+\_\+list\+\_\+append()}}, \mbox{\hyperlink{group__Eina__List__Group_gaf86ee0fd9fe0643ece301fc86f04e720}{eina\+\_\+list\+\_\+remove\+\_\+list()}}, \mbox{\hyperlink{group__Eina__Safety__Checks__Group_gab2b07061fc6500dedd9cd41c8d16f95d}{EINA\+\_\+\+SAFETY\+\_\+\+ON\+\_\+\+NULL\+\_\+\+RETURN\+\_\+\+VAL}}, and \mbox{\hyperlink{group__Eina__Types__Group_ga05c12dacc8b4058994df842b41be85fc}{EINA\+\_\+\+TRUE}}.

\mbox{\Hypertarget{group__Eina__List__Group_ga82a1bfa543e21853f9ea3ff88dd1250b}\label{group__Eina__List__Group_ga82a1bfa543e21853f9ea3ff88dd1250b}} 
\index{List@{List}!eina\_list\_free@{eina\_list\_free}}
\index{eina\_list\_free@{eina\_list\_free}!List@{List}}
\doxysubsubsection{\texorpdfstring{eina\_list\_free()}{eina\_list\_free()}}
{\footnotesize\ttfamily \mbox{\hyperlink{group__Eina__Types__Group_ga6ac08753ba12bc9c7a0390cf67868f4f}{EINA\+\_\+\+API}} \mbox{\hyperlink{group__Eina__List__Group_ga3295e1210efea1fb0fd6acbf3cbc1f29}{Eina\+\_\+\+List}} $\ast$ eina\+\_\+list\+\_\+free (\begin{DoxyParamCaption}\item[{\mbox{\hyperlink{group__Eina__List__Group_ga3295e1210efea1fb0fd6acbf3cbc1f29}{Eina\+\_\+\+List}} $\ast$}]{list }\end{DoxyParamCaption})}



Frees an entire list and all the nodes, ignoring the data contained. 


\begin{DoxyParams}[1]{Parameters}
\mbox{\texttt{ in,out}}  & {\em list} & The list to free. \\
\hline
\end{DoxyParams}
\begin{DoxyReturn}{Returns}
A {\ttfamily NULL} pointer.
\end{DoxyReturn}
This function frees all the nodes of {\ttfamily list}. It does not free the data of the nodes. To free them, use \mbox{\hyperlink{group__Eina__List__Group_gae27a2c686a0a11693f9b06957c9bba83}{EINA\+\_\+\+LIST\+\_\+\+FREE}}. 

References \mbox{\hyperlink{struct__Eina__List_aa4ab38c660af0b7f905125e2fe206891}{\+\_\+\+Eina\+\_\+\+List\+::next}}.



Referenced by \mbox{\hyperlink{group__Ecore__Audio__Group_gadae0074b5e88bb7b65727f19297ece77}{ecore\+\_\+audio\+\_\+shutdown()}}, \mbox{\hyperlink{group__Ecore__Evas__Group_ga85538b892d449f5c7a056ca4d49e72a7}{ecore\+\_\+evas\+\_\+engines\+\_\+free()}}, \mbox{\hyperlink{group__Ecore__IPC__Server__Group_gadcf98d375b54c532adbda10b5baafe77}{ecore\+\_\+ipc\+\_\+server\+\_\+del()}}, \mbox{\hyperlink{group__Edje__Object__File_ga061cc7bf0a46d2f78640e729812d1a15}{edje\+\_\+file\+\_\+color\+\_\+class\+\_\+used\+\_\+free()}}, \mbox{\hyperlink{group__Edje__Object__File_ga73184b169c80006c15050d8638886517}{edje\+\_\+mmap\+\_\+color\+\_\+class\+\_\+used\+\_\+list()}}, \mbox{\hyperlink{group__Edje__Object__File_ga8d44d75ddf833e86e2dc54d81e17e9d5}{edje\+\_\+mmap\+\_\+group\+\_\+exists()}}, \mbox{\hyperlink{group__Eet__Data__Group_gac1fe86198291a7acb6642053301f317f}{eet\+\_\+eina\+\_\+stream\+\_\+data\+\_\+descriptor\+\_\+class\+\_\+set()}}, \mbox{\hyperlink{group__Efreet__Desktop_ga44409171379c91f1b5d4fe1e29d873a5}{efreet\+\_\+desktop\+\_\+command\+\_\+progress\+\_\+get()}}, \mbox{\hyperlink{group__Efreet__Icon_ga8da07fcb2dac1faa76e8df32bab82991}{efreet\+\_\+icon\+\_\+list\+\_\+find()}}, \mbox{\hyperlink{group__Store_ga04e5d401569956202edd4657a4503c58}{elm\+\_\+store\+\_\+free()}}, \mbox{\hyperlink{group__Elm__Theme_ga6dbc1857ae05f9e7f9fba7ad7e479c66}{elm\+\_\+theme\+\_\+extension\+\_\+mmap\+\_\+add()}}, \mbox{\hyperlink{group__Elm__Theme_gad64e727418bba326f54cea4617dfeca6}{elm\+\_\+theme\+\_\+extension\+\_\+mmap\+\_\+del()}}, \mbox{\hyperlink{group__Elm__Theme_gad2355bf673f163dbdeba76d2e7b3564c}{elm\+\_\+theme\+\_\+overlay\+\_\+mmap\+\_\+add()}}, \mbox{\hyperlink{group__Elm__Theme_gaae52bcc0e9da65f97d4b4e169964090d}{elm\+\_\+theme\+\_\+overlay\+\_\+mmap\+\_\+del()}}, \mbox{\hyperlink{group__Elua_ga20ec17a66199e38fe108d522bbf32349}{elua\+\_\+state\+\_\+free()}}, \mbox{\hyperlink{group__Evas__Event__Feeding__Group_gadacc98f3d35e1e1cf1d50d3d8c746e4a}{evas\+\_\+event\+\_\+feed\+\_\+hold()}}, \mbox{\hyperlink{group__Evas__Object__Group_ga651f25b33a8167880ef6e90be03dca5d}{evas\+\_\+object\+\_\+clipees\+\_\+get()}}, and \mbox{\hyperlink{group__Evas__Object__Textblock__Group_gaa090505c50af34ffde0973ccfa9f422e}{evas\+\_\+textblock\+\_\+node\+\_\+format\+\_\+remove\+\_\+pair()}}.

\mbox{\Hypertarget{group__Eina__List__Group_ga5638b455370e1b4a2fb230b59ce9c631}\label{group__Eina__List__Group_ga5638b455370e1b4a2fb230b59ce9c631}} 
\index{List@{List}!eina\_list\_nth@{eina\_list\_nth}}
\index{eina\_list\_nth@{eina\_list\_nth}!List@{List}}
\doxysubsubsection{\texorpdfstring{eina\_list\_nth()}{eina\_list\_nth()}}
{\footnotesize\ttfamily \mbox{\hyperlink{group__Eina__Types__Group_ga6ac08753ba12bc9c7a0390cf67868f4f}{EINA\+\_\+\+API}} void $\ast$ eina\+\_\+list\+\_\+nth (\begin{DoxyParamCaption}\item[{const \mbox{\hyperlink{group__Eina__List__Group_ga3295e1210efea1fb0fd6acbf3cbc1f29}{Eina\+\_\+\+List}} $\ast$}]{list,  }\item[{unsigned int}]{n }\end{DoxyParamCaption})}



Gets the nth member\textquotesingle{}s data pointer in a list, or {\ttfamily NULL} on error. 


\begin{DoxyParams}[1]{Parameters}
\mbox{\texttt{ in}}  & {\em list} & The list to get the specified member number from. \\
\hline
\mbox{\texttt{ in}}  & {\em n} & The number of the element (0 being the first). \\
\hline
\end{DoxyParams}
\begin{DoxyReturn}{Returns}
The data pointer stored in the specified element.
\end{DoxyReturn}
This function returns the data pointer of element number {\ttfamily n}, in the {\ttfamily list}. The first element in the array is element number 0. If the element number {\ttfamily n} does not exist, {\ttfamily NULL} is returned. Otherwise, the data of the found element is returned.

\begin{DoxyNote}{Note}
Worst case is O(n).
\end{DoxyNote}
\begin{DoxyWarning}{Warning}
{\ttfamily list} must be a pointer to the first element of the list. 
\end{DoxyWarning}


References \mbox{\hyperlink{struct__Eina__List_a043e22d601d3a0504f30255a43a25e7a}{\+\_\+\+Eina\+\_\+\+List\+::data}}, and \mbox{\hyperlink{group__Eina__List__Group_ga4f42c9edc62c6c1e15582ee9c50b7b57}{eina\+\_\+list\+\_\+nth\+\_\+list()}}.



Referenced by \mbox{\hyperlink{Edje__Edit_8h_aba192ab02adbd5f1260f1b43cfc941f6}{edje\+\_\+edit\+\_\+image\+\_\+set\+\_\+image\+\_\+border\+\_\+get()}}, \mbox{\hyperlink{Edje__Edit_8h_a085d4e0d43d85602043f13ebf47b0eb0}{edje\+\_\+edit\+\_\+image\+\_\+set\+\_\+image\+\_\+border\+\_\+scale\+\_\+get()}}, \mbox{\hyperlink{Edje__Edit_8h_acb48f1ec1006ffaf0a5379ea7b5df3f6}{edje\+\_\+edit\+\_\+image\+\_\+set\+\_\+image\+\_\+border\+\_\+scale\+\_\+set()}}, \mbox{\hyperlink{Edje__Edit_8h_a918212ba06b33389edb770121d86f791}{edje\+\_\+edit\+\_\+image\+\_\+set\+\_\+image\+\_\+border\+\_\+set()}}, \mbox{\hyperlink{Edje__Edit_8h_ab826ac780b3a34e37502b811f49f2310}{edje\+\_\+edit\+\_\+image\+\_\+set\+\_\+image\+\_\+del()}}, \mbox{\hyperlink{group__Efreet__Desktop_ga47bb4e6529fd9d127930b7985fabeaf4}{efreet\+\_\+desktop\+\_\+free()}}, \mbox{\hyperlink{group__Efreet__Desktop_ga971dd7e8f48e40d92434ae4c99dd36a0}{efreet\+\_\+desktop\+\_\+get()}}, \mbox{\hyperlink{group__Efreet__Desktop_gad706e127f26677328ce5864090d5e408}{efreet\+\_\+desktop\+\_\+save()}}, \mbox{\hyperlink{group__Efreet__Desktop_ga2ce48bbdf2f837bb4697aeb498d53a2e}{efreet\+\_\+desktop\+\_\+type\+\_\+alias()}}, \mbox{\hyperlink{group__Efreet__Menu_gad623606893391e7c32ff4f39fae0aab1}{efreet\+\_\+menu\+\_\+desktop\+\_\+insert()}}, \mbox{\hyperlink{group__Evas__Touch__Point__List_ga1d7260c61723d13bce3e61885c61beb2}{evas\+\_\+touch\+\_\+point\+\_\+list\+\_\+nth\+\_\+id\+\_\+get()}}, and \mbox{\hyperlink{group__Evas__Touch__Point__List_gac8f42f9f3b86affbbb2a75330da8a89e}{evas\+\_\+touch\+\_\+point\+\_\+list\+\_\+nth\+\_\+state\+\_\+get()}}.

\mbox{\Hypertarget{group__Eina__List__Group_ga4f42c9edc62c6c1e15582ee9c50b7b57}\label{group__Eina__List__Group_ga4f42c9edc62c6c1e15582ee9c50b7b57}} 
\index{List@{List}!eina\_list\_nth\_list@{eina\_list\_nth\_list}}
\index{eina\_list\_nth\_list@{eina\_list\_nth\_list}!List@{List}}
\doxysubsubsection{\texorpdfstring{eina\_list\_nth\_list()}{eina\_list\_nth\_list()}}
{\footnotesize\ttfamily \mbox{\hyperlink{group__Eina__Types__Group_ga6ac08753ba12bc9c7a0390cf67868f4f}{EINA\+\_\+\+API}} \mbox{\hyperlink{group__Eina__List__Group_ga3295e1210efea1fb0fd6acbf3cbc1f29}{Eina\+\_\+\+List}} $\ast$ eina\+\_\+list\+\_\+nth\+\_\+list (\begin{DoxyParamCaption}\item[{const \mbox{\hyperlink{group__Eina__List__Group_ga3295e1210efea1fb0fd6acbf3cbc1f29}{Eina\+\_\+\+List}} $\ast$}]{list,  }\item[{unsigned int}]{n }\end{DoxyParamCaption})}



Gets the nth member\textquotesingle{}s list node in a list. 


\begin{DoxyParams}[1]{Parameters}
\mbox{\texttt{ in}}  & {\em list} & The list to get the specified member number from. \\
\hline
\mbox{\texttt{ in}}  & {\em n} & The number of the element (0 being the first). \\
\hline
\end{DoxyParams}
\begin{DoxyReturn}{Returns}
The list node stored in the numbered element, or {\ttfamily NULL} on error.
\end{DoxyReturn}
This function returns the list node of element number {\ttfamily n}, in {\ttfamily list}. The first element in the array is element number 0. If the element number {\ttfamily n} does not exist or {\ttfamily list} is {\ttfamily NULL} or {\ttfamily n} is greater than the count of elements in {\ttfamily list} minus 1, {\ttfamily NULL} is returned. Otherwise the list node stored in the numbered element is returned.

\begin{DoxyNote}{Note}
Worst case is O(n).
\end{DoxyNote}
\begin{DoxyWarning}{Warning}
{\ttfamily list} must be a pointer to the first element of the list. 
\end{DoxyWarning}


References \mbox{\hyperlink{struct__Eina__List_a8de6c30516f67b8e6b1c97049b3edd05}{\+\_\+\+Eina\+\_\+\+List\+::accounting}}, \mbox{\hyperlink{struct__Eina__List__Accounting_aba4034f1fca9388773f5f33523cffb7f}{\+\_\+\+Eina\+\_\+\+List\+\_\+\+Accounting\+::count}}, \mbox{\hyperlink{struct__Eina__List__Accounting_a31b43d26381e267e44f935688329e46a}{\+\_\+\+Eina\+\_\+\+List\+\_\+\+Accounting\+::last}}, \mbox{\hyperlink{struct__Eina__List_aa4ab38c660af0b7f905125e2fe206891}{\+\_\+\+Eina\+\_\+\+List\+::next}}, and \mbox{\hyperlink{struct__Eina__List_a8ab349e200404f6596222591d2de9f77}{\+\_\+\+Eina\+\_\+\+List\+::prev}}.



Referenced by \mbox{\hyperlink{Edje__Edit_8h_ab826ac780b3a34e37502b811f49f2310}{edje\+\_\+edit\+\_\+image\+\_\+set\+\_\+image\+\_\+del()}}, \mbox{\hyperlink{Edje__Edit_8h_a2a3291d483eba9b1a308f23ca2b5e76f}{edje\+\_\+edit\+\_\+program\+\_\+after\+\_\+insert\+\_\+at()}}, \mbox{\hyperlink{Edje__Edit_8h_a432140317bbd3d29e0eee5c209cd99d8}{edje\+\_\+edit\+\_\+program\+\_\+target\+\_\+insert\+\_\+at()}}, \mbox{\hyperlink{group__Eina__List__Group_ga5638b455370e1b4a2fb230b59ce9c631}{eina\+\_\+list\+\_\+nth()}}, and \mbox{\hyperlink{group__Eina__List__Group_ga568115ea8231ca6baed243032570e15c}{eina\+\_\+list\+\_\+sort()}}.

\mbox{\Hypertarget{group__Eina__List__Group_gaa71d2c0b80ded386071f4d98496a0556}\label{group__Eina__List__Group_gaa71d2c0b80ded386071f4d98496a0556}} 
\index{List@{List}!eina\_list\_reverse@{eina\_list\_reverse}}
\index{eina\_list\_reverse@{eina\_list\_reverse}!List@{List}}
\doxysubsubsection{\texorpdfstring{eina\_list\_reverse()}{eina\_list\_reverse()}}
{\footnotesize\ttfamily \mbox{\hyperlink{group__Eina__Types__Group_ga6ac08753ba12bc9c7a0390cf67868f4f}{EINA\+\_\+\+API}} \mbox{\hyperlink{group__Eina__List__Group_ga3295e1210efea1fb0fd6acbf3cbc1f29}{Eina\+\_\+\+List}} $\ast$ eina\+\_\+list\+\_\+reverse (\begin{DoxyParamCaption}\item[{\mbox{\hyperlink{group__Eina__List__Group_ga3295e1210efea1fb0fd6acbf3cbc1f29}{Eina\+\_\+\+List}} $\ast$}]{list }\end{DoxyParamCaption})}



Reverses all the elements in the list. 


\begin{DoxyParams}[1]{Parameters}
\mbox{\texttt{ in,out}}  & {\em list} & The list to reverse. \\
\hline
\end{DoxyParams}
\begin{DoxyReturn}{Returns}
The list head after it has been reversed, or {\ttfamily NULL} on error.
\end{DoxyReturn}
This function reverses the order of all elements in {\ttfamily list}, so the last member is now first, and so on. If {\ttfamily list} is {\ttfamily NULL}, this function returns {\ttfamily NULL}.

\begin{DoxyNote}{Note}
{\bfseries{in-\/place}}\+: this will change the given list, so you should now point to the new list head that is returned by this function.
\end{DoxyNote}
\begin{DoxyWarning}{Warning}
{\ttfamily list} must be a pointer to the first element of the list.
\end{DoxyWarning}
\begin{DoxySeeAlso}{See also}
\mbox{\hyperlink{group__Eina__List__Group_gaba7131bd0092c4fce38930e6bf07da3c}{eina\+\_\+list\+\_\+reverse\+\_\+clone()}} 

\mbox{\hyperlink{group__Eina__List__Group_gafc720f4a3e65e3945ecaba6f7cb34357}{eina\+\_\+list\+\_\+iterator\+\_\+reversed\+\_\+new()}} 
\end{DoxySeeAlso}


References \mbox{\hyperlink{struct__Eina__List_a8de6c30516f67b8e6b1c97049b3edd05}{\+\_\+\+Eina\+\_\+\+List\+::accounting}}, \mbox{\hyperlink{struct__Eina__List_a043e22d601d3a0504f30255a43a25e7a}{\+\_\+\+Eina\+\_\+\+List\+::data}}, \mbox{\hyperlink{struct__Eina__List__Accounting_a31b43d26381e267e44f935688329e46a}{\+\_\+\+Eina\+\_\+\+List\+\_\+\+Accounting\+::last}}, \mbox{\hyperlink{struct__Eina__List_aa4ab38c660af0b7f905125e2fe206891}{\+\_\+\+Eina\+\_\+\+List\+::next}}, and \mbox{\hyperlink{struct__Eina__List_a8ab349e200404f6596222591d2de9f77}{\+\_\+\+Eina\+\_\+\+List\+::prev}}.

\mbox{\Hypertarget{group__Eina__List__Group_gaba7131bd0092c4fce38930e6bf07da3c}\label{group__Eina__List__Group_gaba7131bd0092c4fce38930e6bf07da3c}} 
\index{List@{List}!eina\_list\_reverse\_clone@{eina\_list\_reverse\_clone}}
\index{eina\_list\_reverse\_clone@{eina\_list\_reverse\_clone}!List@{List}}
\doxysubsubsection{\texorpdfstring{eina\_list\_reverse\_clone()}{eina\_list\_reverse\_clone()}}
{\footnotesize\ttfamily \mbox{\hyperlink{group__Eina__Types__Group_ga6ac08753ba12bc9c7a0390cf67868f4f}{EINA\+\_\+\+API}} \mbox{\hyperlink{group__Eina__List__Group_ga3295e1210efea1fb0fd6acbf3cbc1f29}{Eina\+\_\+\+List}} $\ast$ eina\+\_\+list\+\_\+reverse\+\_\+clone (\begin{DoxyParamCaption}\item[{const \mbox{\hyperlink{group__Eina__List__Group_ga3295e1210efea1fb0fd6acbf3cbc1f29}{Eina\+\_\+\+List}} $\ast$}]{list }\end{DoxyParamCaption})}



Clones (copies) all the elements in the list in reverse order. 


\begin{DoxyParams}[1]{Parameters}
\mbox{\texttt{ in}}  & {\em list} & The list to reverse. \\
\hline
\end{DoxyParams}
\begin{DoxyReturn}{Returns}
The new list that has been reversed, or {\ttfamily NULL} on error.
\end{DoxyReturn}
This function reverses the order of all elements in {\ttfamily list}, so the last member is now first, and so on. If {\ttfamily list} is {\ttfamily NULL}, this function returns {\ttfamily NULL}. This returns a copy of the given list.

\begin{DoxyNote}{Note}
{\bfseries{copy\+:}} this will copy the list and you should then \mbox{\hyperlink{group__Eina__List__Group_ga82a1bfa543e21853f9ea3ff88dd1250b}{eina\+\_\+list\+\_\+free()}} when it is not required anymore.
\end{DoxyNote}
\begin{DoxyWarning}{Warning}
{\ttfamily list} must be a pointer to the first element of the list.
\end{DoxyWarning}
\begin{DoxySeeAlso}{See also}
\mbox{\hyperlink{group__Eina__List__Group_gaa71d2c0b80ded386071f4d98496a0556}{eina\+\_\+list\+\_\+reverse()}} 

\mbox{\hyperlink{group__Eina__List__Group_gabffc00a6b64c1574d803e3663ca06e62}{eina\+\_\+list\+\_\+clone()}} 
\end{DoxySeeAlso}


References \mbox{\hyperlink{group__Eina__List__Group_gac6efafc19f526d916cdb9757240a8773}{EINA\+\_\+\+LIST\+\_\+\+FOREACH}}, and \mbox{\hyperlink{group__Eina__List__Group_ga4a2716e8fba1c3f60e3b112caef26fb9}{eina\+\_\+list\+\_\+prepend()}}.

\mbox{\Hypertarget{group__Eina__List__Group_gabffc00a6b64c1574d803e3663ca06e62}\label{group__Eina__List__Group_gabffc00a6b64c1574d803e3663ca06e62}} 
\index{List@{List}!eina\_list\_clone@{eina\_list\_clone}}
\index{eina\_list\_clone@{eina\_list\_clone}!List@{List}}
\doxysubsubsection{\texorpdfstring{eina\_list\_clone()}{eina\_list\_clone()}}
{\footnotesize\ttfamily \mbox{\hyperlink{group__Eina__Types__Group_ga6ac08753ba12bc9c7a0390cf67868f4f}{EINA\+\_\+\+API}} \mbox{\hyperlink{group__Eina__List__Group_ga3295e1210efea1fb0fd6acbf3cbc1f29}{Eina\+\_\+\+List}} $\ast$ eina\+\_\+list\+\_\+clone (\begin{DoxyParamCaption}\item[{const \mbox{\hyperlink{group__Eina__List__Group_ga3295e1210efea1fb0fd6acbf3cbc1f29}{Eina\+\_\+\+List}} $\ast$}]{list }\end{DoxyParamCaption})}



Clones (copies) all the elements in the list in exactly same order. 


\begin{DoxyParams}[1]{Parameters}
\mbox{\texttt{ in}}  & {\em list} & The list to clone. \\
\hline
\end{DoxyParams}
\begin{DoxyReturn}{Returns}
The new list that has been cloned, or {\ttfamily NULL} on error.
\end{DoxyReturn}
This function clone in order of all elements in {\ttfamily list}. If {\ttfamily list} is {\ttfamily NULL}, this function returns {\ttfamily NULL}. This returns a copy of the given list.

\begin{DoxyNote}{Note}
{\bfseries{copy\+:}} this will copy the list and you should then \mbox{\hyperlink{group__Eina__List__Group_ga82a1bfa543e21853f9ea3ff88dd1250b}{eina\+\_\+list\+\_\+free()}} when it is not required anymore.
\end{DoxyNote}
\begin{DoxyWarning}{Warning}
{\ttfamily list} must be a pointer to the first element of the list.
\end{DoxyWarning}
\begin{DoxySeeAlso}{See also}
\mbox{\hyperlink{group__Eina__List__Group_gaba7131bd0092c4fce38930e6bf07da3c}{eina\+\_\+list\+\_\+reverse\+\_\+clone()}} 
\end{DoxySeeAlso}


References \mbox{\hyperlink{group__Eina__List__Group_ga625698a383dda8fc0db245a1c7608c49}{eina\+\_\+list\+\_\+append()}}, and \mbox{\hyperlink{group__Eina__List__Group_gac6efafc19f526d916cdb9757240a8773}{EINA\+\_\+\+LIST\+\_\+\+FOREACH}}.



Referenced by \mbox{\hyperlink{group__Ecore__Drm__Init__Group_ga7bd82b81b62b5e541655e38b9cf71f58}{ecore\+\_\+drm\+\_\+shutdown()}}, \mbox{\hyperlink{group__Ecore__Evas__Group_ga2951381165ba9198555d427d1133e3b0}{ecore\+\_\+evas\+\_\+engines\+\_\+get()}}, \mbox{\hyperlink{group__Elm__Focus_ga2b9658989f3db1d7cacd87f1a8bc53c2}{elm\+\_\+object\+\_\+focus\+\_\+custom\+\_\+chain\+\_\+append()}}, and \mbox{\hyperlink{group__Elm__Focus_ga0032b30a596ed1a4509c51ffa5d07e8c}{elm\+\_\+object\+\_\+focus\+\_\+custom\+\_\+chain\+\_\+prepend()}}.

\mbox{\Hypertarget{group__Eina__List__Group_ga568115ea8231ca6baed243032570e15c}\label{group__Eina__List__Group_ga568115ea8231ca6baed243032570e15c}} 
\index{List@{List}!eina\_list\_sort@{eina\_list\_sort}}
\index{eina\_list\_sort@{eina\_list\_sort}!List@{List}}
\doxysubsubsection{\texorpdfstring{eina\_list\_sort()}{eina\_list\_sort()}}
{\footnotesize\ttfamily \mbox{\hyperlink{group__Eina__Types__Group_ga6ac08753ba12bc9c7a0390cf67868f4f}{EINA\+\_\+\+API}} \mbox{\hyperlink{group__Eina__List__Group_ga3295e1210efea1fb0fd6acbf3cbc1f29}{Eina\+\_\+\+List}} $\ast$ eina\+\_\+list\+\_\+sort (\begin{DoxyParamCaption}\item[{\mbox{\hyperlink{group__Eina__List__Group_ga3295e1210efea1fb0fd6acbf3cbc1f29}{Eina\+\_\+\+List}} $\ast$}]{list,  }\item[{unsigned int}]{limit,  }\item[{\mbox{\hyperlink{group__Eina__Types__Group_ga1b31ffcc0d46eed63a2381c5a011b486}{Eina\+\_\+\+Compare\+\_\+\+Cb}}}]{func }\end{DoxyParamCaption})}



Sorts a list according to the ordering func will return. 


\begin{DoxyParams}[1]{Parameters}
\mbox{\texttt{ in}}  & {\em list} & The list handle to sort. \\
\hline
\mbox{\texttt{ in}}  & {\em limit} & The maximum number of list elements to sort. \\
\hline
\mbox{\texttt{ in}}  & {\em func} & A function pointer that can handle comparing the list data nodes. \\
\hline
\end{DoxyParams}
\begin{DoxyReturn}{Returns}
The new head of list.
\end{DoxyReturn}
This function sorts {\ttfamily list}. If {\ttfamily limit} is 0 or greater than the number of elements in {\ttfamily list}, all the elements are sorted. {\ttfamily func} is used to compare two elements of {\ttfamily list}. If {\ttfamily func} is {\ttfamily NULL}, this function returns {\ttfamily list}.

\begin{DoxyNote}{Note}
{\bfseries{in-\/place}}\+: this will change the given list, so you should now point to the new list head that is returned by this function.

Worst case is O(n $\ast$ log2(n)) comparisons (calls to func()). That means that for 1,000,000 list sort will do 20,000,000 comparisons.
\end{DoxyNote}
Example\+: 
\begin{DoxyCode}{0}
\DoxyCodeLine{\textcolor{keywordtype}{int}}
\DoxyCodeLine{sort\_cb(\textcolor{keyword}{const}\ \textcolor{keywordtype}{void}\ *d1,\ \textcolor{keyword}{const}\ \textcolor{keywordtype}{void}\ *d2)}
\DoxyCodeLine{\{}
\DoxyCodeLine{\ \ \ \textcolor{keyword}{const}\ \textcolor{keywordtype}{char}\ *txt\ =\ d1;}
\DoxyCodeLine{\ \ \ \textcolor{keyword}{const}\ \textcolor{keywordtype}{char}\ *txt2\ =\ d2;}
\DoxyCodeLine{}
\DoxyCodeLine{\ \ \ \textcolor{keywordflow}{if}(!txt)\ \textcolor{keywordflow}{return}(1);}
\DoxyCodeLine{\ \ \ \textcolor{keywordflow}{if}(!txt2)\ \textcolor{keywordflow}{return}(-\/1);}
\DoxyCodeLine{}
\DoxyCodeLine{\ \ \ \textcolor{keywordflow}{return}(strcmp(txt,\ txt2));}
\DoxyCodeLine{\}}
\DoxyCodeLine{\textcolor{keyword}{extern}\ \mbox{\hyperlink{struct__Eina__List}{Eina\_List}}\ *list;}
\DoxyCodeLine{}
\DoxyCodeLine{list\ =\ \mbox{\hyperlink{group__Eina__List__Group_ga568115ea8231ca6baed243032570e15c}{eina\_list\_sort}}(list,\ eina\_list\_count(list),\ sort\_cb);}

\end{DoxyCode}


\begin{DoxyWarning}{Warning}
{\ttfamily list} must be a pointer to the first element of the list. 
\end{DoxyWarning}


References \mbox{\hyperlink{struct__Eina__List_a8de6c30516f67b8e6b1c97049b3edd05}{\+\_\+\+Eina\+\_\+\+List\+::accounting}}, \mbox{\hyperlink{struct__Eina__List__Accounting_aba4034f1fca9388773f5f33523cffb7f}{\+\_\+\+Eina\+\_\+\+List\+\_\+\+Accounting\+::count}}, \mbox{\hyperlink{group__Eina__List__Group_ga4f42c9edc62c6c1e15582ee9c50b7b57}{eina\+\_\+list\+\_\+nth\+\_\+list()}}, \mbox{\hyperlink{group__Eina__Safety__Checks__Group_gab2b07061fc6500dedd9cd41c8d16f95d}{EINA\+\_\+\+SAFETY\+\_\+\+ON\+\_\+\+NULL\+\_\+\+RETURN\+\_\+\+VAL}}, \mbox{\hyperlink{struct__Eina__List__Accounting_a31b43d26381e267e44f935688329e46a}{\+\_\+\+Eina\+\_\+\+List\+\_\+\+Accounting\+::last}}, \mbox{\hyperlink{struct__Eina__List_aa4ab38c660af0b7f905125e2fe206891}{\+\_\+\+Eina\+\_\+\+List\+::next}}, and \mbox{\hyperlink{struct__Eina__List_a8ab349e200404f6596222591d2de9f77}{\+\_\+\+Eina\+\_\+\+List\+::prev}}.



Referenced by \mbox{\hyperlink{group__Ecore__File__Group_gab7baa24c2abea205b4d1f92397f1bda0}{ecore\+\_\+file\+\_\+ls()}}, \mbox{\hyperlink{group__Eina__Rectangle__Group_ga6b76645d9c7b97d7de540792bae9d776}{eina\+\_\+rectangle\+\_\+pool\+\_\+request()}}, \mbox{\hyperlink{group__Elm__Theme_ga6951cdad730ccedd753583ce357e9ea3}{elm\+\_\+theme\+\_\+color\+\_\+class\+\_\+list()}}, \mbox{\hyperlink{group__Elm__Theme_ga487bc45480ffcf32f028e36ff53d1b4c}{elm\+\_\+theme\+\_\+group\+\_\+base\+\_\+list()}}, and \mbox{\hyperlink{group__Elm__Theme_ga02474d8fd11ce6d00b9790c971509f5b}{elm\+\_\+theme\+\_\+name\+\_\+available\+\_\+list\+\_\+new()}}.

\mbox{\Hypertarget{group__Eina__List__Group_ga5c519a153c64bf74fa5c348b80d07b55}\label{group__Eina__List__Group_ga5c519a153c64bf74fa5c348b80d07b55}} 
\index{List@{List}!eina\_list\_shuffle@{eina\_list\_shuffle}}
\index{eina\_list\_shuffle@{eina\_list\_shuffle}!List@{List}}
\doxysubsubsection{\texorpdfstring{eina\_list\_shuffle()}{eina\_list\_shuffle()}}
{\footnotesize\ttfamily \mbox{\hyperlink{group__Eina__Types__Group_ga6ac08753ba12bc9c7a0390cf67868f4f}{EINA\+\_\+\+API}} \mbox{\hyperlink{group__Eina__List__Group_ga3295e1210efea1fb0fd6acbf3cbc1f29}{Eina\+\_\+\+List}} $\ast$ eina\+\_\+list\+\_\+shuffle (\begin{DoxyParamCaption}\item[{\mbox{\hyperlink{group__Eina__List__Group_ga3295e1210efea1fb0fd6acbf3cbc1f29}{Eina\+\_\+\+List}} $\ast$}]{list,  }\item[{\mbox{\hyperlink{group__Eina__Types__Group_ga7331c88690f77b217b19cc5678cbdc24}{Eina\+\_\+\+Random\+\_\+\+Cb}}}]{func }\end{DoxyParamCaption})}



Shuffles list. 


\begin{DoxyParams}[1]{Parameters}
\mbox{\texttt{ in}}  & {\em list} & The list handle to shuffle. \\
\hline
\mbox{\texttt{ in}}  & {\em func} & A function pointer that can return an int between 2 inclusive values \\
\hline
\end{DoxyParams}
\begin{DoxyReturn}{Returns}
The new head of list.
\end{DoxyReturn}
This function shuffles {\ttfamily list}. {\ttfamily func} is used to generate random list indexes within the range of unshuffled list items. If {\ttfamily func} is {\ttfamily NULL}, rand is used.

\begin{DoxyNote}{Note}
{\bfseries{in-\/place}}\+: This will change the given list, so you should now point to the new list head that is returned by this function.
\end{DoxyNote}
\begin{DoxySince}{Since}
1.\+8
\end{DoxySince}
\begin{DoxyWarning}{Warning}
{\ttfamily list} must be a pointer to the first element of the list. 
\end{DoxyWarning}


References \mbox{\hyperlink{struct__Eina__List_a8de6c30516f67b8e6b1c97049b3edd05}{\+\_\+\+Eina\+\_\+\+List\+::accounting}}, \mbox{\hyperlink{struct__Eina__List__Accounting_aba4034f1fca9388773f5f33523cffb7f}{\+\_\+\+Eina\+\_\+\+List\+\_\+\+Accounting\+::count}}, \mbox{\hyperlink{struct__Eina__List__Accounting_a31b43d26381e267e44f935688329e46a}{\+\_\+\+Eina\+\_\+\+List\+\_\+\+Accounting\+::last}}, \mbox{\hyperlink{struct__Eina__List_aa4ab38c660af0b7f905125e2fe206891}{\+\_\+\+Eina\+\_\+\+List\+::next}}, and \mbox{\hyperlink{struct__Eina__List_a8ab349e200404f6596222591d2de9f77}{\+\_\+\+Eina\+\_\+\+List\+::prev}}.

\mbox{\Hypertarget{group__Eina__List__Group_gab4f661f25a58eec025a372c8c6861fc9}\label{group__Eina__List__Group_gab4f661f25a58eec025a372c8c6861fc9}} 
\index{List@{List}!eina\_list\_merge@{eina\_list\_merge}}
\index{eina\_list\_merge@{eina\_list\_merge}!List@{List}}
\doxysubsubsection{\texorpdfstring{eina\_list\_merge()}{eina\_list\_merge()}}
{\footnotesize\ttfamily \mbox{\hyperlink{group__Eina__Types__Group_ga6ac08753ba12bc9c7a0390cf67868f4f}{EINA\+\_\+\+API}} \mbox{\hyperlink{group__Eina__List__Group_ga3295e1210efea1fb0fd6acbf3cbc1f29}{Eina\+\_\+\+List}} $\ast$ eina\+\_\+list\+\_\+merge (\begin{DoxyParamCaption}\item[{\mbox{\hyperlink{group__Eina__List__Group_ga3295e1210efea1fb0fd6acbf3cbc1f29}{Eina\+\_\+\+List}} $\ast$}]{left,  }\item[{\mbox{\hyperlink{group__Eina__List__Group_ga3295e1210efea1fb0fd6acbf3cbc1f29}{Eina\+\_\+\+List}} $\ast$}]{right }\end{DoxyParamCaption})}



Merges two list. 


\begin{DoxyParams}[1]{Parameters}
\mbox{\texttt{ in}}  & {\em left} & Head list to merge. \\
\hline
\mbox{\texttt{ in}}  & {\em right} & Tail list to merge. \\
\hline
\end{DoxyParams}
\begin{DoxyReturn}{Returns}
A new merged list.
\end{DoxyReturn}
This function puts right at the end of left and returns the head.

Both left and right do not exist anymore after the merge.

\begin{DoxyNote}{Note}
Merge cost is O(n), being {\bfseries{n}} the size of the smallest list. This is due the need to fix accounting of that segment, making count and last access O(1).
\end{DoxyNote}
\begin{DoxyWarning}{Warning}
{\ttfamily list} must be a pointer to the first element of the list. 
\end{DoxyWarning}


References \mbox{\hyperlink{struct__Eina__List_a8de6c30516f67b8e6b1c97049b3edd05}{\+\_\+\+Eina\+\_\+\+List\+::accounting}}, \mbox{\hyperlink{struct__Eina__List__Accounting_aba4034f1fca9388773f5f33523cffb7f}{\+\_\+\+Eina\+\_\+\+List\+\_\+\+Accounting\+::count}}, \mbox{\hyperlink{struct__Eina__List__Accounting_a31b43d26381e267e44f935688329e46a}{\+\_\+\+Eina\+\_\+\+List\+\_\+\+Accounting\+::last}}, \mbox{\hyperlink{struct__Eina__List_aa4ab38c660af0b7f905125e2fe206891}{\+\_\+\+Eina\+\_\+\+List\+::next}}, and \mbox{\hyperlink{struct__Eina__List_a8ab349e200404f6596222591d2de9f77}{\+\_\+\+Eina\+\_\+\+List\+::prev}}.



Referenced by \mbox{\hyperlink{group__Eina__File__Group_ga64a3123b8e0b9698d30611bacd548b9e}{eina\+\_\+file\+\_\+flush()}}, and \mbox{\hyperlink{group__Evas__Object__Textblock__Group_ga4f65a8e41ce3e4b4e59264ddde80b6fe}{evas\+\_\+textblock\+\_\+cursor\+\_\+range\+\_\+simple\+\_\+geometry\+\_\+get()}}.

\mbox{\Hypertarget{group__Eina__List__Group_ga13adb1de3565ccce834407b43d173bd8}\label{group__Eina__List__Group_ga13adb1de3565ccce834407b43d173bd8}} 
\index{List@{List}!eina\_list\_sorted\_merge@{eina\_list\_sorted\_merge}}
\index{eina\_list\_sorted\_merge@{eina\_list\_sorted\_merge}!List@{List}}
\doxysubsubsection{\texorpdfstring{eina\_list\_sorted\_merge()}{eina\_list\_sorted\_merge()}}
{\footnotesize\ttfamily \mbox{\hyperlink{group__Eina__Types__Group_ga6ac08753ba12bc9c7a0390cf67868f4f}{EINA\+\_\+\+API}} \mbox{\hyperlink{group__Eina__List__Group_ga3295e1210efea1fb0fd6acbf3cbc1f29}{Eina\+\_\+\+List}} $\ast$ eina\+\_\+list\+\_\+sorted\+\_\+merge (\begin{DoxyParamCaption}\item[{\mbox{\hyperlink{group__Eina__List__Group_ga3295e1210efea1fb0fd6acbf3cbc1f29}{Eina\+\_\+\+List}} $\ast$}]{left,  }\item[{\mbox{\hyperlink{group__Eina__List__Group_ga3295e1210efea1fb0fd6acbf3cbc1f29}{Eina\+\_\+\+List}} $\ast$}]{right,  }\item[{\mbox{\hyperlink{group__Eina__Types__Group_ga1b31ffcc0d46eed63a2381c5a011b486}{Eina\+\_\+\+Compare\+\_\+\+Cb}}}]{func }\end{DoxyParamCaption})}



Merges two sorted list according to the ordering func will return. 


\begin{DoxyParams}[1]{Parameters}
\mbox{\texttt{ in}}  & {\em left} & First list to merge. \\
\hline
\mbox{\texttt{ in}}  & {\em right} & Second list to merge. \\
\hline
\mbox{\texttt{ in}}  & {\em func} & A function pointer that can handle comparing the list data nodes. \\
\hline
\end{DoxyParams}
\begin{DoxyReturn}{Returns}
A new sorted list.
\end{DoxyReturn}
This function compares the head of {\ttfamily left} and {\ttfamily right}, and choose the smallest one to be head of the returned list. It will continue this process for all entry of both list.

Both left and right lists are not valid anymore after the merge and should not be used. If {\ttfamily func} is {\ttfamily NULL}, it will return {\ttfamily NULL}.

Example\+: 
\begin{DoxyCode}{0}
\DoxyCodeLine{\textcolor{keywordtype}{int}}
\DoxyCodeLine{sort\_cb(\textcolor{keywordtype}{void}\ *d1,\ \textcolor{keywordtype}{void}\ *d2)}
\DoxyCodeLine{\{}
\DoxyCodeLine{\ \ \ \textcolor{keyword}{const}\ \textcolor{keywordtype}{char}\ *txt\ =\ NULL;}
\DoxyCodeLine{\ \ \ \textcolor{keyword}{const}\ \textcolor{keywordtype}{char}\ *txt2\ =\ NULL;}
\DoxyCodeLine{}
\DoxyCodeLine{\ \ \ \textcolor{keywordflow}{if}(!d1)\ \textcolor{keywordflow}{return}(1);}
\DoxyCodeLine{\ \ \ \textcolor{keywordflow}{if}(!d2)\ \textcolor{keywordflow}{return}(-\/1);}
\DoxyCodeLine{}
\DoxyCodeLine{\ \ \ \textcolor{keywordflow}{return}(strcmp((\textcolor{keyword}{const}\ \textcolor{keywordtype}{char}*)d1,\ (\textcolor{keyword}{const}\ \textcolor{keywordtype}{char}*)d2));}
\DoxyCodeLine{\}}
\DoxyCodeLine{\textcolor{keyword}{extern}\ \mbox{\hyperlink{struct__Eina__List}{Eina\_List}}\ *sorted1;}
\DoxyCodeLine{\textcolor{keyword}{extern}\ \mbox{\hyperlink{struct__Eina__List}{Eina\_List}}\ *sorted2;}
\DoxyCodeLine{}
\DoxyCodeLine{list\ =\ \mbox{\hyperlink{group__Eina__List__Group_ga13adb1de3565ccce834407b43d173bd8}{eina\_list\_sorted\_merge}}(sorted1,\ sorted2,\ sort\_cb);}

\end{DoxyCode}


\begin{DoxyWarning}{Warning}
{\ttfamily list} must be a pointer to the first element of the list. 
\end{DoxyWarning}


References \mbox{\hyperlink{struct__Eina__List_a8de6c30516f67b8e6b1c97049b3edd05}{\+\_\+\+Eina\+\_\+\+List\+::accounting}}, \mbox{\hyperlink{struct__Eina__List__Accounting_aba4034f1fca9388773f5f33523cffb7f}{\+\_\+\+Eina\+\_\+\+List\+\_\+\+Accounting\+::count}}, \mbox{\hyperlink{struct__Eina__List_a043e22d601d3a0504f30255a43a25e7a}{\+\_\+\+Eina\+\_\+\+List\+::data}}, \mbox{\hyperlink{group__Eina__Safety__Checks__Group_gab2b07061fc6500dedd9cd41c8d16f95d}{EINA\+\_\+\+SAFETY\+\_\+\+ON\+\_\+\+NULL\+\_\+\+RETURN\+\_\+\+VAL}}, \mbox{\hyperlink{struct__Eina__List__Accounting_a31b43d26381e267e44f935688329e46a}{\+\_\+\+Eina\+\_\+\+List\+\_\+\+Accounting\+::last}}, \mbox{\hyperlink{struct__Eina__List_aa4ab38c660af0b7f905125e2fe206891}{\+\_\+\+Eina\+\_\+\+List\+::next}}, and \mbox{\hyperlink{struct__Eina__List_a8ab349e200404f6596222591d2de9f77}{\+\_\+\+Eina\+\_\+\+List\+::prev}}.

\mbox{\Hypertarget{group__Eina__List__Group_gaf480f45d017b959f805927666ef6b2ff}\label{group__Eina__List__Group_gaf480f45d017b959f805927666ef6b2ff}} 
\index{List@{List}!eina\_list\_split\_list@{eina\_list\_split\_list}}
\index{eina\_list\_split\_list@{eina\_list\_split\_list}!List@{List}}
\doxysubsubsection{\texorpdfstring{eina\_list\_split\_list()}{eina\_list\_split\_list()}}
{\footnotesize\ttfamily \mbox{\hyperlink{group__Eina__Types__Group_ga6ac08753ba12bc9c7a0390cf67868f4f}{EINA\+\_\+\+API}} \mbox{\hyperlink{group__Eina__List__Group_ga3295e1210efea1fb0fd6acbf3cbc1f29}{Eina\+\_\+\+List}} $\ast$ eina\+\_\+list\+\_\+split\+\_\+list (\begin{DoxyParamCaption}\item[{\mbox{\hyperlink{group__Eina__List__Group_ga3295e1210efea1fb0fd6acbf3cbc1f29}{Eina\+\_\+\+List}} $\ast$}]{list,  }\item[{\mbox{\hyperlink{group__Eina__List__Group_ga3295e1210efea1fb0fd6acbf3cbc1f29}{Eina\+\_\+\+List}} $\ast$}]{relative,  }\item[{\mbox{\hyperlink{group__Eina__List__Group_ga3295e1210efea1fb0fd6acbf3cbc1f29}{Eina\+\_\+\+List}} $\ast$$\ast$}]{right }\end{DoxyParamCaption})}



Splits a list into 2 lists. 


\begin{DoxyParams}[1]{Parameters}
\mbox{\texttt{ in}}  & {\em list} & List to split. \\
\hline
\mbox{\texttt{ in}}  & {\em relative} & The list will be split after {\ttfamily relative}. \\
\hline
\mbox{\texttt{ out}}  & {\em right} & The head of the new right list. \\
\hline
\end{DoxyParams}
\begin{DoxyReturn}{Returns}
The new left list
\end{DoxyReturn}
This function splits {\ttfamily list} into two lists ( left and right ) after the node {\ttfamily relative}. {\ttfamily Relative} will become the last node of the left list. If {\ttfamily list} or {\ttfamily right} are {\ttfamily NULL} list is returns. If {\ttfamily relative} is NULL right is set to {\ttfamily list} and {\ttfamily NULL} is returns. If {\ttfamily relative} is the last node of {\ttfamily list} list is returns and {\ttfamily right} is set to {\ttfamily NULL}.

list does not exist anymore after the split.

\begin{DoxyWarning}{Warning}
{\ttfamily list} must be a pointer to the first element of the list. 
\end{DoxyWarning}


References \mbox{\hyperlink{struct__Eina__List_a8de6c30516f67b8e6b1c97049b3edd05}{\+\_\+\+Eina\+\_\+\+List\+::accounting}}, \mbox{\hyperlink{struct__Eina__List__Accounting_aba4034f1fca9388773f5f33523cffb7f}{\+\_\+\+Eina\+\_\+\+List\+\_\+\+Accounting\+::count}}, \mbox{\hyperlink{struct__Eina__List__Accounting_a31b43d26381e267e44f935688329e46a}{\+\_\+\+Eina\+\_\+\+List\+\_\+\+Accounting\+::last}}, \mbox{\hyperlink{struct__Eina__List_aa4ab38c660af0b7f905125e2fe206891}{\+\_\+\+Eina\+\_\+\+List\+::next}}, and \mbox{\hyperlink{struct__Eina__List_a8ab349e200404f6596222591d2de9f77}{\+\_\+\+Eina\+\_\+\+List\+::prev}}.

\mbox{\Hypertarget{group__Eina__List__Group_ga4e667216422b60be1d6636f821eddea2}\label{group__Eina__List__Group_ga4e667216422b60be1d6636f821eddea2}} 
\index{List@{List}!eina\_list\_search\_sorted\_near\_list@{eina\_list\_search\_sorted\_near\_list}}
\index{eina\_list\_search\_sorted\_near\_list@{eina\_list\_search\_sorted\_near\_list}!List@{List}}
\doxysubsubsection{\texorpdfstring{eina\_list\_search\_sorted\_near\_list()}{eina\_list\_search\_sorted\_near\_list()}}
{\footnotesize\ttfamily \mbox{\hyperlink{group__Eina__Types__Group_ga6ac08753ba12bc9c7a0390cf67868f4f}{EINA\+\_\+\+API}} \mbox{\hyperlink{group__Eina__List__Group_ga3295e1210efea1fb0fd6acbf3cbc1f29}{Eina\+\_\+\+List}} $\ast$ eina\+\_\+list\+\_\+search\+\_\+sorted\+\_\+near\+\_\+list (\begin{DoxyParamCaption}\item[{const \mbox{\hyperlink{group__Eina__List__Group_ga3295e1210efea1fb0fd6acbf3cbc1f29}{Eina\+\_\+\+List}} $\ast$}]{list,  }\item[{\mbox{\hyperlink{group__Eina__Types__Group_ga1b31ffcc0d46eed63a2381c5a011b486}{Eina\+\_\+\+Compare\+\_\+\+Cb}}}]{func,  }\item[{const void $\ast$}]{data,  }\item[{int $\ast$}]{result\+\_\+cmp }\end{DoxyParamCaption})}



Returns node nearest to data from the sorted list. 


\begin{DoxyParams}[1]{Parameters}
\mbox{\texttt{ in}}  & {\em list} & The list to search for data, {\bfseries{must}} be sorted. \\
\hline
\mbox{\texttt{ in}}  & {\em func} & A function pointer that can handle comparing the list data nodes. \\
\hline
\mbox{\texttt{ in}}  & {\em data} & reference value to search. \\
\hline
\mbox{\texttt{ out}}  & {\em result\+\_\+cmp} & If provided returns the result of func(node-\/\texorpdfstring{$>$}{>}data, data) node being the last (returned) node. If node was found (exact match), then it is 0. If returned node is smaller than requested data, it is less than 0 and if it\textquotesingle{}s bigger it\textquotesingle{}s greater than 0. It is the last value returned by func(). \\
\hline
\end{DoxyParams}
\begin{DoxyReturn}{Returns}
The nearest node, {\ttfamily NULL} if not found.
\end{DoxyReturn}
This function searches for a node containing {\ttfamily data} as its data in {\ttfamily list}, if such a node exists it will be returned and {\ttfamily result\+\_\+cmp} will be {\ttfamily 0}. If the data of no node in {\ttfamily list} is equal to {\ttfamily data}, the node with the nearest value to that will be returned and {\ttfamily result\+\_\+cmp} will be the return value of {\ttfamily func} with {\ttfamily data} and the returned node\textquotesingle{}s data as arguments.

This function is useful for inserting an element in the list only in case it isn\textquotesingle{}t already present in the list, the naive way of doing this would be\+: 
\begin{DoxyCode}{0}
\DoxyCodeLine{\textcolor{keywordtype}{void}\ *ptr\ =\ \mbox{\hyperlink{group__Eina__List__Group_ga4ba54f63ed74cb7d81a1046926a93f4c}{eina\_list\_data\_find}}(list,\ \textcolor{stringliteral}{"{}my\ data"{}});}
\DoxyCodeLine{\textcolor{keywordflow}{if}\ (!ptr)}
\DoxyCodeLine{\ \ \mbox{\hyperlink{group__Eina__List__Group_gaa47bc3ae29d8fd946105560b94fc242c}{eina\_list\_sorted\_insert}}(list,\ \textcolor{stringliteral}{"{}my\ data"{}});}

\end{DoxyCode}


However this has the downside of walking through the list twice, once to check if the data is already present and another to insert the element in the correct position. This can be done more efficiently\+: 
\begin{DoxyCode}{0}
\DoxyCodeLine{\textcolor{keywordtype}{int}\ cmp\_result;}
\DoxyCodeLine{l\ =\ \mbox{\hyperlink{group__Eina__List__Group_ga4e667216422b60be1d6636f821eddea2}{eina\_list\_search\_sorted\_near\_list}}(list,\ cmp\_func,\ \textcolor{stringliteral}{"{}my\ data"{}},}
\DoxyCodeLine{\ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \&cmp\_result);}
\DoxyCodeLine{\textcolor{keywordflow}{if}\ (cmp\_result\ >\ 0)}
\DoxyCodeLine{\ \ list\ =\ \mbox{\hyperlink{group__Eina__List__Group_gac2ae5d9426f552b9f70eb573582b491c}{eina\_list\_prepend\_relative\_list}}(list,\ \textcolor{stringliteral}{"{}my\ data"{}},\ l);}
\DoxyCodeLine{\textcolor{keywordflow}{else}\ \textcolor{keywordflow}{if}\ (cmp\_result\ <\ 0)}
\DoxyCodeLine{\ \ list\ =\ \mbox{\hyperlink{group__Eina__List__Group_gaaf5cc0fb74a42e16757e5523bacdee53}{eina\_list\_append\_relative\_list}}(list,\ \textcolor{stringliteral}{"{}my\ data"{}},\ l);}

\end{DoxyCode}


If {\itshape cmp\+\_\+result} is 0 the element is already in the list and we need not insert it, if {\itshape cmp\+\_\+result} is greater than zero {\itshape \char`\"{}my @a data\char`\"{}} needs to come after {\itshape l} (the nearest node present), if less than zero before.

\begin{DoxyNote}{Note}
O(log2(n)) average/worst case performance, for 1,000,000 elements it will do a maximum of 20 comparisons. This is much faster than the 1,000,000 comparisons made naively walking the list from head to tail, so depending on the number of searches and insertions, it may be worth to \mbox{\hyperlink{group__Eina__List__Group_ga568115ea8231ca6baed243032570e15c}{eina\+\_\+list\+\_\+sort()}} the list and do the searches later. As lists do not have O(1) access time, walking to the correct node can be costly, consider worst case to be almost O(n) pointer dereference (list walk).
\end{DoxyNote}
\begin{DoxyWarning}{Warning}
{\ttfamily list} must be a pointer to the first element of the list.
\end{DoxyWarning}
\begin{DoxySeeAlso}{See also}
\mbox{\hyperlink{group__Eina__List__Group_ga930d212790522a34f021dd67f03b141c}{eina\+\_\+list\+\_\+search\+\_\+sorted\+\_\+list()}} 

\mbox{\hyperlink{group__Eina__List__Group_ga568115ea8231ca6baed243032570e15c}{eina\+\_\+list\+\_\+sort()}} 

\mbox{\hyperlink{group__Eina__List__Group_ga13adb1de3565ccce834407b43d173bd8}{eina\+\_\+list\+\_\+sorted\+\_\+merge()}} 
\end{DoxySeeAlso}


References \mbox{\hyperlink{struct__Eina__List_a8de6c30516f67b8e6b1c97049b3edd05}{\+\_\+\+Eina\+\_\+\+List\+::accounting}}, \mbox{\hyperlink{struct__Eina__List__Accounting_aba4034f1fca9388773f5f33523cffb7f}{\+\_\+\+Eina\+\_\+\+List\+\_\+\+Accounting\+::count}}, \mbox{\hyperlink{struct__Eina__List_a043e22d601d3a0504f30255a43a25e7a}{\+\_\+\+Eina\+\_\+\+List\+::data}}, \mbox{\hyperlink{struct__Eina__List__Accounting_a31b43d26381e267e44f935688329e46a}{\+\_\+\+Eina\+\_\+\+List\+\_\+\+Accounting\+::last}}, and \mbox{\hyperlink{struct__Eina__List_aa4ab38c660af0b7f905125e2fe206891}{\+\_\+\+Eina\+\_\+\+List\+::next}}.



Referenced by \mbox{\hyperlink{group__Eina__List__Group_ga930d212790522a34f021dd67f03b141c}{eina\+\_\+list\+\_\+search\+\_\+sorted\+\_\+list()}}, and \mbox{\hyperlink{group__Eina__List__Group_gaa47bc3ae29d8fd946105560b94fc242c}{eina\+\_\+list\+\_\+sorted\+\_\+insert()}}.

\mbox{\Hypertarget{group__Eina__List__Group_ga930d212790522a34f021dd67f03b141c}\label{group__Eina__List__Group_ga930d212790522a34f021dd67f03b141c}} 
\index{List@{List}!eina\_list\_search\_sorted\_list@{eina\_list\_search\_sorted\_list}}
\index{eina\_list\_search\_sorted\_list@{eina\_list\_search\_sorted\_list}!List@{List}}
\doxysubsubsection{\texorpdfstring{eina\_list\_search\_sorted\_list()}{eina\_list\_search\_sorted\_list()}}
{\footnotesize\ttfamily \mbox{\hyperlink{group__Eina__Types__Group_ga6ac08753ba12bc9c7a0390cf67868f4f}{EINA\+\_\+\+API}} \mbox{\hyperlink{group__Eina__List__Group_ga3295e1210efea1fb0fd6acbf3cbc1f29}{Eina\+\_\+\+List}} $\ast$ eina\+\_\+list\+\_\+search\+\_\+sorted\+\_\+list (\begin{DoxyParamCaption}\item[{const \mbox{\hyperlink{group__Eina__List__Group_ga3295e1210efea1fb0fd6acbf3cbc1f29}{Eina\+\_\+\+List}} $\ast$}]{list,  }\item[{\mbox{\hyperlink{group__Eina__Types__Group_ga1b31ffcc0d46eed63a2381c5a011b486}{Eina\+\_\+\+Compare\+\_\+\+Cb}}}]{func,  }\item[{const void $\ast$}]{data }\end{DoxyParamCaption})}



Returns node if data is in the sorted list. 


\begin{DoxyParams}[1]{Parameters}
\mbox{\texttt{ in}}  & {\em list} & The list to search for data, {\bfseries{must}} be sorted. \\
\hline
\mbox{\texttt{ in}}  & {\em func} & A function pointer that can handle comparing the list data nodes. \\
\hline
\mbox{\texttt{ in}}  & {\em data} & reference value to search. \\
\hline
\end{DoxyParams}
\begin{DoxyReturn}{Returns}
The node if func(node-\/\texorpdfstring{$>$}{>}data, data) == 0, {\ttfamily NULL} if not found.
\end{DoxyReturn}
This can be used to check if some value is inside the list and get the container node in this case. It should be used when list is known to be sorted as it will do binary search for results.

Example\+: imagine user gives a string, you check if it\textquotesingle{}s in the list before duplicating its contents.

\begin{DoxyNote}{Note}
O(log2(n)) average/worst case performance, for 1,000,000 elements it will do a maximum of 20 comparisons. This is much faster than the 1,000,000 comparisons made by \mbox{\hyperlink{group__Eina__List__Group_ga69fb43a00f39f78484893854a64cf4f9}{eina\+\_\+list\+\_\+search\+\_\+unsorted\+\_\+list()}}, so depending on the number of searches and insertions, it may be worth to \mbox{\hyperlink{group__Eina__List__Group_ga568115ea8231ca6baed243032570e15c}{eina\+\_\+list\+\_\+sort()}} the list and do the searches later. As said in \mbox{\hyperlink{group__Eina__List__Group_ga4e667216422b60be1d6636f821eddea2}{eina\+\_\+list\+\_\+search\+\_\+sorted\+\_\+near\+\_\+list()}}, lists do not have O(1) access time, so walking to the correct node can be costly, consider worst case to be almost O(n) pointer dereference (list walk).
\end{DoxyNote}
\begin{DoxyWarning}{Warning}
{\ttfamily list} must be a pointer to the first element of the list.
\end{DoxyWarning}
\begin{DoxySeeAlso}{See also}
\mbox{\hyperlink{group__Eina__List__Group_ga18d9422a3f251d7d7205fb5e9708272d}{eina\+\_\+list\+\_\+search\+\_\+sorted()}} 

\mbox{\hyperlink{group__Eina__List__Group_ga568115ea8231ca6baed243032570e15c}{eina\+\_\+list\+\_\+sort()}} 

\mbox{\hyperlink{group__Eina__List__Group_ga13adb1de3565ccce834407b43d173bd8}{eina\+\_\+list\+\_\+sorted\+\_\+merge()}} 

\mbox{\hyperlink{group__Eina__List__Group_ga69fb43a00f39f78484893854a64cf4f9}{eina\+\_\+list\+\_\+search\+\_\+unsorted\+\_\+list()}} 

\mbox{\hyperlink{group__Eina__List__Group_ga4e667216422b60be1d6636f821eddea2}{eina\+\_\+list\+\_\+search\+\_\+sorted\+\_\+near\+\_\+list()}} 
\end{DoxySeeAlso}


References \mbox{\hyperlink{group__Eina__List__Group_ga4e667216422b60be1d6636f821eddea2}{eina\+\_\+list\+\_\+search\+\_\+sorted\+\_\+near\+\_\+list()}}.



Referenced by \mbox{\hyperlink{group__Eina__List__Group_ga18d9422a3f251d7d7205fb5e9708272d}{eina\+\_\+list\+\_\+search\+\_\+sorted()}}.

\mbox{\Hypertarget{group__Eina__List__Group_ga18d9422a3f251d7d7205fb5e9708272d}\label{group__Eina__List__Group_ga18d9422a3f251d7d7205fb5e9708272d}} 
\index{List@{List}!eina\_list\_search\_sorted@{eina\_list\_search\_sorted}}
\index{eina\_list\_search\_sorted@{eina\_list\_search\_sorted}!List@{List}}
\doxysubsubsection{\texorpdfstring{eina\_list\_search\_sorted()}{eina\_list\_search\_sorted()}}
{\footnotesize\ttfamily \mbox{\hyperlink{group__Eina__Types__Group_ga6ac08753ba12bc9c7a0390cf67868f4f}{EINA\+\_\+\+API}} void $\ast$ eina\+\_\+list\+\_\+search\+\_\+sorted (\begin{DoxyParamCaption}\item[{const \mbox{\hyperlink{group__Eina__List__Group_ga3295e1210efea1fb0fd6acbf3cbc1f29}{Eina\+\_\+\+List}} $\ast$}]{list,  }\item[{\mbox{\hyperlink{group__Eina__Types__Group_ga1b31ffcc0d46eed63a2381c5a011b486}{Eina\+\_\+\+Compare\+\_\+\+Cb}}}]{func,  }\item[{const void $\ast$}]{data }\end{DoxyParamCaption})}



Returns node data if it is in the sorted list. 


\begin{DoxyParams}[1]{Parameters}
\mbox{\texttt{ in}}  & {\em list} & The list to search for data, {\bfseries{must}} be sorted. \\
\hline
\mbox{\texttt{ in}}  & {\em func} & A function pointer that can handle comparing the list data nodes. \\
\hline
\mbox{\texttt{ in}}  & {\em data} & reference value to search. \\
\hline
\end{DoxyParams}
\begin{DoxyReturn}{Returns}
The node value ({\ttfamily node-\/\texorpdfstring{$>$}{>}data}) if func(node-\/\texorpdfstring{$>$}{>}data, data) == 0, {\ttfamily NULL} if not found.
\end{DoxyReturn}
This can be used to check if some value is inside the list and get the existing instance in this case. It should be used when list is known to be sorted as it will do binary search for results.

Example\+: imagine user gives a string, you check if it\textquotesingle{}s in the list before duplicating its contents.

\begin{DoxyNote}{Note}
O(log2(n)) average/worst case performance, for 1,000,000 elements it will do a maximum of 20 comparisons. This is much faster than the 1,000,000 comparisons made by \mbox{\hyperlink{group__Eina__List__Group_ga5e876264e6b2de0485c4a701f447db80}{eina\+\_\+list\+\_\+search\+\_\+unsorted()}}, so depending on the number of searches and insertions, it may be worth to \mbox{\hyperlink{group__Eina__List__Group_ga568115ea8231ca6baed243032570e15c}{eina\+\_\+list\+\_\+sort()}} the list and do the searches later. As said in \mbox{\hyperlink{group__Eina__List__Group_ga4e667216422b60be1d6636f821eddea2}{eina\+\_\+list\+\_\+search\+\_\+sorted\+\_\+near\+\_\+list()}}, lists do not have O(1) access time, so walking to the correct node can be costly, consider worst case to be almost O(n) pointer dereference (list walk).
\end{DoxyNote}
\begin{DoxyWarning}{Warning}
{\ttfamily list} must be a pointer to the first element of the list.
\end{DoxyWarning}
\begin{DoxySeeAlso}{See also}
\mbox{\hyperlink{group__Eina__List__Group_ga930d212790522a34f021dd67f03b141c}{eina\+\_\+list\+\_\+search\+\_\+sorted\+\_\+list()}} 

\mbox{\hyperlink{group__Eina__List__Group_ga568115ea8231ca6baed243032570e15c}{eina\+\_\+list\+\_\+sort()}} 

\mbox{\hyperlink{group__Eina__List__Group_ga13adb1de3565ccce834407b43d173bd8}{eina\+\_\+list\+\_\+sorted\+\_\+merge()}} 

\mbox{\hyperlink{group__Eina__List__Group_ga69fb43a00f39f78484893854a64cf4f9}{eina\+\_\+list\+\_\+search\+\_\+unsorted\+\_\+list()}} 
\end{DoxySeeAlso}


References \mbox{\hyperlink{group__Eina__List__Group_ga930d212790522a34f021dd67f03b141c}{eina\+\_\+list\+\_\+search\+\_\+sorted\+\_\+list()}}.

\mbox{\Hypertarget{group__Eina__List__Group_ga69fb43a00f39f78484893854a64cf4f9}\label{group__Eina__List__Group_ga69fb43a00f39f78484893854a64cf4f9}} 
\index{List@{List}!eina\_list\_search\_unsorted\_list@{eina\_list\_search\_unsorted\_list}}
\index{eina\_list\_search\_unsorted\_list@{eina\_list\_search\_unsorted\_list}!List@{List}}
\doxysubsubsection{\texorpdfstring{eina\_list\_search\_unsorted\_list()}{eina\_list\_search\_unsorted\_list()}}
{\footnotesize\ttfamily \mbox{\hyperlink{group__Eina__Types__Group_ga6ac08753ba12bc9c7a0390cf67868f4f}{EINA\+\_\+\+API}} \mbox{\hyperlink{group__Eina__List__Group_ga3295e1210efea1fb0fd6acbf3cbc1f29}{Eina\+\_\+\+List}} $\ast$ eina\+\_\+list\+\_\+search\+\_\+unsorted\+\_\+list (\begin{DoxyParamCaption}\item[{const \mbox{\hyperlink{group__Eina__List__Group_ga3295e1210efea1fb0fd6acbf3cbc1f29}{Eina\+\_\+\+List}} $\ast$}]{list,  }\item[{\mbox{\hyperlink{group__Eina__Types__Group_ga1b31ffcc0d46eed63a2381c5a011b486}{Eina\+\_\+\+Compare\+\_\+\+Cb}}}]{func,  }\item[{const void $\ast$}]{data }\end{DoxyParamCaption})}



Returns node if data is in the unsorted list. 


\begin{DoxyParams}[1]{Parameters}
\mbox{\texttt{ in}}  & {\em list} & The list to search for data, may be unsorted. \\
\hline
\mbox{\texttt{ in}}  & {\em func} & A function pointer that can handle comparing the list data nodes. \\
\hline
\mbox{\texttt{ in}}  & {\em data} & reference value to search. \\
\hline
\end{DoxyParams}
\begin{DoxyReturn}{Returns}
The node if func(node-\/\texorpdfstring{$>$}{>}data, data) == 0, {\ttfamily NULL} if not found.
\end{DoxyReturn}
This can be used to check if some value is inside the list and get the container node in this case.

Example\+: imagine user gives a string, you check if it\textquotesingle{}s in the list before duplicating its contents.

\begin{DoxyNote}{Note}
this is expensive and may walk the whole list, it\textquotesingle{}s order-\/N, that is for 1,000,000 elements list it may walk and compare 1,000,000 nodes.
\end{DoxyNote}
\begin{DoxyWarning}{Warning}
{\ttfamily list} must be a pointer to the first element of the list.
\end{DoxyWarning}
\begin{DoxySeeAlso}{See also}
\mbox{\hyperlink{group__Eina__List__Group_ga930d212790522a34f021dd67f03b141c}{eina\+\_\+list\+\_\+search\+\_\+sorted\+\_\+list()}} 

\mbox{\hyperlink{group__Eina__List__Group_ga5e876264e6b2de0485c4a701f447db80}{eina\+\_\+list\+\_\+search\+\_\+unsorted()}} 
\end{DoxySeeAlso}


References \mbox{\hyperlink{group__Eina__List__Group_gac6efafc19f526d916cdb9757240a8773}{EINA\+\_\+\+LIST\+\_\+\+FOREACH}}.



Referenced by \mbox{\hyperlink{group__Eina__List__Group_ga5e876264e6b2de0485c4a701f447db80}{eina\+\_\+list\+\_\+search\+\_\+unsorted()}}.

\mbox{\Hypertarget{group__Eina__List__Group_ga5e876264e6b2de0485c4a701f447db80}\label{group__Eina__List__Group_ga5e876264e6b2de0485c4a701f447db80}} 
\index{List@{List}!eina\_list\_search\_unsorted@{eina\_list\_search\_unsorted}}
\index{eina\_list\_search\_unsorted@{eina\_list\_search\_unsorted}!List@{List}}
\doxysubsubsection{\texorpdfstring{eina\_list\_search\_unsorted()}{eina\_list\_search\_unsorted()}}
{\footnotesize\ttfamily \mbox{\hyperlink{group__Eina__Types__Group_ga6ac08753ba12bc9c7a0390cf67868f4f}{EINA\+\_\+\+API}} void $\ast$ eina\+\_\+list\+\_\+search\+\_\+unsorted (\begin{DoxyParamCaption}\item[{const \mbox{\hyperlink{group__Eina__List__Group_ga3295e1210efea1fb0fd6acbf3cbc1f29}{Eina\+\_\+\+List}} $\ast$}]{list,  }\item[{\mbox{\hyperlink{group__Eina__Types__Group_ga1b31ffcc0d46eed63a2381c5a011b486}{Eina\+\_\+\+Compare\+\_\+\+Cb}}}]{func,  }\item[{const void $\ast$}]{data }\end{DoxyParamCaption})}



Returns node data if it is in the unsorted list. 


\begin{DoxyParams}[1]{Parameters}
\mbox{\texttt{ in}}  & {\em list} & The list to search for data, may be unsorted. \\
\hline
\mbox{\texttt{ in}}  & {\em func} & A function pointer that can handle comparing the list data nodes. \\
\hline
\mbox{\texttt{ in}}  & {\em data} & reference value to search. \\
\hline
\end{DoxyParams}
\begin{DoxyReturn}{Returns}
The node value ({\ttfamily node-\/\texorpdfstring{$>$}{>}data}) if func(node-\/\texorpdfstring{$>$}{>}data, data) == 0, {\ttfamily NULL} if not found.
\end{DoxyReturn}
This can be used to check if some value is inside the list and get the existing instance in this case.

Example\+: imagine user gives a string, you check if it\textquotesingle{}s in the list before duplicating its contents.

\begin{DoxyNote}{Note}
this is expensive and may walk the whole list, it\textquotesingle{}s order-\/N, that is, for 1,000,000 elements list it may walk and compare 1,000,000 nodes.
\end{DoxyNote}
\begin{DoxyWarning}{Warning}
{\ttfamily list} must be a pointer to the first element of the list.
\end{DoxyWarning}
\begin{DoxySeeAlso}{See also}
\mbox{\hyperlink{group__Eina__List__Group_ga18d9422a3f251d7d7205fb5e9708272d}{eina\+\_\+list\+\_\+search\+\_\+sorted()}} 

\mbox{\hyperlink{group__Eina__List__Group_ga69fb43a00f39f78484893854a64cf4f9}{eina\+\_\+list\+\_\+search\+\_\+unsorted\+\_\+list()}} 
\end{DoxySeeAlso}


References \mbox{\hyperlink{group__Eina__List__Group_ga69fb43a00f39f78484893854a64cf4f9}{eina\+\_\+list\+\_\+search\+\_\+unsorted\+\_\+list()}}.



Referenced by \mbox{\hyperlink{group__Efreet__Desktop_ga096d2e88f5f0d76d5b5406682e31d6a4}{efreet\+\_\+desktop\+\_\+category\+\_\+add()}}, \mbox{\hyperlink{group__Efreet__Desktop_ga8223591c563f6ad2cc4e30d8b3c7ed9b}{efreet\+\_\+desktop\+\_\+category\+\_\+del()}}, \mbox{\hyperlink{group__Efreet__Menu_ga1341ea90ebef422eb859f6fe69e81a1b}{efreet\+\_\+menu\+\_\+desktop\+\_\+remove()}}, \mbox{\hyperlink{group__CopyPaste_ga0ab7b2197c6c0f7c0806ef9842e25995}{elm\+\_\+drag\+\_\+item\+\_\+container\+\_\+add()}}, and \mbox{\hyperlink{group__CopyPaste_ga250bae4f6f8e9195cefae317b180bd43}{elm\+\_\+drop\+\_\+item\+\_\+container\+\_\+add()}}.

\mbox{\Hypertarget{group__Eina__List__Group_gaf6d81c1424bb3b787d5c4f86ca052d7b}\label{group__Eina__List__Group_gaf6d81c1424bb3b787d5c4f86ca052d7b}} 
\index{List@{List}!eina\_list\_last@{eina\_list\_last}}
\index{eina\_list\_last@{eina\_list\_last}!List@{List}}
\doxysubsubsection{\texorpdfstring{eina\_list\_last()}{eina\_list\_last()}}
{\footnotesize\ttfamily static \mbox{\hyperlink{group__Eina__List__Group_ga3295e1210efea1fb0fd6acbf3cbc1f29}{Eina\+\_\+\+List}} $\ast$ eina\+\_\+list\+\_\+last (\begin{DoxyParamCaption}\item[{const \mbox{\hyperlink{group__Eina__List__Group_ga3295e1210efea1fb0fd6acbf3cbc1f29}{Eina\+\_\+\+List}} $\ast$}]{list }\end{DoxyParamCaption})\hspace{0.3cm}{\ttfamily [inline]}, {\ttfamily [static]}}



Gets the last list node in the list. 


\begin{DoxyParams}[1]{Parameters}
\mbox{\texttt{ in}}  & {\em list} & The list to get the last list node from. \\
\hline
\end{DoxyParams}
\begin{DoxyReturn}{Returns}
The last list node in the list.
\end{DoxyReturn}
This function returns the last list node in the list {\ttfamily list}. If {\ttfamily list} is {\ttfamily NULL} or empty, {\ttfamily NULL} is returned.

This is a order-\/1 operation (it takes the same short time regardless of the length of the list).

\begin{DoxyWarning}{Warning}
{\ttfamily list} must be a pointer to the first element of the list. 
\end{DoxyWarning}
\mbox{\Hypertarget{group__Eina__List__Group_gacc28215bbda06902ad98020345b6ccc6}\label{group__Eina__List__Group_gacc28215bbda06902ad98020345b6ccc6}} 
\index{List@{List}!eina\_list\_next@{eina\_list\_next}}
\index{eina\_list\_next@{eina\_list\_next}!List@{List}}
\doxysubsubsection{\texorpdfstring{eina\_list\_next()}{eina\_list\_next()}}
{\footnotesize\ttfamily static \mbox{\hyperlink{group__Eina__List__Group_ga3295e1210efea1fb0fd6acbf3cbc1f29}{Eina\+\_\+\+List}} $\ast$ eina\+\_\+list\+\_\+next (\begin{DoxyParamCaption}\item[{const \mbox{\hyperlink{group__Eina__List__Group_ga3295e1210efea1fb0fd6acbf3cbc1f29}{Eina\+\_\+\+List}} $\ast$}]{list }\end{DoxyParamCaption})\hspace{0.3cm}{\ttfamily [inline]}, {\ttfamily [static]}}



Gets the next list node after the specified list node. 


\begin{DoxyParams}[1]{Parameters}
\mbox{\texttt{ in}}  & {\em list} & The list node to get the next list node from \\
\hline
\end{DoxyParams}
\begin{DoxyReturn}{Returns}
The next list node on success, {\ttfamily NULL} otherwise.
\end{DoxyReturn}
This function returns the next list node after the current one in {\ttfamily list}. It is equivalent to list-\/\texorpdfstring{$>$}{>}next. If {\ttfamily list} is {\ttfamily NULL} or if no next list node exists, it returns {\ttfamily NULL}.

\begin{DoxyWarning}{Warning}
{\ttfamily list} must be a pointer to the first element of the list. 
\end{DoxyWarning}
\mbox{\Hypertarget{group__Eina__List__Group_ga3d169e81c800699fcf197191db0843c6}\label{group__Eina__List__Group_ga3d169e81c800699fcf197191db0843c6}} 
\index{List@{List}!eina\_list\_prev@{eina\_list\_prev}}
\index{eina\_list\_prev@{eina\_list\_prev}!List@{List}}
\doxysubsubsection{\texorpdfstring{eina\_list\_prev()}{eina\_list\_prev()}}
{\footnotesize\ttfamily static \mbox{\hyperlink{group__Eina__List__Group_ga3295e1210efea1fb0fd6acbf3cbc1f29}{Eina\+\_\+\+List}} $\ast$ eina\+\_\+list\+\_\+prev (\begin{DoxyParamCaption}\item[{const \mbox{\hyperlink{group__Eina__List__Group_ga3295e1210efea1fb0fd6acbf3cbc1f29}{Eina\+\_\+\+List}} $\ast$}]{list }\end{DoxyParamCaption})\hspace{0.3cm}{\ttfamily [inline]}, {\ttfamily [static]}}



Gets the list node prior to the specified list node. 


\begin{DoxyParams}[1]{Parameters}
\mbox{\texttt{ in}}  & {\em list} & The list node to get the previous list node from. \\
\hline
\end{DoxyParams}
\begin{DoxyReturn}{Returns}
The previous list node on success, {\ttfamily NULL} otherwise.
\end{DoxyReturn}
This function returns the previous list node before the current one in {\ttfamily list}. It is equivalent to list-\/\texorpdfstring{$>$}{>}prev. If {\ttfamily list} is {\ttfamily NULL} or if no previous list node exists, it returns {\ttfamily NULL}.

\begin{DoxyWarning}{Warning}
{\ttfamily list} must be a pointer to the first element of the list. 
\end{DoxyWarning}
\mbox{\Hypertarget{group__Eina__List__Group_gaa6277c6d3fc6fd4cd15112b06d9fb1b0}\label{group__Eina__List__Group_gaa6277c6d3fc6fd4cd15112b06d9fb1b0}} 
\index{List@{List}!eina\_list\_data\_get@{eina\_list\_data\_get}}
\index{eina\_list\_data\_get@{eina\_list\_data\_get}!List@{List}}
\doxysubsubsection{\texorpdfstring{eina\_list\_data\_get()}{eina\_list\_data\_get()}}
{\footnotesize\ttfamily static void $\ast$ eina\+\_\+list\+\_\+data\+\_\+get (\begin{DoxyParamCaption}\item[{const \mbox{\hyperlink{group__Eina__List__Group_ga3295e1210efea1fb0fd6acbf3cbc1f29}{Eina\+\_\+\+List}} $\ast$}]{list }\end{DoxyParamCaption})\hspace{0.3cm}{\ttfamily [inline]}, {\ttfamily [static]}}



Gets the list node data member. 


\begin{DoxyParams}[1]{Parameters}
\mbox{\texttt{ in}}  & {\em list} & The list node to get the data member of. \\
\hline
\end{DoxyParams}
\begin{DoxyReturn}{Returns}
The data member from the list node.
\end{DoxyReturn}
This function returns the data member of the specified list node {\ttfamily list}. It is equivalent to list-\/\texorpdfstring{$>$}{>}data. If {\ttfamily list} is {\ttfamily NULL}, this function returns {\ttfamily NULL}.

\begin{DoxyWarning}{Warning}
{\ttfamily list} must be a pointer to the first element of the list. 
\end{DoxyWarning}
\mbox{\Hypertarget{group__Eina__List__Group_ga0f408d077ac6eaa4c1546051b52f9e82}\label{group__Eina__List__Group_ga0f408d077ac6eaa4c1546051b52f9e82}} 
\index{List@{List}!eina\_list\_data\_set@{eina\_list\_data\_set}}
\index{eina\_list\_data\_set@{eina\_list\_data\_set}!List@{List}}
\doxysubsubsection{\texorpdfstring{eina\_list\_data\_set()}{eina\_list\_data\_set()}}
{\footnotesize\ttfamily static void $\ast$ eina\+\_\+list\+\_\+data\+\_\+set (\begin{DoxyParamCaption}\item[{\mbox{\hyperlink{group__Eina__List__Group_ga3295e1210efea1fb0fd6acbf3cbc1f29}{Eina\+\_\+\+List}} $\ast$}]{list,  }\item[{const void $\ast$}]{data }\end{DoxyParamCaption})\hspace{0.3cm}{\ttfamily [inline]}, {\ttfamily [static]}}



Sets the list node data member. 


\begin{DoxyParams}[1]{Parameters}
\mbox{\texttt{ in,out}}  & {\em list} & The list node to set the data member of. \\
\hline
\mbox{\texttt{ in}}  & {\em data} & The data to be set. \\
\hline
\end{DoxyParams}
\begin{DoxyReturn}{Returns}
The previous data value.
\end{DoxyReturn}
This function sets the data member {\ttfamily data} of the specified list node {\ttfamily list}. It returns the previous data of the node. If {\ttfamily list} is {\ttfamily NULL}, this function returns {\ttfamily NULL}.

\begin{DoxyWarning}{Warning}
{\ttfamily list} must be a pointer to the first element of the list. 
\end{DoxyWarning}
\mbox{\Hypertarget{group__Eina__List__Group_ga301729054a498a2df09a5f1dd760697e}\label{group__Eina__List__Group_ga301729054a498a2df09a5f1dd760697e}} 
\index{List@{List}!eina\_list\_count@{eina\_list\_count}}
\index{eina\_list\_count@{eina\_list\_count}!List@{List}}
\doxysubsubsection{\texorpdfstring{eina\_list\_count()}{eina\_list\_count()}}
{\footnotesize\ttfamily static unsigned int eina\+\_\+list\+\_\+count (\begin{DoxyParamCaption}\item[{const \mbox{\hyperlink{group__Eina__List__Group_ga3295e1210efea1fb0fd6acbf3cbc1f29}{Eina\+\_\+\+List}} $\ast$}]{list }\end{DoxyParamCaption})\hspace{0.3cm}{\ttfamily [inline]}, {\ttfamily [static]}}



Gets the count of the number of items in a list. 


\begin{DoxyParams}[1]{Parameters}
\mbox{\texttt{ in}}  & {\em list} & The list whose count to return. \\
\hline
\end{DoxyParams}
\begin{DoxyReturn}{Returns}
The number of members in the list.
\end{DoxyReturn}
This function returns the quantity of members that {\ttfamily list} contains. If the list is {\ttfamily NULL}, {\ttfamily 0} is returned.

NB\+: This is an order-\/1 operation and takes the same time regardless of the length of the list.

\begin{DoxyWarning}{Warning}
{\ttfamily list} must be a pointer to the first element of the list. 
\end{DoxyWarning}
\mbox{\Hypertarget{group__Eina__List__Group_ga0e5087cfea80bb395335f8dd5d3cc33e}\label{group__Eina__List__Group_ga0e5087cfea80bb395335f8dd5d3cc33e}} 
\index{List@{List}!eina\_list\_last\_data\_get@{eina\_list\_last\_data\_get}}
\index{eina\_list\_last\_data\_get@{eina\_list\_last\_data\_get}!List@{List}}
\doxysubsubsection{\texorpdfstring{eina\_list\_last\_data\_get()}{eina\_list\_last\_data\_get()}}
{\footnotesize\ttfamily static void $\ast$ eina\+\_\+list\+\_\+last\+\_\+data\+\_\+get (\begin{DoxyParamCaption}\item[{const \mbox{\hyperlink{group__Eina__List__Group_ga3295e1210efea1fb0fd6acbf3cbc1f29}{Eina\+\_\+\+List}} $\ast$}]{list }\end{DoxyParamCaption})\hspace{0.3cm}{\ttfamily [inline]}, {\ttfamily [static]}}



Returns the last list node\textquotesingle{}s data. 


\begin{DoxyParams}[1]{Parameters}
\mbox{\texttt{ in}}  & {\em list} & The list. \\
\hline
\end{DoxyParams}
\begin{DoxyReturn}{Returns}
The node\textquotesingle{}s data, or {\ttfamily NULL} on being passed a {\ttfamily NULL} pointer
\end{DoxyReturn}
This function is a shortcut for typing eina\+\_\+list\+\_\+data\+\_\+get(eina\+\_\+list\+\_\+last()) \begin{DoxySince}{Since}
1.\+8 
\end{DoxySince}
\mbox{\Hypertarget{group__Eina__List__Group_gaaad791a6b6ca783926082e976ce486b9}\label{group__Eina__List__Group_gaaad791a6b6ca783926082e976ce486b9}} 
\index{List@{List}!eina\_list\_iterator\_new@{eina\_list\_iterator\_new}}
\index{eina\_list\_iterator\_new@{eina\_list\_iterator\_new}!List@{List}}
\doxysubsubsection{\texorpdfstring{eina\_list\_iterator\_new()}{eina\_list\_iterator\_new()}}
{\footnotesize\ttfamily \mbox{\hyperlink{group__Eina__Types__Group_ga6ac08753ba12bc9c7a0390cf67868f4f}{EINA\+\_\+\+API}} \mbox{\hyperlink{group__Eina__Iterator__Group_ga15b975bb881d955249ce13d4ebc96948}{Eina\+\_\+\+Iterator}} $\ast$ eina\+\_\+list\+\_\+iterator\+\_\+new (\begin{DoxyParamCaption}\item[{const \mbox{\hyperlink{group__Eina__List__Group_ga3295e1210efea1fb0fd6acbf3cbc1f29}{Eina\+\_\+\+List}} $\ast$}]{list }\end{DoxyParamCaption})}



Returns a new iterator associated with a list. 


\begin{DoxyParams}[1]{Parameters}
\mbox{\texttt{ in}}  & {\em list} & The list. \\
\hline
\end{DoxyParams}
\begin{DoxyReturn}{Returns}
A new iterator, or {\ttfamily NULL} on memory allocation failure.
\end{DoxyReturn}
This function returns a newly allocated iterator associated with {\ttfamily list}. If {\ttfamily list} is {\ttfamily NULL} or the count member of {\ttfamily list} is less than or equal to 0, this function still returns a valid iterator that will always return false on \mbox{\hyperlink{group__Eina__Iterator__Group_gad870f9b1d5fb8892cb9623ad0e7f75b2}{eina\+\_\+iterator\+\_\+next()}}, thus keeping API sane.

\begin{DoxyWarning}{Warning}
{\ttfamily list} must be a pointer to the first element of the list.

if the list structure changes then the iterator becomes invalid! That is, if you add or remove nodes this iterator behavior is undefined and your program may crash! 
\end{DoxyWarning}


References \mbox{\hyperlink{group__Eina__Magic__Group_ga470f5ce28eaaf59ce80523be8471c5e0}{EINA\+\_\+\+MAGIC\+\_\+\+SET}}, \mbox{\hyperlink{group__Eina__Iterator__Group_gad1ea4d3a7e58b47b23073a58e869d167}{FUNC\+\_\+\+ITERATOR\+\_\+\+FREE}}, \mbox{\hyperlink{group__Eina__Iterator__Group_gab41f5a30f0a2030f4a832548d18332db}{FUNC\+\_\+\+ITERATOR\+\_\+\+GET\+\_\+\+CONTAINER}}, and \mbox{\hyperlink{group__Eina__Iterator__Group_gaec80e80b2867e391b0b27f5f20c3a5b3}{FUNC\+\_\+\+ITERATOR\+\_\+\+NEXT}}.



Referenced by \mbox{\hyperlink{group__Ecore__Win32__Group_ga8a9e900c3eb99b5a41b80fb9d8ef2fbd}{ecore\+\_\+win32\+\_\+monitors\+\_\+get()}}.

\mbox{\Hypertarget{group__Eina__List__Group_gafc720f4a3e65e3945ecaba6f7cb34357}\label{group__Eina__List__Group_gafc720f4a3e65e3945ecaba6f7cb34357}} 
\index{List@{List}!eina\_list\_iterator\_reversed\_new@{eina\_list\_iterator\_reversed\_new}}
\index{eina\_list\_iterator\_reversed\_new@{eina\_list\_iterator\_reversed\_new}!List@{List}}
\doxysubsubsection{\texorpdfstring{eina\_list\_iterator\_reversed\_new()}{eina\_list\_iterator\_reversed\_new()}}
{\footnotesize\ttfamily \mbox{\hyperlink{group__Eina__Types__Group_ga6ac08753ba12bc9c7a0390cf67868f4f}{EINA\+\_\+\+API}} \mbox{\hyperlink{group__Eina__Iterator__Group_ga15b975bb881d955249ce13d4ebc96948}{Eina\+\_\+\+Iterator}} $\ast$ eina\+\_\+list\+\_\+iterator\+\_\+reversed\+\_\+new (\begin{DoxyParamCaption}\item[{const \mbox{\hyperlink{group__Eina__List__Group_ga3295e1210efea1fb0fd6acbf3cbc1f29}{Eina\+\_\+\+List}} $\ast$}]{list }\end{DoxyParamCaption})}



Returns a new reversed iterator associated with a list. 


\begin{DoxyParams}[1]{Parameters}
\mbox{\texttt{ in}}  & {\em list} & The list. \\
\hline
\end{DoxyParams}
\begin{DoxyReturn}{Returns}
A new iterator, or {\ttfamily NULL} on memory allocation failure.
\end{DoxyReturn}
This function returns a newly allocated iterator associated with {\ttfamily list}. If {\ttfamily list} is {\ttfamily NULL} or the count member of {\ttfamily list} is less than or equal to 0, this function still returns a valid iterator that will always return false on \mbox{\hyperlink{group__Eina__Iterator__Group_gad870f9b1d5fb8892cb9623ad0e7f75b2}{eina\+\_\+iterator\+\_\+next()}}, thus keeping API sane.

Unlike \mbox{\hyperlink{group__Eina__List__Group_gaaad791a6b6ca783926082e976ce486b9}{eina\+\_\+list\+\_\+iterator\+\_\+new()}}, this will walk the list backwards.

\begin{DoxyWarning}{Warning}
{\ttfamily list} must be a pointer to the first element of the list.

if the list structure changes then the iterator becomes invalid! That is, if you add or remove nodes this iterator behavior is undefined and your program may crash! 
\end{DoxyWarning}


References \mbox{\hyperlink{group__Eina__Magic__Group_ga470f5ce28eaaf59ce80523be8471c5e0}{EINA\+\_\+\+MAGIC\+\_\+\+SET}}, \mbox{\hyperlink{group__Eina__Iterator__Group_gad1ea4d3a7e58b47b23073a58e869d167}{FUNC\+\_\+\+ITERATOR\+\_\+\+FREE}}, \mbox{\hyperlink{group__Eina__Iterator__Group_gab41f5a30f0a2030f4a832548d18332db}{FUNC\+\_\+\+ITERATOR\+\_\+\+GET\+\_\+\+CONTAINER}}, and \mbox{\hyperlink{group__Eina__Iterator__Group_gaec80e80b2867e391b0b27f5f20c3a5b3}{FUNC\+\_\+\+ITERATOR\+\_\+\+NEXT}}.

\mbox{\Hypertarget{group__Eina__List__Group_ga335519c1e915268f4d96233d317ce06d}\label{group__Eina__List__Group_ga335519c1e915268f4d96233d317ce06d}} 
\index{List@{List}!eina\_list\_accessor\_new@{eina\_list\_accessor\_new}}
\index{eina\_list\_accessor\_new@{eina\_list\_accessor\_new}!List@{List}}
\doxysubsubsection{\texorpdfstring{eina\_list\_accessor\_new()}{eina\_list\_accessor\_new()}}
{\footnotesize\ttfamily \mbox{\hyperlink{group__Eina__Types__Group_ga6ac08753ba12bc9c7a0390cf67868f4f}{EINA\+\_\+\+API}} \mbox{\hyperlink{group__Eina__Accessor__Group_ga65199ea5201a1867471028477dc26744}{Eina\+\_\+\+Accessor}} $\ast$ eina\+\_\+list\+\_\+accessor\+\_\+new (\begin{DoxyParamCaption}\item[{const \mbox{\hyperlink{group__Eina__List__Group_ga3295e1210efea1fb0fd6acbf3cbc1f29}{Eina\+\_\+\+List}} $\ast$}]{list }\end{DoxyParamCaption})}



Returns a new accessor associated with a list. 


\begin{DoxyParams}[1]{Parameters}
\mbox{\texttt{ in}}  & {\em list} & The list. \\
\hline
\end{DoxyParams}
\begin{DoxyReturn}{Returns}
A new accessor, or {\ttfamily NULL} on error.
\end{DoxyReturn}
This function returns a newly allocated accessor associated with {\ttfamily list}. If {\ttfamily list} is {\ttfamily NULL} or the count member of {\ttfamily list} is less or equal than 0, this function returns {\ttfamily NULL}. If the memory can not be allocated, {\ttfamily NULL} is returned; otherwise, a valid accessor is returned.

\begin{DoxyWarning}{Warning}
{\ttfamily list} must be a pointer to the first element of the list. 
\end{DoxyWarning}


References \mbox{\hyperlink{group__Eina__Magic__Group_ga470f5ce28eaaf59ce80523be8471c5e0}{EINA\+\_\+\+MAGIC\+\_\+\+SET}}, \mbox{\hyperlink{group__Eina__Safety__Checks__Group_gab2b07061fc6500dedd9cd41c8d16f95d}{EINA\+\_\+\+SAFETY\+\_\+\+ON\+\_\+\+NULL\+\_\+\+RETURN\+\_\+\+VAL}}, \mbox{\hyperlink{group__Eina__Accessor__Group_ga0731ded73bf09c32424d9ed9af030061}{FUNC\+\_\+\+ACCESSOR\+\_\+\+CLONE}}, \mbox{\hyperlink{group__Eina__Accessor__Group_gacbe51b5e7bbd77448af4b0a6b48be101}{FUNC\+\_\+\+ACCESSOR\+\_\+\+FREE}}, \mbox{\hyperlink{group__Eina__Accessor__Group_ga279a8d8204d00590a2f5529e4359bfe3}{FUNC\+\_\+\+ACCESSOR\+\_\+\+GET\+\_\+\+AT}}, and \mbox{\hyperlink{group__Eina__Accessor__Group_gae86a7a10bfdf27781fd930ea1ad0f69b}{FUNC\+\_\+\+ACCESSOR\+\_\+\+GET\+\_\+\+CONTAINER}}.

\mbox{\Hypertarget{group__Eina__List__Group_ga659a2e16b54e639030a744b617fb80a1}\label{group__Eina__List__Group_ga659a2e16b54e639030a744b617fb80a1}} 
\index{List@{List}!eina\_list\_data\_idx@{eina\_list\_data\_idx}}
\index{eina\_list\_data\_idx@{eina\_list\_data\_idx}!List@{List}}
\doxysubsubsection{\texorpdfstring{eina\_list\_data\_idx()}{eina\_list\_data\_idx()}}
{\footnotesize\ttfamily \mbox{\hyperlink{group__Eina__Types__Group_ga6ac08753ba12bc9c7a0390cf67868f4f}{EINA\+\_\+\+API}} int eina\+\_\+list\+\_\+data\+\_\+idx (\begin{DoxyParamCaption}\item[{const \mbox{\hyperlink{group__Eina__List__Group_ga3295e1210efea1fb0fd6acbf3cbc1f29}{Eina\+\_\+\+List}} $\ast$}]{list,  }\item[{void $\ast$}]{data }\end{DoxyParamCaption})}



Finds the member of the list and returns the index. 


\begin{DoxyParams}[1]{Parameters}
\mbox{\texttt{ in}}  & {\em list} & The list. \\
\hline
\mbox{\texttt{ in}}  & {\em data} & The data member. \\
\hline
\end{DoxyParams}
\begin{DoxyReturn}{Returns}
The index of data member if found, {\ttfamily -\/1} otherwise.
\end{DoxyReturn}
This function searches in {\ttfamily list} from beginning to end for the first member whose data pointer is {\ttfamily data}. If it is found, the index of the data will be returned, otherwise {\ttfamily -\/1} will be returned.

\begin{DoxyWarning}{Warning}
{\ttfamily list} must be a pointer to the first element of the list.
\end{DoxyWarning}
\begin{DoxySince}{Since}
1.\+14 
\end{DoxySince}


References \mbox{\hyperlink{group__Eina__List__Group_gac6efafc19f526d916cdb9757240a8773}{EINA\+\_\+\+LIST\+\_\+\+FOREACH}}.

