\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}}
\item 
struct \mbox{\hyperlink{struct__Eina__List__Accounting}{\+\_\+\+Eina\+\_\+\+List\+\_\+\+Accounting}}
\end{DoxyCompactItemize}
\doxysubsection*{Macros}
\begin{DoxyCompactItemize}
\item 
\#define \mbox{\hyperlink{group__Eina__List__Group_gac6efafc19f526d916cdb9757240a8773}{E\+I\+N\+A\+\_\+\+L\+I\+S\+T\+\_\+\+F\+O\+R\+E\+A\+CH}}(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}{E\+I\+N\+A\+\_\+\+L\+I\+S\+T\+\_\+\+R\+E\+V\+E\+R\+S\+E\+\_\+\+F\+O\+R\+E\+A\+CH}}(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}{E\+I\+N\+A\+\_\+\+L\+I\+S\+T\+\_\+\+F\+O\+R\+E\+A\+C\+H\+\_\+\+S\+A\+FE}}(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}{E\+I\+N\+A\+\_\+\+L\+I\+S\+T\+\_\+\+R\+E\+V\+E\+R\+S\+E\+\_\+\+F\+O\+R\+E\+A\+C\+H\+\_\+\+S\+A\+FE}}(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}{E\+I\+N\+A\+\_\+\+L\+I\+S\+T\+\_\+\+F\+R\+EE}}(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 
typedef struct \mbox{\hyperlink{struct__Eina__List}{\+\_\+\+Eina\+\_\+\+List}} \mbox{\hyperlink{group__Eina__List__Group_ga3295e1210efea1fb0fd6acbf3cbc1f29}{Eina\+\_\+\+List}}
\item 
typedef struct \mbox{\hyperlink{struct__Eina__List__Accounting}{\+\_\+\+Eina\+\_\+\+List\+\_\+\+Accounting}} \mbox{\hyperlink{group__Eina__List__Group_gae6fd9c3d1d8d2c9dd01ef647494f5862}{Eina\+\_\+\+List\+\_\+\+Accounting}}
\end{DoxyCompactItemize}
\doxysubsection*{Functions}
\begin{DoxyCompactItemize}
\item 
\mbox{\hyperlink{group__Eina__List__Group_ga3295e1210efea1fb0fd6acbf3cbc1f29}{Eina\+\_\+\+List}} $\ast$ \mbox{\hyperlink{group__Eina__List__Group_ga92ec14d1a1040a361c4d8cd0ab7b0ecc}{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__List__Group_ga3295e1210efea1fb0fd6acbf3cbc1f29}{Eina\+\_\+\+List}} $\ast$ \mbox{\hyperlink{group__Eina__List__Group_ga9f35bfc7c5b798014c3e0a74bc6f39ad}{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__List__Group_ga3295e1210efea1fb0fd6acbf3cbc1f29}{Eina\+\_\+\+List}} $\ast$ \mbox{\hyperlink{group__Eina__List__Group_ga4676c189ca4bcfa22d7ecfbcd00200ae}{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__List__Group_ga3295e1210efea1fb0fd6acbf3cbc1f29}{Eina\+\_\+\+List}} $\ast$ \mbox{\hyperlink{group__Eina__List__Group_gafa705d4483487e53d1be93a30e43c66d}{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__List__Group_ga3295e1210efea1fb0fd6acbf3cbc1f29}{Eina\+\_\+\+List}} $\ast$ \mbox{\hyperlink{group__Eina__List__Group_gad44370d18554ff250d2e9ddac4653caf}{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__List__Group_ga3295e1210efea1fb0fd6acbf3cbc1f29}{Eina\+\_\+\+List}} $\ast$ \mbox{\hyperlink{group__Eina__List__Group_ga03a77b1579ee83bcab4bc3d67375d4b1}{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__List__Group_ga3295e1210efea1fb0fd6acbf3cbc1f29}{Eina\+\_\+\+List}} $\ast$ \mbox{\hyperlink{group__Eina__List__Group_ga00740e04bfb71ad5c9ac145f766de3a4}{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__List__Group_ga3295e1210efea1fb0fd6acbf3cbc1f29}{Eina\+\_\+\+List}} $\ast$ \mbox{\hyperlink{group__Eina__List__Group_ga7c0c6e07aa592a1cb2e010049a718035}{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__List__Group_ga3295e1210efea1fb0fd6acbf3cbc1f29}{Eina\+\_\+\+List}} $\ast$ \mbox{\hyperlink{group__Eina__List__Group_ga7edefe0975beecc76c02525fb9200f5a}{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__List__Group_ga3295e1210efea1fb0fd6acbf3cbc1f29}{Eina\+\_\+\+List}} $\ast$ \mbox{\hyperlink{group__Eina__List__Group_ga1037e7ab9d39bece24d864526332828c}{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__List__Group_ga3295e1210efea1fb0fd6acbf3cbc1f29}{Eina\+\_\+\+List}} $\ast$ \mbox{\hyperlink{group__Eina__List__Group_ga082644881a2333bd16208c00931703cd}{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 
void $\ast$ \mbox{\hyperlink{group__Eina__List__Group_ga48e7356e1e0975bcabfce6f5c4ec9160}{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__List__Group_ga3295e1210efea1fb0fd6acbf3cbc1f29}{Eina\+\_\+\+List}} $\ast$ \mbox{\hyperlink{group__Eina__List__Group_ga860144725b63d93b8f84cdf1d816bda8}{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_ga3fe0caf72e93b1bab1ca8ee3ccf3f226}{Eina\+\_\+\+Bool}} \mbox{\hyperlink{group__Eina__List__Group_ga46a38e2bf6b9a52b7a5dd17c63ca5f60}{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_ga3fe0caf72e93b1bab1ca8ee3ccf3f226}{Eina\+\_\+\+Bool}} \mbox{\hyperlink{group__Eina__List__Group_ga7e8227ff134ddf5c70fa0a0ede35fe64}{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__List__Group_ga3295e1210efea1fb0fd6acbf3cbc1f29}{Eina\+\_\+\+List}} $\ast$ \mbox{\hyperlink{group__Eina__List__Group_ga608bd2fbf06293a1b794648990703ab4}{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 
void $\ast$ \mbox{\hyperlink{group__Eina__List__Group_ga4bd18d6ffc9920cd904bb7769f2fad8e}{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 N\+U\+LL} on error. \end{DoxyCompactList}\item 
\mbox{\hyperlink{group__Eina__List__Group_ga3295e1210efea1fb0fd6acbf3cbc1f29}{Eina\+\_\+\+List}} $\ast$ \mbox{\hyperlink{group__Eina__List__Group_gad4a1e3b0fdecd8ed4cb2ff592ceeb553}{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__List__Group_ga3295e1210efea1fb0fd6acbf3cbc1f29}{Eina\+\_\+\+List}} $\ast$ \mbox{\hyperlink{group__Eina__List__Group_ga2f0c56af6f6ae8f149c317d4152b407d}{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__List__Group_ga3295e1210efea1fb0fd6acbf3cbc1f29}{Eina\+\_\+\+List}} $\ast$ \mbox{\hyperlink{group__Eina__List__Group_ga67cb29eef0bf0a3cb2cc160ae506a07f}{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__List__Group_ga3295e1210efea1fb0fd6acbf3cbc1f29}{Eina\+\_\+\+List}} $\ast$ \mbox{\hyperlink{group__Eina__List__Group_gae26360b939fc874e7ae4fab705bd3ac3}{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__List__Group_ga3295e1210efea1fb0fd6acbf3cbc1f29}{Eina\+\_\+\+List}} $\ast$ \mbox{\hyperlink{group__Eina__List__Group_gaa634ce6790e626fd057ecdcfdc841d47}{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__List__Group_ga3295e1210efea1fb0fd6acbf3cbc1f29}{Eina\+\_\+\+List}} $\ast$ \mbox{\hyperlink{group__Eina__List__Group_ga2b03712f212a6557885b11ea382f5459}{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__List__Group_ga3295e1210efea1fb0fd6acbf3cbc1f29}{Eina\+\_\+\+List}} $\ast$ \mbox{\hyperlink{group__Eina__List__Group_ga743c5a32e64f227059d2baa4dba63a6b}{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__List__Group_ga3295e1210efea1fb0fd6acbf3cbc1f29}{Eina\+\_\+\+List}} $\ast$ \mbox{\hyperlink{group__Eina__List__Group_ga66747ee5bad3c35ea268385f6c5e174b}{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__List__Group_ga3295e1210efea1fb0fd6acbf3cbc1f29}{Eina\+\_\+\+List}} $\ast$ \mbox{\hyperlink{group__Eina__List__Group_gaf45625cf0f450aae2a4e949539b22374}{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__List__Group_ga3295e1210efea1fb0fd6acbf3cbc1f29}{Eina\+\_\+\+List}} $\ast$ \mbox{\hyperlink{group__Eina__List__Group_ga44af3419fd1f66ffefc4998e54c4ca70}{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__List__Group_ga3295e1210efea1fb0fd6acbf3cbc1f29}{Eina\+\_\+\+List}} $\ast$ \mbox{\hyperlink{group__Eina__List__Group_ga6a0564d119664930b3a41657c1551e09}{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 
void $\ast$ \mbox{\hyperlink{group__Eina__List__Group_gae18055abaafef1714bd9f2fd3fd0cc45}{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__List__Group_ga3295e1210efea1fb0fd6acbf3cbc1f29}{Eina\+\_\+\+List}} $\ast$ \mbox{\hyperlink{group__Eina__List__Group_ga326ba1ce720272160559fcca1abb100d}{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 
void $\ast$ \mbox{\hyperlink{group__Eina__List__Group_ga2c093bfd321df8f286fcfeb3d13d675f}{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_ga4c3a9eb5062f3b44c5dcef845cc7a72a}{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_gac264188a790dda0761d587578605bfd1}{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_gacd8294cbab7b4e053bcf754a92dd68e3}{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_gaec845f0bfb16a14e8d7f0cd508ca7e9c}{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_ga213776ffa28b780440da26f673917687}{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_ga2527a7564e99615a6d0d87bc1a988592}{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__Iterator__Group_ga15b975bb881d955249ce13d4ebc96948}{Eina\+\_\+\+Iterator}} $\ast$ \mbox{\hyperlink{group__Eina__List__Group_gabcfb6a861aa7c0db0ee36252ac2a254d}{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__Iterator__Group_ga15b975bb881d955249ce13d4ebc96948}{Eina\+\_\+\+Iterator}} $\ast$ \mbox{\hyperlink{group__Eina__List__Group_gaaa11ab61d3d86c9350cb0757468a9089}{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__Accessor__Group_ga65199ea5201a1867471028477dc26744}{Eina\+\_\+\+Accessor}} $\ast$ \mbox{\hyperlink{group__Eina__List__Group_ga6901b2ea29c9bc34a486dae00d3cf608}{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 
int \mbox{\hyperlink{group__Eina__List__Group_gae3497ac1658a5d72cea494b700b46fad}{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_ga4676c189ca4bcfa22d7ecfbcd00200ae}{eina\+\_\+list\+\_\+append\+\_\+relative}}, \mbox{\hyperlink{group__Eina__List__Group_ga7c0c6e07aa592a1cb2e010049a718035}{eina\+\_\+list\+\_\+remove}}, \mbox{\hyperlink{group__Eina__List__Group_ga48e7356e1e0975bcabfce6f5c4ec9160}{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 E\+I\+N\+A\+\_\+\+L\+I\+S\+T\+\_\+\+F\+O\+R\+E\+A\+CH(\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_gaec845f0bfb16a14e8d7f0cd508ca7e9c}{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_gac264188a790dda0761d587578605bfd1}{eina\_list\_next}}(l),            \(\backslash\)}
\DoxyCodeLine{       \_data = \mbox{\hyperlink{group__Eina__List__Group_gaec845f0bfb16a14e8d7f0cd508ca7e9c}{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_ga608bd2fbf06293a1b794648990703ab4}{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}{E\+I\+N\+A\+\_\+\+L\+I\+S\+T\+\_\+\+F\+R\+E\+E()}}.
\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}{E\+I\+N\+A\+\_\+\+L\+I\+S\+T\+\_\+\+F\+O\+R\+E\+A\+C\+H\+\_\+\+S\+A\+F\+E()}}. 
\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{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 E\+I\+N\+A\+\_\+\+L\+I\+S\+T\+\_\+\+R\+E\+V\+E\+R\+S\+E\+\_\+\+F\+O\+R\+E\+A\+CH(\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_ga4c3a9eb5062f3b44c5dcef845cc7a72a}{eina\_list\_last}}(list),                 \(\backslash\)}
\DoxyCodeLine{       \_data = \mbox{\hyperlink{group__Eina__List__Group_gaec845f0bfb16a14e8d7f0cd508ca7e9c}{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_gacd8294cbab7b4e053bcf754a92dd68e3}{eina\_list\_prev}}(l),                    \(\backslash\)}
\DoxyCodeLine{       \_data = \mbox{\hyperlink{group__Eina__List__Group_gaec845f0bfb16a14e8d7f0cd508ca7e9c}{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 E\+I\+N\+A\+\_\+\+L\+I\+S\+T\+\_\+\+F\+O\+R\+E\+A\+CH, 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_ga608bd2fbf06293a1b794648990703ab4}{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}{E\+I\+N\+A\+\_\+\+L\+I\+S\+T\+\_\+\+F\+R\+E\+E()}}.
\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}{E\+I\+N\+A\+\_\+\+L\+I\+S\+T\+\_\+\+R\+E\+V\+E\+R\+S\+E\+\_\+\+F\+O\+R\+E\+A\+C\+H\+\_\+\+S\+A\+F\+E()}}. 
\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 E\+I\+N\+A\+\_\+\+L\+I\+S\+T\+\_\+\+F\+O\+R\+E\+A\+C\+H\+\_\+\+S\+A\+FE(\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_gac264188a790dda0761d587578605bfd1}{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_gaec845f0bfb16a14e8d7f0cd508ca7e9c}{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_gac264188a790dda0761d587578605bfd1}{eina\_list\_next}}(l),                    \(\backslash\)}
\DoxyCodeLine{       EINA\_PREFETCH(l\_next),                         \(\backslash\)}
\DoxyCodeLine{       data = \mbox{\hyperlink{group__Eina__List__Group_gaec845f0bfb16a14e8d7f0cd508ca7e9c}{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_ga7edefe0975beecc76c02525fb9200f5a}{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 E\+I\+N\+A\+\_\+\+L\+I\+S\+T\+\_\+\+R\+E\+V\+E\+R\+S\+E\+\_\+\+F\+O\+R\+E\+A\+C\+H\+\_\+\+S\+A\+FE(\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_ga4c3a9eb5062f3b44c5dcef845cc7a72a}{eina\_list\_last}}(list),                              \(\backslash\)}
\DoxyCodeLine{       l\_prev = \mbox{\hyperlink{group__Eina__List__Group_gacd8294cbab7b4e053bcf754a92dd68e3}{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_gaec845f0bfb16a14e8d7f0cd508ca7e9c}{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_gacd8294cbab7b4e053bcf754a92dd68e3}{eina\_list\_prev}}(l),                            \(\backslash\)}
\DoxyCodeLine{       EINA\_PREFETCH(l\_prev),                                 \(\backslash\)}
\DoxyCodeLine{       data = \mbox{\hyperlink{group__Eina__List__Group_gaec845f0bfb16a14e8d7f0cd508ca7e9c}{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 E\+I\+N\+A\+\_\+\+L\+I\+S\+T\+\_\+\+F\+O\+R\+E\+A\+C\+H\+\_\+\+S\+A\+FE, 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_ga7edefe0975beecc76c02525fb9200f5a}{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 E\+I\+N\+A\+\_\+\+L\+I\+S\+T\+\_\+\+F\+R\+EE(\begin{DoxyParamCaption}\item[{}]{list,  }\item[{}]{data }\end{DoxyParamCaption})}

{\bfseries Value\+:}
\begin{DoxyCode}{0}
\DoxyCodeLine{\textcolor{keywordflow}{for} (data = \mbox{\hyperlink{group__Eina__List__Group_gaec845f0bfb16a14e8d7f0cd508ca7e9c}{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_ga7edefe0975beecc76c02525fb9200f5a}{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_gaec845f0bfb16a14e8d7f0cd508ca7e9c}{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_ga7edefe0975beecc76c02525fb9200f5a}{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_ga608bd2fbf06293a1b794648990703ab4}{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_ga608bd2fbf06293a1b794648990703ab4}{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{genlist_example_02_8c-example}{genlist\+\_\+example\+\_\+02.\+c}}, and \mbox{\hyperlink{genlist_example_05_8c-example}{genlist\+\_\+example\+\_\+05.\+c}}.\end{Desc}


\doxysubsection{Typedef Documentation}
\mbox{\Hypertarget{group__Eina__List__Group_ga3295e1210efea1fb0fd6acbf3cbc1f29}\label{group__Eina__List__Group_ga3295e1210efea1fb0fd6acbf3cbc1f29}} 
\index{List@{List}!Eina\_List@{Eina\_List}}
\index{Eina\_List@{Eina\_List}!List@{List}}
\doxysubsubsection{\texorpdfstring{Eina\_List}{Eina\_List}}
{\footnotesize\ttfamily \mbox{\hyperlink{group__Eina__List__Group_ga3295e1210efea1fb0fd6acbf3cbc1f29}{Eina\+\_\+\+List}}}

Type for a generic double linked list. \mbox{\Hypertarget{group__Eina__List__Group_gae6fd9c3d1d8d2c9dd01ef647494f5862}\label{group__Eina__List__Group_gae6fd9c3d1d8d2c9dd01ef647494f5862}} 
\index{List@{List}!Eina\_List\_Accounting@{Eina\_List\_Accounting}}
\index{Eina\_List\_Accounting@{Eina\_List\_Accounting}!List@{List}}
\doxysubsubsection{\texorpdfstring{Eina\_List\_Accounting}{Eina\_List\_Accounting}}
{\footnotesize\ttfamily \mbox{\hyperlink{group__Eina__List__Group_gae6fd9c3d1d8d2c9dd01ef647494f5862}{Eina\+\_\+\+List\+\_\+\+Accounting}}}

Cache used to store the last element of a list and the number of elements, for fast access. 

\doxysubsection{Function Documentation}
\mbox{\Hypertarget{group__Eina__List__Group_ga92ec14d1a1040a361c4d8cd0ab7b0ecc}\label{group__Eina__List__Group_ga92ec14d1a1040a361c4d8cd0ab7b0ecc}} 
\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__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 N\+U\+LL} on error.
\end{DoxyReturn}
This function appends {\ttfamily data} to {\ttfamily list}. If {\ttfamily list} is {\ttfamily N\+U\+LL}, 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_ga92ec14d1a1040a361c4d8cd0ab7b0ecc}{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 N\+U\+L\+L). 
\end{DoxyWarning}


References \+\_\+\+Eina\+\_\+\+List\+::accounting, \+\_\+\+Eina\+\_\+\+List\+::data, \+\_\+\+Eina\+\_\+\+List\+\_\+\+Accounting\+::last, \+\_\+\+Eina\+\_\+\+List\+::next, and \+\_\+\+Eina\+\_\+\+List\+::prev.



Referenced by ecore\+\_\+con\+\_\+lookup(), ecore\+\_\+con\+\_\+socks4\+\_\+remote\+\_\+add(), ecore\+\_\+con\+\_\+socks5\+\_\+remote\+\_\+add(), ecore\+\_\+con\+\_\+ssl\+\_\+server\+\_\+cafile\+\_\+add(), ecore\+\_\+con\+\_\+ssl\+\_\+server\+\_\+cert\+\_\+add(), ecore\+\_\+con\+\_\+ssl\+\_\+server\+\_\+crl\+\_\+add(), ecore\+\_\+con\+\_\+ssl\+\_\+server\+\_\+privkey\+\_\+add(), ecore\+\_\+con\+\_\+url\+\_\+new(), ecore\+\_\+drm2\+\_\+plane\+\_\+assign(), ecore\+\_\+drm2\+\_\+plane\+\_\+fb\+\_\+set(), ecore\+\_\+drm2\+\_\+plane\+\_\+release(), ecore\+\_\+drm\+\_\+device\+\_\+find(), ecore\+\_\+evas\+\_\+aux\+\_\+hint\+\_\+add(), ecore\+\_\+evas\+\_\+aux\+\_\+hints\+\_\+allowed\+\_\+get(), ecore\+\_\+evas\+\_\+ecore\+\_\+evas\+\_\+list\+\_\+get(), ecore\+\_\+evas\+\_\+ews\+\_\+new(), ecore\+\_\+evas\+\_\+vnc\+\_\+start(), ecore\+\_\+file\+\_\+ls(), ecore\+\_\+fork\+\_\+reset\+\_\+callback\+\_\+add(), ecore\+\_\+imf\+\_\+context\+\_\+event\+\_\+callback\+\_\+add(), ecore\+\_\+imf\+\_\+context\+\_\+input\+\_\+panel\+\_\+event\+\_\+callback\+\_\+add(), ecore\+\_\+main\+\_\+fd\+\_\+handler\+\_\+prepare\+\_\+callback\+\_\+set(), ecore\+\_\+thread\+\_\+feedback\+\_\+run(), ecore\+\_\+thread\+\_\+run(), ecore\+\_\+wl2\+\_\+offer\+\_\+receive(), ecore\+\_\+wl2\+\_\+window\+\_\+aux\+\_\+hints\+\_\+supported\+\_\+get(), edje\+\_\+available\+\_\+modules\+\_\+get(), edje\+\_\+edit\+\_\+color\+\_\+class\+\_\+add(), edje\+\_\+edit\+\_\+color\+\_\+classes\+\_\+list\+\_\+get(), edje\+\_\+edit\+\_\+data\+\_\+list\+\_\+get(), edje\+\_\+edit\+\_\+externals\+\_\+list\+\_\+get(), edje\+\_\+edit\+\_\+fonts\+\_\+list\+\_\+get(), edje\+\_\+edit\+\_\+group\+\_\+aliases\+\_\+get(), edje\+\_\+edit\+\_\+group\+\_\+data\+\_\+list\+\_\+get(), edje\+\_\+edit\+\_\+image\+\_\+set\+\_\+image\+\_\+add(), edje\+\_\+edit\+\_\+image\+\_\+set\+\_\+images\+\_\+list\+\_\+get(), edje\+\_\+edit\+\_\+image\+\_\+set\+\_\+list\+\_\+get(), edje\+\_\+edit\+\_\+images\+\_\+list\+\_\+get(), edje\+\_\+edit\+\_\+part\+\_\+items\+\_\+list\+\_\+get(), edje\+\_\+edit\+\_\+parts\+\_\+list\+\_\+get(), edje\+\_\+edit\+\_\+program\+\_\+after\+\_\+add(), edje\+\_\+edit\+\_\+program\+\_\+after\+\_\+insert\+\_\+at(), edje\+\_\+edit\+\_\+program\+\_\+target\+\_\+add(), edje\+\_\+edit\+\_\+program\+\_\+target\+\_\+insert\+\_\+at(), edje\+\_\+edit\+\_\+programs\+\_\+list\+\_\+get(), edje\+\_\+edit\+\_\+size\+\_\+class\+\_\+add(), edje\+\_\+edit\+\_\+size\+\_\+classes\+\_\+list\+\_\+get(), edje\+\_\+edit\+\_\+sound\+\_\+samples\+\_\+list\+\_\+get(), edje\+\_\+edit\+\_\+sound\+\_\+tones\+\_\+list\+\_\+get(), edje\+\_\+edit\+\_\+state\+\_\+add(), edje\+\_\+edit\+\_\+state\+\_\+external\+\_\+param\+\_\+set(), edje\+\_\+edit\+\_\+state\+\_\+tweens\+\_\+list\+\_\+get(), edje\+\_\+edit\+\_\+style\+\_\+add(), edje\+\_\+edit\+\_\+style\+\_\+tag\+\_\+add(), edje\+\_\+edit\+\_\+style\+\_\+tags\+\_\+list\+\_\+get(), edje\+\_\+edit\+\_\+styles\+\_\+list\+\_\+get(), edje\+\_\+edit\+\_\+text\+\_\+class\+\_\+add(), edje\+\_\+edit\+\_\+text\+\_\+classes\+\_\+list\+\_\+get(), edje\+\_\+edit\+\_\+vectors\+\_\+list\+\_\+get(), edje\+\_\+mmap\+\_\+collection\+\_\+list(), edje\+\_\+mmap\+\_\+group\+\_\+exists(), edje\+\_\+object\+\_\+perspective\+\_\+set(), eet\+\_\+eina\+\_\+stream\+\_\+data\+\_\+descriptor\+\_\+class\+\_\+set(), eet\+\_\+node\+\_\+hash\+\_\+new(), eet\+\_\+node\+\_\+list\+\_\+append(), eeze\+\_\+disk\+\_\+eject(), eeze\+\_\+disk\+\_\+new\+\_\+from\+\_\+mount(), eeze\+\_\+disk\+\_\+unmount(), eeze\+\_\+net\+\_\+list(), eeze\+\_\+udev\+\_\+find\+\_\+by\+\_\+filter(), eeze\+\_\+udev\+\_\+find\+\_\+by\+\_\+subsystem\+\_\+sysname(), eeze\+\_\+udev\+\_\+find\+\_\+by\+\_\+sysattr(), eeze\+\_\+udev\+\_\+find\+\_\+by\+\_\+type(), eeze\+\_\+udev\+\_\+syspath\+\_\+get\+\_\+parents(), eeze\+\_\+udev\+\_\+syspath\+\_\+get\+\_\+sysattr\+\_\+list(), efl\+\_\+class\+\_\+new(), efreet\+\_\+desktop\+\_\+category\+\_\+add(), efreet\+\_\+desktop\+\_\+command\+\_\+local\+\_\+get(), efreet\+\_\+desktop\+\_\+command\+\_\+progress\+\_\+get(), efreet\+\_\+desktop\+\_\+string\+\_\+list\+\_\+parse(), efreet\+\_\+desktop\+\_\+type\+\_\+add(), efreet\+\_\+icon\+\_\+list\+\_\+find(), efreet\+\_\+util\+\_\+desktop\+\_\+categories\+\_\+list(), efreet\+\_\+util\+\_\+desktop\+\_\+environments\+\_\+list(), efreet\+\_\+util\+\_\+desktop\+\_\+exec\+\_\+glob\+\_\+list(), eina\+\_\+benchmark\+\_\+run(), eina\+\_\+debug\+\_\+opcodes\+\_\+register(), eina\+\_\+file\+\_\+flush(), eina\+\_\+hash\+\_\+list\+\_\+append(), eina\+\_\+hash\+\_\+list\+\_\+direct\+\_\+append(), eina\+\_\+hash\+\_\+list\+\_\+direct\+\_\+prepend(), eina\+\_\+hash\+\_\+list\+\_\+prepend(), eina\+\_\+list\+\_\+append\+\_\+relative(), eina\+\_\+list\+\_\+append\+\_\+relative\+\_\+list(), eina\+\_\+list\+\_\+clone(), eina\+\_\+list\+\_\+move(), eina\+\_\+list\+\_\+move\+\_\+list(), eina\+\_\+list\+\_\+sorted\+\_\+insert(), eina\+\_\+multi\+\_\+iterator\+\_\+internal\+\_\+new(), eina\+\_\+rectangle\+\_\+pool\+\_\+new(), eldbus\+\_\+connection\+\_\+event\+\_\+callback\+\_\+del(), eldbus\+\_\+name\+\_\+owner\+\_\+changed\+\_\+callback\+\_\+del(), eldbus\+\_\+object\+\_\+event\+\_\+callback\+\_\+del(), eldbus\+\_\+object\+\_\+signal\+\_\+handler\+\_\+add(), eldbus\+\_\+proxy\+\_\+event\+\_\+callback\+\_\+del(), eldbus\+\_\+proxy\+\_\+signal\+\_\+handler\+\_\+add(), elm\+\_\+cnp\+\_\+selection\+\_\+loss\+\_\+callback\+\_\+set(), elm\+\_\+color\+\_\+class\+\_\+editor\+\_\+add(), elm\+\_\+color\+\_\+class\+\_\+util\+\_\+edje\+\_\+file\+\_\+list(), elm\+\_\+config\+\_\+profile\+\_\+derived\+\_\+add(), elm\+\_\+drag\+\_\+item\+\_\+container\+\_\+add(), elm\+\_\+drop\+\_\+item\+\_\+container\+\_\+add(), elm\+\_\+drop\+\_\+target\+\_\+add(), elm\+\_\+layout\+\_\+content\+\_\+swallow\+\_\+list\+\_\+get(), elm\+\_\+theme\+\_\+copy(), elm\+\_\+theme\+\_\+extension\+\_\+list\+\_\+get(), elm\+\_\+theme\+\_\+list\+\_\+get(), elm\+\_\+theme\+\_\+overlay\+\_\+list\+\_\+get(), elm\+\_\+theme\+\_\+ref\+\_\+set(), elm\+\_\+transit\+\_\+chain\+\_\+transit\+\_\+add(), elm\+\_\+transit\+\_\+object\+\_\+add(), elua\+\_\+state\+\_\+include\+\_\+path\+\_\+add(), elua\+\_\+util\+\_\+require(), ethumb\+\_\+client\+\_\+thumb\+\_\+exists(), evas\+\_\+font\+\_\+path\+\_\+global\+\_\+append(), evas\+\_\+object\+\_\+box\+\_\+children\+\_\+get(), evas\+\_\+object\+\_\+smart\+\_\+members\+\_\+get(), and evas\+\_\+textblock\+\_\+cursor\+\_\+range\+\_\+formats\+\_\+get().

\mbox{\Hypertarget{group__Eina__List__Group_ga9f35bfc7c5b798014c3e0a74bc6f39ad}\label{group__Eina__List__Group_ga9f35bfc7c5b798014c3e0a74bc6f39ad}} 
\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__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 N\+U\+LL} on error.
\end{DoxyReturn}
This function prepends {\ttfamily data} to {\ttfamily list}. If {\ttfamily list} is {\ttfamily N\+U\+LL}, 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_ga9f35bfc7c5b798014c3e0a74bc6f39ad}{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 \+\_\+\+Eina\+\_\+\+List\+::data, \+\_\+\+Eina\+\_\+\+List\+::next, and \+\_\+\+Eina\+\_\+\+List\+::prev.



Referenced by edje\+\_\+edit\+\_\+group\+\_\+add(), eet\+\_\+node\+\_\+struct\+\_\+child\+\_\+new(), eeze\+\_\+udev\+\_\+find\+\_\+similar\+\_\+from\+\_\+syspath(), efl\+\_\+class\+\_\+new(), efreet\+\_\+icon\+\_\+extension\+\_\+add(), eina\+\_\+hash\+\_\+list\+\_\+direct\+\_\+prepend(), eina\+\_\+hash\+\_\+list\+\_\+prepend(), eina\+\_\+list\+\_\+prepend\+\_\+relative(), eina\+\_\+list\+\_\+prepend\+\_\+relative\+\_\+list(), eina\+\_\+list\+\_\+reverse\+\_\+clone(), evas\+\_\+font\+\_\+path\+\_\+global\+\_\+prepend(), evas\+\_\+gl\+\_\+pbuffer\+\_\+surface\+\_\+create(), evas\+\_\+gl\+\_\+surface\+\_\+create(), and evas\+\_\+textblock\+\_\+node\+\_\+format\+\_\+remove\+\_\+pair().

\mbox{\Hypertarget{group__Eina__List__Group_ga4676c189ca4bcfa22d7ecfbcd00200ae}\label{group__Eina__List__Group_ga4676c189ca4bcfa22d7ecfbcd00200ae}} 
\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__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 N\+U\+LL} 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 N\+U\+LL}, 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_ga92ec14d1a1040a361c4d8cd0ab7b0ecc}{eina\_list\_append}}(list, relative\_member);}
\DoxyCodeLine{list = \mbox{\hyperlink{group__Eina__List__Group_ga4676c189ca4bcfa22d7ecfbcd00200ae}{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 eina\+\_\+list\+\_\+append(), eina\+\_\+list\+\_\+append\+\_\+relative\+\_\+list(), and E\+I\+N\+A\+\_\+\+L\+I\+S\+T\+\_\+\+F\+O\+R\+E\+A\+CH.



Referenced by elm\+\_\+object\+\_\+focus\+\_\+custom\+\_\+chain\+\_\+append().

\mbox{\Hypertarget{group__Eina__List__Group_gafa705d4483487e53d1be93a30e43c66d}\label{group__Eina__List__Group_gafa705d4483487e53d1be93a30e43c66d}} 
\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__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 N\+U\+LL} 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 N\+U\+LL}, {\ttfamily data} is just appended to {\ttfamily list} using \mbox{\hyperlink{group__Eina__List__Group_ga92ec14d1a1040a361c4d8cd0ab7b0ecc}{eina\+\_\+list\+\_\+append()}}. If {\ttfamily list} is {\ttfamily N\+U\+LL}, 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 \+\_\+\+Eina\+\_\+\+List\+::accounting, \+\_\+\+Eina\+\_\+\+List\+::data, eina\+\_\+list\+\_\+append(), \+\_\+\+Eina\+\_\+\+List\+\_\+\+Accounting\+::last, \+\_\+\+Eina\+\_\+\+List\+::next, and \+\_\+\+Eina\+\_\+\+List\+::prev.



Referenced by eina\+\_\+list\+\_\+append\+\_\+relative(), and eina\+\_\+list\+\_\+sorted\+\_\+insert().

\mbox{\Hypertarget{group__Eina__List__Group_gad44370d18554ff250d2e9ddac4653caf}\label{group__Eina__List__Group_gad44370d18554ff250d2e9ddac4653caf}} 
\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__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 N\+U\+LL} 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_ga9f35bfc7c5b798014c3e0a74bc6f39ad}{eina\+\_\+list\+\_\+prepend()}}. If {\ttfamily list} is {\ttfamily N\+U\+LL}, 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_ga92ec14d1a1040a361c4d8cd0ab7b0ecc}{eina\_list\_append}}(list, relative\_member);}
\DoxyCodeLine{list = \mbox{\hyperlink{group__Eina__List__Group_gad44370d18554ff250d2e9ddac4653caf}{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 E\+I\+N\+A\+\_\+\+L\+I\+S\+T\+\_\+\+F\+O\+R\+E\+A\+CH, eina\+\_\+list\+\_\+prepend(), and eina\+\_\+list\+\_\+prepend\+\_\+relative\+\_\+list().



Referenced by elm\+\_\+object\+\_\+focus\+\_\+custom\+\_\+chain\+\_\+prepend().

\mbox{\Hypertarget{group__Eina__List__Group_ga03a77b1579ee83bcab4bc3d67375d4b1}\label{group__Eina__List__Group_ga03a77b1579ee83bcab4bc3d67375d4b1}} 
\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__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 N\+U\+LL} 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 N\+U\+LL}, {\ttfamily data} is just prepended to {\ttfamily list} using \mbox{\hyperlink{group__Eina__List__Group_ga9f35bfc7c5b798014c3e0a74bc6f39ad}{eina\+\_\+list\+\_\+prepend()}}. If {\ttfamily list} is {\ttfamily N\+U\+LL}, 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 \+\_\+\+Eina\+\_\+\+List\+::data, eina\+\_\+list\+\_\+prepend(), \+\_\+\+Eina\+\_\+\+List\+::next, and \+\_\+\+Eina\+\_\+\+List\+::prev.



Referenced by edje\+\_\+edit\+\_\+program\+\_\+after\+\_\+insert\+\_\+at(), edje\+\_\+edit\+\_\+program\+\_\+target\+\_\+insert\+\_\+at(), eina\+\_\+list\+\_\+prepend\+\_\+relative(), and eina\+\_\+list\+\_\+sorted\+\_\+insert().

\mbox{\Hypertarget{group__Eina__List__Group_ga00740e04bfb71ad5c9ac145f766de3a4}\label{group__Eina__List__Group_ga00740e04bfb71ad5c9ac145f766de3a4}} 
\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__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 N\+U\+LL} 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 N\+U\+LL}, 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_ga44af3419fd1f66ffefc4998e54c4ca70}{eina\+\_\+list\+\_\+search\+\_\+sorted\+\_\+near\+\_\+list()}} and thus is bounded to that. As said in \mbox{\hyperlink{group__Eina__List__Group_ga44af3419fd1f66ffefc4998e54c4ca70}{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 eina\+\_\+list\+\_\+append(), eina\+\_\+list\+\_\+append\+\_\+relative\+\_\+list(), eina\+\_\+list\+\_\+prepend\+\_\+relative\+\_\+list(), and eina\+\_\+list\+\_\+search\+\_\+sorted\+\_\+near\+\_\+list().

\mbox{\Hypertarget{group__Eina__List__Group_ga7c0c6e07aa592a1cb2e010049a718035}\label{group__Eina__List__Group_ga7c0c6e07aa592a1cb2e010049a718035}} 
\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__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 N\+U\+LL} 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 N\+U\+LL}, nothing is done and the specified {\ttfamily list} returned. If {\ttfamily list} is {\ttfamily N\+U\+LL}, {\ttfamily N\+U\+LL} 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 eina\+\_\+list\+\_\+data\+\_\+find\+\_\+list(), and eina\+\_\+list\+\_\+remove\+\_\+list().



Referenced by ecore\+\_\+con\+\_\+socks4\+\_\+remote\+\_\+del(), ecore\+\_\+con\+\_\+socks5\+\_\+remote\+\_\+del(), ecore\+\_\+con\+\_\+socks\+\_\+remote\+\_\+del(), ecore\+\_\+drm2\+\_\+plane\+\_\+assign(), ecore\+\_\+evas\+\_\+aux\+\_\+hint\+\_\+del(), ecore\+\_\+fb\+\_\+input\+\_\+device\+\_\+close(), ecore\+\_\+imf\+\_\+context\+\_\+input\+\_\+panel\+\_\+event\+\_\+callback\+\_\+clear(), ecore\+\_\+ipc\+\_\+client\+\_\+del(), ecore\+\_\+ipc\+\_\+server\+\_\+del(), ecore\+\_\+thread\+\_\+feedback\+\_\+run(), ecore\+\_\+thread\+\_\+run(), edje\+\_\+edit\+\_\+color\+\_\+class\+\_\+del(), edje\+\_\+edit\+\_\+size\+\_\+class\+\_\+del(), edje\+\_\+edit\+\_\+string\+\_\+list\+\_\+free(), edje\+\_\+edit\+\_\+style\+\_\+del(), edje\+\_\+edit\+\_\+style\+\_\+tag\+\_\+del(), edje\+\_\+edit\+\_\+text\+\_\+class\+\_\+del(), edje\+\_\+file\+\_\+collection\+\_\+list\+\_\+free(), edje\+\_\+object\+\_\+perspective\+\_\+set(), eeze\+\_\+disk\+\_\+free(), efl\+\_\+class\+\_\+new(), efreet\+\_\+desktop\+\_\+category\+\_\+del(), efreet\+\_\+menu\+\_\+desktop\+\_\+remove(), eina\+\_\+hash\+\_\+list\+\_\+remove(), eina\+\_\+quadtree\+\_\+del(), elm\+\_\+drop\+\_\+target\+\_\+del(), elm\+\_\+map\+\_\+name\+\_\+del(), elm\+\_\+map\+\_\+route\+\_\+del(), elm\+\_\+transit\+\_\+chain\+\_\+transit\+\_\+add(), elm\+\_\+transit\+\_\+chain\+\_\+transit\+\_\+del(), ethumb\+\_\+client\+\_\+thumb\+\_\+exists\+\_\+cancel(), evas\+\_\+font\+\_\+path\+\_\+global\+\_\+clear(), evas\+\_\+gl\+\_\+context\+\_\+destroy(), evas\+\_\+gl\+\_\+surface\+\_\+destroy(), and evas\+\_\+textblock\+\_\+cursor\+\_\+free().

\mbox{\Hypertarget{group__Eina__List__Group_ga7edefe0975beecc76c02525fb9200f5a}\label{group__Eina__List__Group_ga7edefe0975beecc76c02525fb9200f5a}} 
\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__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 N\+U\+LL} 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 N\+U\+LL}, this function returns {\ttfamily N\+U\+LL}. If {\ttfamily remove\+\_\+list} is {\ttfamily N\+U\+LL}, 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 E\+I\+N\+A\+\_\+\+L\+I\+S\+T\+\_\+\+F\+O\+R\+E\+A\+CH rather than E\+I\+N\+A\+\_\+\+L\+I\+S\+T\+\_\+\+F\+O\+R\+E\+A\+C\+H\+\_\+\+S\+A\+FE 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_ga7edefe0975beecc76c02525fb9200f5a}{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 \+\_\+\+Eina\+\_\+\+List\+::accounting, \+\_\+\+Eina\+\_\+\+List\+\_\+\+Accounting\+::last, \+\_\+\+Eina\+\_\+\+List\+::next, and \+\_\+\+Eina\+\_\+\+List\+::prev.



Referenced by ecore\+\_\+fork\+\_\+reset(), ecore\+\_\+fork\+\_\+reset\+\_\+callback\+\_\+del(), ecore\+\_\+imf\+\_\+context\+\_\+event\+\_\+callback\+\_\+del(), ecore\+\_\+imf\+\_\+context\+\_\+input\+\_\+panel\+\_\+event\+\_\+callback\+\_\+del(), ecore\+\_\+thread\+\_\+cancel(), edje\+\_\+edit\+\_\+group\+\_\+del(), edje\+\_\+edit\+\_\+image\+\_\+set\+\_\+image\+\_\+del(), edje\+\_\+edit\+\_\+program\+\_\+after\+\_\+del(), edje\+\_\+edit\+\_\+program\+\_\+afters\+\_\+clear(), edje\+\_\+edit\+\_\+program\+\_\+del(), edje\+\_\+edit\+\_\+program\+\_\+target\+\_\+del(), edje\+\_\+edit\+\_\+program\+\_\+targets\+\_\+clear(), eina\+\_\+debug\+\_\+timer\+\_\+del(), eina\+\_\+file\+\_\+common\+\_\+map\+\_\+free(), eina\+\_\+list\+\_\+move(), eina\+\_\+list\+\_\+move\+\_\+list(), eina\+\_\+list\+\_\+remove(), elm\+\_\+spinner\+\_\+special\+\_\+value\+\_\+del(), and evas\+\_\+textblock\+\_\+node\+\_\+format\+\_\+remove\+\_\+pair().

\mbox{\Hypertarget{group__Eina__List__Group_ga1037e7ab9d39bece24d864526332828c}\label{group__Eina__List__Group_ga1037e7ab9d39bece24d864526332828c}} 
\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__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 N\+U\+LL} on error.
\end{DoxyReturn}
This function moves {\ttfamily move\+\_\+list} to the front of {\ttfamily list}. If list is {\ttfamily N\+U\+LL}, {\ttfamily N\+U\+LL} is returned. If {\ttfamily move\+\_\+list} is {\ttfamily N\+U\+LL}, {\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_ga1037e7ab9d39bece24d864526332828c}{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 \+\_\+\+Eina\+\_\+\+List\+::accounting, \+\_\+\+Eina\+\_\+\+List\+\_\+\+Accounting\+::last, \+\_\+\+Eina\+\_\+\+List\+::next, and \+\_\+\+Eina\+\_\+\+List\+::prev.



Referenced by efreet\+\_\+icon\+\_\+extension\+\_\+add().

\mbox{\Hypertarget{group__Eina__List__Group_ga082644881a2333bd16208c00931703cd}\label{group__Eina__List__Group_ga082644881a2333bd16208c00931703cd}} 
\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__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 N\+U\+LL} on error.
\end{DoxyReturn}
This function move {\ttfamily move\+\_\+list} to the end of {\ttfamily list}. If list is {\ttfamily N\+U\+LL}, {\ttfamily N\+U\+LL} is returned. If {\ttfamily move\+\_\+list} is {\ttfamily N\+U\+LL}, {\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_ga082644881a2333bd16208c00931703cd}{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 \+\_\+\+Eina\+\_\+\+List\+::accounting, \+\_\+\+Eina\+\_\+\+List\+\_\+\+Accounting\+::last, \+\_\+\+Eina\+\_\+\+List\+::next, and \+\_\+\+Eina\+\_\+\+List\+::prev.

\mbox{\Hypertarget{group__Eina__List__Group_ga48e7356e1e0975bcabfce6f5c4ec9160}\label{group__Eina__List__Group_ga48e7356e1e0975bcabfce6f5c4ec9160}} 
\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 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 N\+U\+LL} 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 N\+U\+LL} 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_ga48e7356e1e0975bcabfce6f5c4ec9160}{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 eina\+\_\+list\+\_\+data\+\_\+find\+\_\+list().



Referenced by ecore\+\_\+evas\+\_\+focus\+\_\+device\+\_\+get(), and ecore\+\_\+main\+\_\+fd\+\_\+handler\+\_\+prepare\+\_\+callback\+\_\+set().

\mbox{\Hypertarget{group__Eina__List__Group_ga860144725b63d93b8f84cdf1d816bda8}\label{group__Eina__List__Group_ga860144725b63d93b8f84cdf1d816bda8}} 
\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__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 N\+U\+LL} 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 N\+U\+LL} is returned.

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


References E\+I\+N\+A\+\_\+\+L\+I\+S\+T\+\_\+\+F\+O\+R\+E\+A\+CH.



Referenced by efreet\+\_\+icon\+\_\+extension\+\_\+add(), eina\+\_\+debug\+\_\+timer\+\_\+del(), eina\+\_\+list\+\_\+data\+\_\+find(), eina\+\_\+list\+\_\+move(), and eina\+\_\+list\+\_\+remove().

\mbox{\Hypertarget{group__Eina__List__Group_ga46a38e2bf6b9a52b7a5dd17c63ca5f60}\label{group__Eina__List__Group_ga46a38e2bf6b9a52b7a5dd17c63ca5f60}} 
\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_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}{E\+I\+N\+A\+\_\+\+T\+R\+UE}} on success, \mbox{\hyperlink{group__Eina__Types__Group_ga1feb115f8e9913e806e090d9bd5a7301}{E\+I\+N\+A\+\_\+\+F\+A\+L\+SE}} 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 E\+I\+N\+A\+\_\+\+F\+A\+L\+SE, eina\+\_\+list\+\_\+append(), eina\+\_\+list\+\_\+data\+\_\+find\+\_\+list(), eina\+\_\+list\+\_\+remove\+\_\+list(), E\+I\+N\+A\+\_\+\+S\+A\+F\+E\+T\+Y\+\_\+\+O\+N\+\_\+\+N\+U\+L\+L\+\_\+\+R\+E\+T\+U\+R\+N\+\_\+\+V\+AL, and E\+I\+N\+A\+\_\+\+T\+R\+UE.

\mbox{\Hypertarget{group__Eina__List__Group_ga7e8227ff134ddf5c70fa0a0ede35fe64}\label{group__Eina__List__Group_ga7e8227ff134ddf5c70fa0a0ede35fe64}} 
\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_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}{E\+I\+N\+A\+\_\+\+T\+R\+UE}} on success, \mbox{\hyperlink{group__Eina__Types__Group_ga1feb115f8e9913e806e090d9bd5a7301}{E\+I\+N\+A\+\_\+\+F\+A\+L\+SE}} otherwise.
\end{DoxyReturn}
This function is a shortcut for doing the following\+: to = eina\+\_\+list\+\_\+append(to, data-\/$>$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 \+\_\+\+Eina\+\_\+\+List\+::data, E\+I\+N\+A\+\_\+\+F\+A\+L\+SE, eina\+\_\+list\+\_\+append(), eina\+\_\+list\+\_\+remove\+\_\+list(), E\+I\+N\+A\+\_\+\+S\+A\+F\+E\+T\+Y\+\_\+\+O\+N\+\_\+\+N\+U\+L\+L\+\_\+\+R\+E\+T\+U\+R\+N\+\_\+\+V\+AL, and E\+I\+N\+A\+\_\+\+T\+R\+UE.

\mbox{\Hypertarget{group__Eina__List__Group_ga608bd2fbf06293a1b794648990703ab4}\label{group__Eina__List__Group_ga608bd2fbf06293a1b794648990703ab4}} 
\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__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 N\+U\+LL} 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}{E\+I\+N\+A\+\_\+\+L\+I\+S\+T\+\_\+\+F\+R\+EE}}. 

References \+\_\+\+Eina\+\_\+\+List\+::next.



Referenced by ecore\+\_\+evas\+\_\+engines\+\_\+free(), ecore\+\_\+ipc\+\_\+server\+\_\+del(), edje\+\_\+mmap\+\_\+group\+\_\+exists(), eet\+\_\+eina\+\_\+stream\+\_\+data\+\_\+descriptor\+\_\+class\+\_\+set(), efl\+\_\+class\+\_\+new(), efreet\+\_\+desktop\+\_\+command\+\_\+progress\+\_\+get(), efreet\+\_\+icon\+\_\+list\+\_\+find(), elm\+\_\+store\+\_\+free(), elm\+\_\+theme\+\_\+extension\+\_\+mmap\+\_\+add(), elm\+\_\+theme\+\_\+extension\+\_\+mmap\+\_\+del(), elm\+\_\+theme\+\_\+overlay\+\_\+mmap\+\_\+add(), elm\+\_\+theme\+\_\+overlay\+\_\+mmap\+\_\+del(), elua\+\_\+state\+\_\+free(), evas\+\_\+event\+\_\+feed\+\_\+hold(), and evas\+\_\+textblock\+\_\+node\+\_\+format\+\_\+remove\+\_\+pair().

\mbox{\Hypertarget{group__Eina__List__Group_ga4bd18d6ffc9920cd904bb7769f2fad8e}\label{group__Eina__List__Group_ga4bd18d6ffc9920cd904bb7769f2fad8e}} 
\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 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 N\+U\+LL} 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 N\+U\+LL} 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 \+\_\+\+Eina\+\_\+\+List\+::data, and eina\+\_\+list\+\_\+nth\+\_\+list().



Referenced by edje\+\_\+edit\+\_\+image\+\_\+set\+\_\+image\+\_\+border\+\_\+get(), edje\+\_\+edit\+\_\+image\+\_\+set\+\_\+image\+\_\+border\+\_\+scale\+\_\+get(), edje\+\_\+edit\+\_\+image\+\_\+set\+\_\+image\+\_\+border\+\_\+scale\+\_\+set(), edje\+\_\+edit\+\_\+image\+\_\+set\+\_\+image\+\_\+border\+\_\+set(), edje\+\_\+edit\+\_\+image\+\_\+set\+\_\+image\+\_\+del(), efreet\+\_\+desktop\+\_\+free(), efreet\+\_\+desktop\+\_\+get(), efreet\+\_\+desktop\+\_\+save(), efreet\+\_\+desktop\+\_\+type\+\_\+alias(), evas\+\_\+touch\+\_\+point\+\_\+list\+\_\+nth\+\_\+id\+\_\+get(), and evas\+\_\+touch\+\_\+point\+\_\+list\+\_\+nth\+\_\+state\+\_\+get().

\mbox{\Hypertarget{group__Eina__List__Group_gad4a1e3b0fdecd8ed4cb2ff592ceeb553}\label{group__Eina__List__Group_gad4a1e3b0fdecd8ed4cb2ff592ceeb553}} 
\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__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 N\+U\+LL} 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 N\+U\+LL} or {\ttfamily n} is greater than the count of elements in {\ttfamily list} minus 1, {\ttfamily N\+U\+LL} 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 \+\_\+\+Eina\+\_\+\+List\+::accounting, \+\_\+\+Eina\+\_\+\+List\+\_\+\+Accounting\+::count, \+\_\+\+Eina\+\_\+\+List\+\_\+\+Accounting\+::last, \+\_\+\+Eina\+\_\+\+List\+::next, and \+\_\+\+Eina\+\_\+\+List\+::prev.



Referenced by edje\+\_\+edit\+\_\+image\+\_\+set\+\_\+image\+\_\+del(), edje\+\_\+edit\+\_\+program\+\_\+after\+\_\+insert\+\_\+at(), edje\+\_\+edit\+\_\+program\+\_\+target\+\_\+insert\+\_\+at(), eina\+\_\+list\+\_\+nth(), and eina\+\_\+list\+\_\+sort().

\mbox{\Hypertarget{group__Eina__List__Group_ga2f0c56af6f6ae8f149c317d4152b407d}\label{group__Eina__List__Group_ga2f0c56af6f6ae8f149c317d4152b407d}} 
\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__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 N\+U\+LL} 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 N\+U\+LL}, this function returns {\ttfamily N\+U\+LL}.

\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_ga67cb29eef0bf0a3cb2cc160ae506a07f}{eina\+\_\+list\+\_\+reverse\+\_\+clone()}} 

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


References \+\_\+\+Eina\+\_\+\+List\+::accounting, \+\_\+\+Eina\+\_\+\+List\+::data, \+\_\+\+Eina\+\_\+\+List\+\_\+\+Accounting\+::last, \+\_\+\+Eina\+\_\+\+List\+::next, and \+\_\+\+Eina\+\_\+\+List\+::prev.

\mbox{\Hypertarget{group__Eina__List__Group_ga67cb29eef0bf0a3cb2cc160ae506a07f}\label{group__Eina__List__Group_ga67cb29eef0bf0a3cb2cc160ae506a07f}} 
\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__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 N\+U\+LL} 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 N\+U\+LL}, this function returns {\ttfamily N\+U\+LL}. 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_ga608bd2fbf06293a1b794648990703ab4}{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_ga2f0c56af6f6ae8f149c317d4152b407d}{eina\+\_\+list\+\_\+reverse()}} 

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


References E\+I\+N\+A\+\_\+\+L\+I\+S\+T\+\_\+\+F\+O\+R\+E\+A\+CH, and eina\+\_\+list\+\_\+prepend().

\mbox{\Hypertarget{group__Eina__List__Group_gae26360b939fc874e7ae4fab705bd3ac3}\label{group__Eina__List__Group_gae26360b939fc874e7ae4fab705bd3ac3}} 
\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__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 N\+U\+LL} on error.
\end{DoxyReturn}
This function clone in order of all elements in {\ttfamily list}. If {\ttfamily list} is {\ttfamily N\+U\+LL}, this function returns {\ttfamily N\+U\+LL}. 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_ga608bd2fbf06293a1b794648990703ab4}{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_ga67cb29eef0bf0a3cb2cc160ae506a07f}{eina\+\_\+list\+\_\+reverse\+\_\+clone()}} 
\end{DoxySeeAlso}


References eina\+\_\+list\+\_\+append(), and E\+I\+N\+A\+\_\+\+L\+I\+S\+T\+\_\+\+F\+O\+R\+E\+A\+CH.



Referenced by ecore\+\_\+evas\+\_\+engines\+\_\+get(), elm\+\_\+object\+\_\+focus\+\_\+custom\+\_\+chain\+\_\+append(), and elm\+\_\+object\+\_\+focus\+\_\+custom\+\_\+chain\+\_\+prepend().

\mbox{\Hypertarget{group__Eina__List__Group_gaa634ce6790e626fd057ecdcfdc841d47}\label{group__Eina__List__Group_gaa634ce6790e626fd057ecdcfdc841d47}} 
\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__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 N\+U\+LL}, 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_gaa634ce6790e626fd057ecdcfdc841d47}{eina\_list\_sort}}(list, \mbox{\hyperlink{group__Eina__List__Group_ga301729054a498a2df09a5f1dd760697e}{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 \+\_\+\+Eina\+\_\+\+List\+::accounting, \+\_\+\+Eina\+\_\+\+List\+\_\+\+Accounting\+::count, eina\+\_\+list\+\_\+nth\+\_\+list(), E\+I\+N\+A\+\_\+\+S\+A\+F\+E\+T\+Y\+\_\+\+O\+N\+\_\+\+N\+U\+L\+L\+\_\+\+R\+E\+T\+U\+R\+N\+\_\+\+V\+AL, \+\_\+\+Eina\+\_\+\+List\+\_\+\+Accounting\+::last, \+\_\+\+Eina\+\_\+\+List\+::next, and \+\_\+\+Eina\+\_\+\+List\+::prev.



Referenced by ecore\+\_\+file\+\_\+ls(), eina\+\_\+rectangle\+\_\+pool\+\_\+request(), and elm\+\_\+theme\+\_\+group\+\_\+base\+\_\+list().

\mbox{\Hypertarget{group__Eina__List__Group_ga2b03712f212a6557885b11ea382f5459}\label{group__Eina__List__Group_ga2b03712f212a6557885b11ea382f5459}} 
\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__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 N\+U\+LL}, 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 \+\_\+\+Eina\+\_\+\+List\+::accounting, \+\_\+\+Eina\+\_\+\+List\+\_\+\+Accounting\+::count, \+\_\+\+Eina\+\_\+\+List\+\_\+\+Accounting\+::last, \+\_\+\+Eina\+\_\+\+List\+::next, and \+\_\+\+Eina\+\_\+\+List\+::prev.

\mbox{\Hypertarget{group__Eina__List__Group_ga743c5a32e64f227059d2baa4dba63a6b}\label{group__Eina__List__Group_ga743c5a32e64f227059d2baa4dba63a6b}} 
\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__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 \+\_\+\+Eina\+\_\+\+List\+::accounting, \+\_\+\+Eina\+\_\+\+List\+\_\+\+Accounting\+::count, \+\_\+\+Eina\+\_\+\+List\+\_\+\+Accounting\+::last, \+\_\+\+Eina\+\_\+\+List\+::next, and \+\_\+\+Eina\+\_\+\+List\+::prev.



Referenced by eina\+\_\+file\+\_\+flush().

\mbox{\Hypertarget{group__Eina__List__Group_ga66747ee5bad3c35ea268385f6c5e174b}\label{group__Eina__List__Group_ga66747ee5bad3c35ea268385f6c5e174b}} 
\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__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 N\+U\+LL}, it will return {\ttfamily N\+U\+LL}.

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_ga66747ee5bad3c35ea268385f6c5e174b}{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 \+\_\+\+Eina\+\_\+\+List\+::accounting, \+\_\+\+Eina\+\_\+\+List\+\_\+\+Accounting\+::count, \+\_\+\+Eina\+\_\+\+List\+::data, E\+I\+N\+A\+\_\+\+S\+A\+F\+E\+T\+Y\+\_\+\+O\+N\+\_\+\+N\+U\+L\+L\+\_\+\+R\+E\+T\+U\+R\+N\+\_\+\+V\+AL, \+\_\+\+Eina\+\_\+\+List\+\_\+\+Accounting\+::last, \+\_\+\+Eina\+\_\+\+List\+::next, and \+\_\+\+Eina\+\_\+\+List\+::prev.

\mbox{\Hypertarget{group__Eina__List__Group_gaf45625cf0f450aae2a4e949539b22374}\label{group__Eina__List__Group_gaf45625cf0f450aae2a4e949539b22374}} 
\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__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 N\+U\+LL} list is returns. If {\ttfamily relative} is N\+U\+LL right is set to {\ttfamily list} and {\ttfamily N\+U\+LL} is returns. If {\ttfamily relative} is the last node of {\ttfamily list} list is returns and {\ttfamily right} is set to {\ttfamily N\+U\+LL}.

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 \+\_\+\+Eina\+\_\+\+List\+::accounting, \+\_\+\+Eina\+\_\+\+List\+\_\+\+Accounting\+::count, eina\+\_\+list\+\_\+last(), eina\+\_\+list\+\_\+next(), \+\_\+\+Eina\+\_\+\+List\+\_\+\+Accounting\+::last, \+\_\+\+Eina\+\_\+\+List\+::next, and \+\_\+\+Eina\+\_\+\+List\+::prev.

\mbox{\Hypertarget{group__Eina__List__Group_ga44af3419fd1f66ffefc4998e54c4ca70}\label{group__Eina__List__Group_ga44af3419fd1f66ffefc4998e54c4ca70}} 
\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__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-\/$>$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 N\+U\+LL} 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_ga48e7356e1e0975bcabfce6f5c4ec9160}{eina\_list\_data\_find}}(list, \textcolor{stringliteral}{"my data"});}
\DoxyCodeLine{\textcolor{keywordflow}{if} (!ptr)}
\DoxyCodeLine{  \mbox{\hyperlink{group__Eina__List__Group_ga00740e04bfb71ad5c9ac145f766de3a4}{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_ga44af3419fd1f66ffefc4998e54c4ca70}{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_ga03a77b1579ee83bcab4bc3d67375d4b1}{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_gafa705d4483487e53d1be93a30e43c66d}{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_gaa634ce6790e626fd057ecdcfdc841d47}{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_ga6a0564d119664930b3a41657c1551e09}{eina\+\_\+list\+\_\+search\+\_\+sorted\+\_\+list()}} 

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

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


References \+\_\+\+Eina\+\_\+\+List\+::accounting, \+\_\+\+Eina\+\_\+\+List\+\_\+\+Accounting\+::count, \+\_\+\+Eina\+\_\+\+List\+::data, \+\_\+\+Eina\+\_\+\+List\+\_\+\+Accounting\+::last, and \+\_\+\+Eina\+\_\+\+List\+::next.



Referenced by eina\+\_\+list\+\_\+search\+\_\+sorted\+\_\+list(), and eina\+\_\+list\+\_\+sorted\+\_\+insert().

\mbox{\Hypertarget{group__Eina__List__Group_ga6a0564d119664930b3a41657c1551e09}\label{group__Eina__List__Group_ga6a0564d119664930b3a41657c1551e09}} 
\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__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-\/$>$data, data) == 0, {\ttfamily N\+U\+LL} 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_ga326ba1ce720272160559fcca1abb100d}{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_gaa634ce6790e626fd057ecdcfdc841d47}{eina\+\_\+list\+\_\+sort()}} the list and do the searches later. As said in \mbox{\hyperlink{group__Eina__List__Group_ga44af3419fd1f66ffefc4998e54c4ca70}{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_gae18055abaafef1714bd9f2fd3fd0cc45}{eina\+\_\+list\+\_\+search\+\_\+sorted()}} 

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

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

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

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


References eina\+\_\+list\+\_\+search\+\_\+sorted\+\_\+near\+\_\+list().



Referenced by eina\+\_\+list\+\_\+search\+\_\+sorted().

\mbox{\Hypertarget{group__Eina__List__Group_gae18055abaafef1714bd9f2fd3fd0cc45}\label{group__Eina__List__Group_gae18055abaafef1714bd9f2fd3fd0cc45}} 
\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 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-\/$>$data}) if func(node-\/$>$data, data) == 0, {\ttfamily N\+U\+LL} 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_ga2c093bfd321df8f286fcfeb3d13d675f}{eina\+\_\+list\+\_\+search\+\_\+unsorted()}}, so depending on the number of searches and insertions, it may be worth to \mbox{\hyperlink{group__Eina__List__Group_gaa634ce6790e626fd057ecdcfdc841d47}{eina\+\_\+list\+\_\+sort()}} the list and do the searches later. As said in \mbox{\hyperlink{group__Eina__List__Group_ga44af3419fd1f66ffefc4998e54c4ca70}{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_ga6a0564d119664930b3a41657c1551e09}{eina\+\_\+list\+\_\+search\+\_\+sorted\+\_\+list()}} 

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

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

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


References eina\+\_\+list\+\_\+data\+\_\+get(), and eina\+\_\+list\+\_\+search\+\_\+sorted\+\_\+list().

\mbox{\Hypertarget{group__Eina__List__Group_ga326ba1ce720272160559fcca1abb100d}\label{group__Eina__List__Group_ga326ba1ce720272160559fcca1abb100d}} 
\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__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-\/$>$data, data) == 0, {\ttfamily N\+U\+LL} 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_ga6a0564d119664930b3a41657c1551e09}{eina\+\_\+list\+\_\+search\+\_\+sorted\+\_\+list()}} 

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


References E\+I\+N\+A\+\_\+\+L\+I\+S\+T\+\_\+\+F\+O\+R\+E\+A\+CH.



Referenced by eina\+\_\+list\+\_\+search\+\_\+unsorted().

\mbox{\Hypertarget{group__Eina__List__Group_ga2c093bfd321df8f286fcfeb3d13d675f}\label{group__Eina__List__Group_ga2c093bfd321df8f286fcfeb3d13d675f}} 
\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 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-\/$>$data}) if func(node-\/$>$data, data) == 0, {\ttfamily N\+U\+LL} 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_gae18055abaafef1714bd9f2fd3fd0cc45}{eina\+\_\+list\+\_\+search\+\_\+sorted()}} 

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


References eina\+\_\+list\+\_\+data\+\_\+get(), and eina\+\_\+list\+\_\+search\+\_\+unsorted\+\_\+list().



Referenced by efreet\+\_\+desktop\+\_\+category\+\_\+add(), efreet\+\_\+desktop\+\_\+category\+\_\+del(), and efreet\+\_\+menu\+\_\+desktop\+\_\+remove().

\mbox{\Hypertarget{group__Eina__List__Group_ga4c3a9eb5062f3b44c5dcef845cc7a72a}\label{group__Eina__List__Group_ga4c3a9eb5062f3b44c5dcef845cc7a72a}} 
\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 N\+U\+LL} or empty, {\ttfamily N\+U\+LL} 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}
\begin{Desc}
\item[Examples]\par
\mbox{\hyperlink{eina_list_04_8c-example}{eina\+\_\+list\+\_\+04.\+c}}.\end{Desc}


Referenced by eina\+\_\+list\+\_\+iterator\+\_\+reversed\+\_\+new(), and eina\+\_\+list\+\_\+split\+\_\+list().

\mbox{\Hypertarget{group__Eina__List__Group_gac264188a790dda0761d587578605bfd1}\label{group__Eina__List__Group_gac264188a790dda0761d587578605bfd1}} 
\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 N\+U\+LL} otherwise.
\end{DoxyReturn}
This function returns the next list node after the current one in {\ttfamily list}. It is equivalent to list-\/$>$next. If {\ttfamily list} is {\ttfamily N\+U\+LL} or if no next list node exists, it returns {\ttfamily N\+U\+LL}.

\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_list_04_8c-example}{eina\+\_\+list\+\_\+04.\+c}}.\end{Desc}


Referenced by eet\+\_\+eina\+\_\+stream\+\_\+data\+\_\+descriptor\+\_\+class\+\_\+set(), eina\+\_\+list\+\_\+split\+\_\+list(), and evas\+\_\+textblock\+\_\+node\+\_\+format\+\_\+remove\+\_\+pair().

\mbox{\Hypertarget{group__Eina__List__Group_gacd8294cbab7b4e053bcf754a92dd68e3}\label{group__Eina__List__Group_gacd8294cbab7b4e053bcf754a92dd68e3}} 
\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 N\+U\+LL} otherwise.
\end{DoxyReturn}
This function returns the previous list node before the current one in {\ttfamily list}. It is equivalent to list-\/$>$prev. If {\ttfamily list} is {\ttfamily N\+U\+LL} or if no previous list node exists, it returns {\ttfamily N\+U\+LL}.

\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_list_04_8c-example}{eina\+\_\+list\+\_\+04.\+c}}.\end{Desc}
\mbox{\Hypertarget{group__Eina__List__Group_gaec845f0bfb16a14e8d7f0cd508ca7e9c}\label{group__Eina__List__Group_gaec845f0bfb16a14e8d7f0cd508ca7e9c}} 
\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-\/$>$data. If {\ttfamily list} is {\ttfamily N\+U\+LL}, this function returns {\ttfamily N\+U\+LL}.

\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{box_example_02_8c-example}{box\+\_\+example\+\_\+02.\+c}}, \mbox{\hyperlink{eina_list_04_8c-example}{eina\+\_\+list\+\_\+04.\+c}}, \mbox{\hyperlink{menu_example_01_8c-example}{menu\+\_\+example\+\_\+01.\+c}}, and \mbox{\hyperlink{slideshow_example_8c-example}{slideshow\+\_\+example.\+c}}.\end{Desc}


Referenced by ecore\+\_\+wl2\+\_\+window\+\_\+output\+\_\+find(), edje\+\_\+edit\+\_\+limits\+\_\+list\+\_\+free(), edje\+\_\+edit\+\_\+program\+\_\+afters\+\_\+clear(), edje\+\_\+edit\+\_\+program\+\_\+targets\+\_\+clear(), edje\+\_\+edit\+\_\+state\+\_\+name\+\_\+set(), edje\+\_\+edit\+\_\+string\+\_\+list\+\_\+free(), edje\+\_\+file\+\_\+collection\+\_\+list\+\_\+free(), eet\+\_\+eina\+\_\+stream\+\_\+data\+\_\+descriptor\+\_\+class\+\_\+set(), eina\+\_\+list\+\_\+search\+\_\+sorted(), eina\+\_\+list\+\_\+search\+\_\+unsorted(), elm\+\_\+drop\+\_\+target\+\_\+del(), elm\+\_\+map\+\_\+overlays\+\_\+show(), elm\+\_\+transit\+\_\+go(), evas\+\_\+engine\+\_\+info\+\_\+get(), evas\+\_\+engine\+\_\+info\+\_\+set(), and evas\+\_\+output\+\_\+size\+\_\+set().

\mbox{\Hypertarget{group__Eina__List__Group_ga213776ffa28b780440da26f673917687}\label{group__Eina__List__Group_ga213776ffa28b780440da26f673917687}} 
\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 N\+U\+LL}, this function returns {\ttfamily N\+U\+LL}.

\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_list_03_8c-example}{eina\+\_\+list\+\_\+03.\+c}}.\end{Desc}
\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 N\+U\+LL}, {\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}
\begin{Desc}
\item[Examples]\par
\mbox{\hyperlink{ecore_con_server_simple_example_8c-example}{ecore\+\_\+con\+\_\+server\+\_\+simple\+\_\+example.\+c}}, \mbox{\hyperlink{ecore_thread_example_8c-example}{ecore\+\_\+thread\+\_\+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{eina_inlist_02_8c-example}{eina\+\_\+inlist\+\_\+02.\+c}}, \mbox{\hyperlink{eina_list_03_8c-example}{eina\+\_\+list\+\_\+03.\+c}}, \mbox{\hyperlink{evas-box_8c-example}{evas-\/box.\+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}


Referenced by ecore\+\_\+drm2\+\_\+outputs\+\_\+create(), ecore\+\_\+drm\+\_\+inputs\+\_\+device\+\_\+axis\+\_\+size\+\_\+set(), ecore\+\_\+file\+\_\+ls(), ecore\+\_\+thread\+\_\+pending\+\_\+feedback\+\_\+get(), ecore\+\_\+thread\+\_\+pending\+\_\+get(), ecore\+\_\+thread\+\_\+pending\+\_\+total\+\_\+get(), edje\+\_\+edit\+\_\+program\+\_\+after\+\_\+insert\+\_\+at(), edje\+\_\+edit\+\_\+program\+\_\+target\+\_\+insert\+\_\+at(), edje\+\_\+edit\+\_\+state\+\_\+name\+\_\+set(), eet\+\_\+node\+\_\+var\+\_\+array\+\_\+new(), efl\+\_\+class\+\_\+new(), efreet\+\_\+desktop\+\_\+category\+\_\+count\+\_\+get(), efreet\+\_\+desktop\+\_\+type\+\_\+add(), elm\+\_\+map\+\_\+overlays\+\_\+show(), elput\+\_\+input\+\_\+pointer\+\_\+xy\+\_\+set(), ethumb\+\_\+client\+\_\+thumb\+\_\+exists\+\_\+cancel(), and evas\+\_\+touch\+\_\+point\+\_\+list\+\_\+count().

\mbox{\Hypertarget{group__Eina__List__Group_ga2527a7564e99615a6d0d87bc1a988592}\label{group__Eina__List__Group_ga2527a7564e99615a6d0d87bc1a988592}} 
\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 N\+U\+LL} on being passed a {\ttfamily N\+U\+LL} 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_gabcfb6a861aa7c0db0ee36252ac2a254d}\label{group__Eina__List__Group_gabcfb6a861aa7c0db0ee36252ac2a254d}} 
\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__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 N\+U\+LL} on memory allocation failure.
\end{DoxyReturn}
This function returns a newly allocated iterator associated with {\ttfamily list}. If {\ttfamily list} is {\ttfamily N\+U\+LL} 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_ga83346e93c32dbebc8fd66e4f278140c5}{eina\+\_\+iterator\+\_\+next()}}, thus keeping A\+PI 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 E\+I\+N\+A\+\_\+\+M\+A\+G\+I\+C\+\_\+\+S\+ET, F\+U\+N\+C\+\_\+\+I\+T\+E\+R\+A\+T\+O\+R\+\_\+\+F\+R\+EE, F\+U\+N\+C\+\_\+\+I\+T\+E\+R\+A\+T\+O\+R\+\_\+\+G\+E\+T\+\_\+\+C\+O\+N\+T\+A\+I\+N\+ER, and F\+U\+N\+C\+\_\+\+I\+T\+E\+R\+A\+T\+O\+R\+\_\+\+N\+E\+XT.



Referenced by ecore\+\_\+win32\+\_\+monitors\+\_\+get().

\mbox{\Hypertarget{group__Eina__List__Group_gaaa11ab61d3d86c9350cb0757468a9089}\label{group__Eina__List__Group_gaaa11ab61d3d86c9350cb0757468a9089}} 
\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__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 N\+U\+LL} on memory allocation failure.
\end{DoxyReturn}
This function returns a newly allocated iterator associated with {\ttfamily list}. If {\ttfamily list} is {\ttfamily N\+U\+LL} 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_ga83346e93c32dbebc8fd66e4f278140c5}{eina\+\_\+iterator\+\_\+next()}}, thus keeping A\+PI sane.

Unlike \mbox{\hyperlink{group__Eina__List__Group_gabcfb6a861aa7c0db0ee36252ac2a254d}{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 eina\+\_\+list\+\_\+last(), E\+I\+N\+A\+\_\+\+M\+A\+G\+I\+C\+\_\+\+S\+ET, F\+U\+N\+C\+\_\+\+I\+T\+E\+R\+A\+T\+O\+R\+\_\+\+F\+R\+EE, F\+U\+N\+C\+\_\+\+I\+T\+E\+R\+A\+T\+O\+R\+\_\+\+G\+E\+T\+\_\+\+C\+O\+N\+T\+A\+I\+N\+ER, and F\+U\+N\+C\+\_\+\+I\+T\+E\+R\+A\+T\+O\+R\+\_\+\+N\+E\+XT.

\mbox{\Hypertarget{group__Eina__List__Group_ga6901b2ea29c9bc34a486dae00d3cf608}\label{group__Eina__List__Group_ga6901b2ea29c9bc34a486dae00d3cf608}} 
\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__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 N\+U\+LL} on error.
\end{DoxyReturn}
This function returns a newly allocated accessor associated with {\ttfamily list}. If {\ttfamily list} is {\ttfamily N\+U\+LL} or the count member of {\ttfamily list} is less or equal than 0, this function returns {\ttfamily N\+U\+LL}. If the memory can not be allocated, {\ttfamily N\+U\+LL} 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 E\+I\+N\+A\+\_\+\+M\+A\+G\+I\+C\+\_\+\+S\+ET, E\+I\+N\+A\+\_\+\+S\+A\+F\+E\+T\+Y\+\_\+\+O\+N\+\_\+\+N\+U\+L\+L\+\_\+\+R\+E\+T\+U\+R\+N\+\_\+\+V\+AL, F\+U\+N\+C\+\_\+\+A\+C\+C\+E\+S\+S\+O\+R\+\_\+\+C\+L\+O\+NE, F\+U\+N\+C\+\_\+\+A\+C\+C\+E\+S\+S\+O\+R\+\_\+\+F\+R\+EE, F\+U\+N\+C\+\_\+\+A\+C\+C\+E\+S\+S\+O\+R\+\_\+\+G\+E\+T\+\_\+\+AT, and F\+U\+N\+C\+\_\+\+A\+C\+C\+E\+S\+S\+O\+R\+\_\+\+G\+E\+T\+\_\+\+C\+O\+N\+T\+A\+I\+N\+ER.

\mbox{\Hypertarget{group__Eina__List__Group_gae3497ac1658a5d72cea494b700b46fad}\label{group__Eina__List__Group_gae3497ac1658a5d72cea494b700b46fad}} 
\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 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 E\+I\+N\+A\+\_\+\+L\+I\+S\+T\+\_\+\+F\+O\+R\+E\+A\+CH.

