\hypertarget{group__Eina__Accessor__Group}{}\doxysection{Accessor Functions}
\label{group__Eina__Accessor__Group}\index{Accessor Functions@{Accessor Functions}}


This group discusses the functions to manage an accessor on containers.  


\doxysubsection*{Data Structures}
\begin{DoxyCompactItemize}
\item 
struct \mbox{\hyperlink{struct__Eina__Accessor}{\+\_\+\+Eina\+\_\+\+Accessor}}
\begin{DoxyCompactList}\small\item\em Structure to provide random access to data structures. \end{DoxyCompactList}\end{DoxyCompactItemize}
\doxysubsection*{Macros}
\begin{DoxyCompactItemize}
\item 
\mbox{\Hypertarget{group__Eina__Accessor__Group_ga279a8d8204d00590a2f5529e4359bfe3}\label{group__Eina__Accessor__Group_ga279a8d8204d00590a2f5529e4359bfe3}} 
\#define \mbox{\hyperlink{group__Eina__Accessor__Group_ga279a8d8204d00590a2f5529e4359bfe3}{F\+U\+N\+C\+\_\+\+A\+C\+C\+E\+S\+S\+O\+R\+\_\+\+G\+E\+T\+\_\+\+AT}}(Function)~((\mbox{\hyperlink{group__Eina__Accessor__Group_ga095891ba9b51a39be00c26c8b9cadda4}{Eina\+\_\+\+Accessor\+\_\+\+Get\+\_\+\+At\+\_\+\+Callback}})Function)
\begin{DoxyCompactList}\small\item\em Definition for helper macro to cast {\itshape Function} to a Eina\+\_\+\+Accessor\+\_\+\+Get\+\_\+\+At\+\_\+\+Callback. \end{DoxyCompactList}\item 
\mbox{\Hypertarget{group__Eina__Accessor__Group_gae86a7a10bfdf27781fd930ea1ad0f69b}\label{group__Eina__Accessor__Group_gae86a7a10bfdf27781fd930ea1ad0f69b}} 
\#define \mbox{\hyperlink{group__Eina__Accessor__Group_gae86a7a10bfdf27781fd930ea1ad0f69b}{F\+U\+N\+C\+\_\+\+A\+C\+C\+E\+S\+S\+O\+R\+\_\+\+G\+E\+T\+\_\+\+C\+O\+N\+T\+A\+I\+N\+ER}}(Function)~((\mbox{\hyperlink{group__Eina__Accessor__Group_gaef151d729d6fe66adddc156e507e9f25}{Eina\+\_\+\+Accessor\+\_\+\+Get\+\_\+\+Container\+\_\+\+Callback}})Function)
\begin{DoxyCompactList}\small\item\em Definition for helper macro to cast {\itshape Function} to a Eina\+\_\+\+Accessor\+\_\+\+Get\+\_\+\+Container\+\_\+\+Callback. \end{DoxyCompactList}\item 
\mbox{\Hypertarget{group__Eina__Accessor__Group_gacbe51b5e7bbd77448af4b0a6b48be101}\label{group__Eina__Accessor__Group_gacbe51b5e7bbd77448af4b0a6b48be101}} 
\#define \mbox{\hyperlink{group__Eina__Accessor__Group_gacbe51b5e7bbd77448af4b0a6b48be101}{F\+U\+N\+C\+\_\+\+A\+C\+C\+E\+S\+S\+O\+R\+\_\+\+F\+R\+EE}}(Function)~((\mbox{\hyperlink{group__Eina__Accessor__Group_ga769cafc66da99f273fed70b476ac267e}{Eina\+\_\+\+Accessor\+\_\+\+Free\+\_\+\+Callback}})Function)
\begin{DoxyCompactList}\small\item\em Definition for helper macro to cast {\itshape Function} to a Eina\+\_\+\+Accessor\+\_\+\+Free\+\_\+\+Callback. \end{DoxyCompactList}\item 
\mbox{\Hypertarget{group__Eina__Accessor__Group_gac6118c9d83e0ecc49d64e9d6a55ce8f4}\label{group__Eina__Accessor__Group_gac6118c9d83e0ecc49d64e9d6a55ce8f4}} 
\#define \mbox{\hyperlink{group__Eina__Accessor__Group_gac6118c9d83e0ecc49d64e9d6a55ce8f4}{F\+U\+N\+C\+\_\+\+A\+C\+C\+E\+S\+S\+O\+R\+\_\+\+L\+O\+CK}}(Function)~((\mbox{\hyperlink{group__Eina__Accessor__Group_ga065dd799cff7bd10d3a7ca58d844d9fa}{Eina\+\_\+\+Accessor\+\_\+\+Lock\+\_\+\+Callback}})Function)
\begin{DoxyCompactList}\small\item\em Definition for helper macro to cast {\itshape Function} to a Eina\+\_\+\+Iterator\+\_\+\+Lock\+\_\+\+Callback. \end{DoxyCompactList}\item 
\#define \mbox{\hyperlink{group__Eina__Accessor__Group_ga0731ded73bf09c32424d9ed9af030061}{F\+U\+N\+C\+\_\+\+A\+C\+C\+E\+S\+S\+O\+R\+\_\+\+C\+L\+O\+NE}}(Function)~((\mbox{\hyperlink{group__Eina__Accessor__Group_gaaedbf58fae067e59258f9d34b093f161}{Eina\+\_\+\+Accessor\+\_\+\+Clone\+\_\+\+Callback}})Function)
\begin{DoxyCompactList}\small\item\em Definition for helper macro to cast {\ttfamily Function} to a Eina\+\_\+\+Iterator\+\_\+\+Clone\+\_\+\+Callback. \end{DoxyCompactList}\item 
\#define \mbox{\hyperlink{group__Eina__Accessor__Group_gab959a885591d4348c1d6abb243f3c2c0}{E\+I\+N\+A\+\_\+\+A\+C\+C\+E\+S\+S\+O\+R\+\_\+\+F\+O\+R\+E\+A\+CH}}(accessor,  counter,  data)
\begin{DoxyCompactList}\small\item\em Definition for helper macro to iterate over all the elements easily. \end{DoxyCompactList}\item 
\#define \mbox{\hyperlink{group__Eina__Accessor__Group_ga9790bb89e1d2608f6556ee702f46b08c}{E\+I\+N\+A\+\_\+\+C\+\_\+\+A\+R\+R\+A\+Y\+\_\+\+A\+C\+C\+E\+S\+S\+O\+R\+\_\+\+N\+EW}}(Array)~\mbox{\hyperlink{group__Eina__Accessor__Group_gaa4d63471cdbd3766dd4290645827e92e}{eina\+\_\+carray\+\_\+length\+\_\+accessor\+\_\+new}}((void$\ast$$\ast$) Array, sizeof (Array\mbox{[}0\mbox{]}), \mbox{\hyperlink{group__Eina__Types__Group_ga7c1b6f81660b4e30516169e9e7d3261c}{E\+I\+N\+A\+\_\+\+C\+\_\+\+A\+R\+R\+A\+Y\+\_\+\+L\+E\+N\+G\+TH}}(Array))
\begin{DoxyCompactList}\small\item\em Creates an Eina\+\_\+\+Accessor that wraps a plain fixed size C array. \end{DoxyCompactList}\end{DoxyCompactItemize}
\doxysubsection*{Typedefs}
\begin{DoxyCompactItemize}
\item 
\mbox{\Hypertarget{group__Eina__Accessor__Group_ga65199ea5201a1867471028477dc26744}\label{group__Eina__Accessor__Group_ga65199ea5201a1867471028477dc26744}} 
typedef struct \mbox{\hyperlink{struct__Eina__Accessor}{\+\_\+\+Eina\+\_\+\+Accessor}} \mbox{\hyperlink{group__Eina__Accessor__Group_ga65199ea5201a1867471028477dc26744}{Eina\+\_\+\+Accessor}}
\begin{DoxyCompactList}\small\item\em Type for a accessor structure. \end{DoxyCompactList}\item 
\mbox{\Hypertarget{group__Eina__Accessor__Group_ga095891ba9b51a39be00c26c8b9cadda4}\label{group__Eina__Accessor__Group_ga095891ba9b51a39be00c26c8b9cadda4}} 
typedef \mbox{\hyperlink{group__Eina__Types__Group_ga3fe0caf72e93b1bab1ca8ee3ccf3f226}{Eina\+\_\+\+Bool}}($\ast$ \mbox{\hyperlink{group__Eina__Accessor__Group_ga095891ba9b51a39be00c26c8b9cadda4}{Eina\+\_\+\+Accessor\+\_\+\+Get\+\_\+\+At\+\_\+\+Callback}}) (\mbox{\hyperlink{group__Eina__Accessor__Group_ga65199ea5201a1867471028477dc26744}{Eina\+\_\+\+Accessor}} $\ast$it, unsigned int idx, void $\ast$$\ast$data)
\begin{DoxyCompactList}\small\item\em Type for a callback that returns the data of a container as the given index. \end{DoxyCompactList}\item 
\mbox{\Hypertarget{group__Eina__Accessor__Group_gaef151d729d6fe66adddc156e507e9f25}\label{group__Eina__Accessor__Group_gaef151d729d6fe66adddc156e507e9f25}} 
typedef void $\ast$($\ast$ \mbox{\hyperlink{group__Eina__Accessor__Group_gaef151d729d6fe66adddc156e507e9f25}{Eina\+\_\+\+Accessor\+\_\+\+Get\+\_\+\+Container\+\_\+\+Callback}}) (\mbox{\hyperlink{group__Eina__Accessor__Group_ga65199ea5201a1867471028477dc26744}{Eina\+\_\+\+Accessor}} $\ast$it)
\begin{DoxyCompactList}\small\item\em Type for a callback to return the container of the accessor. \end{DoxyCompactList}\item 
\mbox{\Hypertarget{group__Eina__Accessor__Group_ga769cafc66da99f273fed70b476ac267e}\label{group__Eina__Accessor__Group_ga769cafc66da99f273fed70b476ac267e}} 
typedef void($\ast$ \mbox{\hyperlink{group__Eina__Accessor__Group_ga769cafc66da99f273fed70b476ac267e}{Eina\+\_\+\+Accessor\+\_\+\+Free\+\_\+\+Callback}}) (\mbox{\hyperlink{group__Eina__Accessor__Group_ga65199ea5201a1867471028477dc26744}{Eina\+\_\+\+Accessor}} $\ast$it)
\begin{DoxyCompactList}\small\item\em Type for a callback to free the accessor. \end{DoxyCompactList}\item 
\mbox{\Hypertarget{group__Eina__Accessor__Group_ga065dd799cff7bd10d3a7ca58d844d9fa}\label{group__Eina__Accessor__Group_ga065dd799cff7bd10d3a7ca58d844d9fa}} 
typedef \mbox{\hyperlink{group__Eina__Types__Group_ga3fe0caf72e93b1bab1ca8ee3ccf3f226}{Eina\+\_\+\+Bool}}($\ast$ \mbox{\hyperlink{group__Eina__Accessor__Group_ga065dd799cff7bd10d3a7ca58d844d9fa}{Eina\+\_\+\+Accessor\+\_\+\+Lock\+\_\+\+Callback}}) (\mbox{\hyperlink{group__Eina__Accessor__Group_ga65199ea5201a1867471028477dc26744}{Eina\+\_\+\+Accessor}} $\ast$it)
\begin{DoxyCompactList}\small\item\em Type for a callback to lock the accessor. \end{DoxyCompactList}\item 
typedef \mbox{\hyperlink{group__Eina__Accessor__Group_ga65199ea5201a1867471028477dc26744}{Eina\+\_\+\+Accessor}} $\ast$($\ast$ \mbox{\hyperlink{group__Eina__Accessor__Group_gaaedbf58fae067e59258f9d34b093f161}{Eina\+\_\+\+Accessor\+\_\+\+Clone\+\_\+\+Callback}}) (\mbox{\hyperlink{group__Eina__Accessor__Group_ga65199ea5201a1867471028477dc26744}{Eina\+\_\+\+Accessor}} $\ast$it)
\begin{DoxyCompactList}\small\item\em Type for a callback to return a clone for the accessor. \end{DoxyCompactList}\end{DoxyCompactItemize}
\doxysubsection*{Functions}
\begin{DoxyCompactItemize}
\item 
\mbox{\hyperlink{group__Elua_ga3db3556eec8ef18cb8ddb43816974ac8}{E\+A\+PI}} void \mbox{\hyperlink{group__Eina__Accessor__Group_ga5ae101883822c1f01688fcef3a6585b8}{eina\+\_\+accessor\+\_\+free}} (\mbox{\hyperlink{group__Eina__Accessor__Group_ga65199ea5201a1867471028477dc26744}{Eina\+\_\+\+Accessor}} $\ast$accessor)
\begin{DoxyCompactList}\small\item\em Frees an accessor. \end{DoxyCompactList}\item 
\mbox{\hyperlink{group__Elua_ga3db3556eec8ef18cb8ddb43816974ac8}{E\+A\+PI}} \mbox{\hyperlink{group__Eina__Types__Group_ga3fe0caf72e93b1bab1ca8ee3ccf3f226}{Eina\+\_\+\+Bool}} \mbox{\hyperlink{group__Eina__Accessor__Group_ga08786da46a71eb2d1ad0ee07db8463cd}{eina\+\_\+accessor\+\_\+data\+\_\+get}} (\mbox{\hyperlink{group__Eina__Accessor__Group_ga65199ea5201a1867471028477dc26744}{Eina\+\_\+\+Accessor}} $\ast$accessor, unsigned int position, void $\ast$$\ast$data) \mbox{\hyperlink{group__Eina__Types__Group_ga1a066aa3069f7e43279021cc1e378fac}{E\+I\+N\+A\+\_\+\+A\+R\+G\+\_\+\+N\+O\+N\+N\+U\+LL}}(1)
\begin{DoxyCompactList}\small\item\em Gets the data of an accessor at the given position. \end{DoxyCompactList}\item 
\mbox{\hyperlink{group__Elua_ga3db3556eec8ef18cb8ddb43816974ac8}{E\+A\+PI}} void $\ast$ \mbox{\hyperlink{group__Eina__Accessor__Group_ga461c9ee7dec70fc5fa17acea0a59beb6}{eina\+\_\+accessor\+\_\+container\+\_\+get}} (\mbox{\hyperlink{group__Eina__Accessor__Group_ga65199ea5201a1867471028477dc26744}{Eina\+\_\+\+Accessor}} $\ast$accessor) \mbox{\hyperlink{group__Eina__Types__Group_ga1a066aa3069f7e43279021cc1e378fac}{E\+I\+N\+A\+\_\+\+A\+R\+G\+\_\+\+N\+O\+N\+N\+U\+LL}}(1) \mbox{\hyperlink{group__Eina__Types__Group_ga4669a55a23089d0f9b70702ef05cea68}{E\+I\+N\+A\+\_\+\+P\+U\+RE}}
\begin{DoxyCompactList}\small\item\em Gets the container of an accessor. \end{DoxyCompactList}\item 
\mbox{\hyperlink{group__Elua_ga3db3556eec8ef18cb8ddb43816974ac8}{E\+A\+PI}} void \mbox{\hyperlink{group__Eina__Accessor__Group_ga1ff21fd278a35a585e2aa3043996b2e8}{eina\+\_\+accessor\+\_\+over}} (\mbox{\hyperlink{group__Eina__Accessor__Group_ga65199ea5201a1867471028477dc26744}{Eina\+\_\+\+Accessor}} $\ast$accessor, \mbox{\hyperlink{group__Eina__Types__Group_gab115f6c19b6641ab5ba22ed45d9b7aa4}{Eina\+\_\+\+Each\+\_\+\+Cb}} cb, unsigned int start, unsigned int end, const void $\ast$fdata) \mbox{\hyperlink{group__Eina__Types__Group_ga1a066aa3069f7e43279021cc1e378fac}{E\+I\+N\+A\+\_\+\+A\+R\+G\+\_\+\+N\+O\+N\+N\+U\+LL}}(2)
\begin{DoxyCompactList}\small\item\em Iterates over the container and executes a callback on the chosen elements. \end{DoxyCompactList}\item 
\mbox{\hyperlink{group__Elua_ga3db3556eec8ef18cb8ddb43816974ac8}{E\+A\+PI}} \mbox{\hyperlink{group__Eina__Types__Group_ga3fe0caf72e93b1bab1ca8ee3ccf3f226}{Eina\+\_\+\+Bool}} \mbox{\hyperlink{group__Eina__Accessor__Group_ga0ef9b22d8f59031d00e34aa50f9d056e}{eina\+\_\+accessor\+\_\+lock}} (\mbox{\hyperlink{group__Eina__Accessor__Group_ga65199ea5201a1867471028477dc26744}{Eina\+\_\+\+Accessor}} $\ast$accessor) \mbox{\hyperlink{group__Eina__Types__Group_ga1a066aa3069f7e43279021cc1e378fac}{E\+I\+N\+A\+\_\+\+A\+R\+G\+\_\+\+N\+O\+N\+N\+U\+LL}}(1)
\begin{DoxyCompactList}\small\item\em Locks the container of the accessor. \end{DoxyCompactList}\item 
\mbox{\hyperlink{group__Elua_ga3db3556eec8ef18cb8ddb43816974ac8}{E\+A\+PI}} \mbox{\hyperlink{group__Eina__Accessor__Group_ga65199ea5201a1867471028477dc26744}{Eina\+\_\+\+Accessor}} $\ast$ \mbox{\hyperlink{group__Eina__Accessor__Group_ga4f0a9c869b97b7737036c1435ed1098f}{eina\+\_\+accessor\+\_\+clone}} (\mbox{\hyperlink{group__Eina__Accessor__Group_ga65199ea5201a1867471028477dc26744}{Eina\+\_\+\+Accessor}} $\ast$accessor) \mbox{\hyperlink{group__Eina__Types__Group_ga1a066aa3069f7e43279021cc1e378fac}{E\+I\+N\+A\+\_\+\+A\+R\+G\+\_\+\+N\+O\+N\+N\+U\+LL}}(1)
\begin{DoxyCompactList}\small\item\em Clones the container of the accessor. \end{DoxyCompactList}\item 
\mbox{\hyperlink{group__Elua_ga3db3556eec8ef18cb8ddb43816974ac8}{E\+A\+PI}} \mbox{\hyperlink{group__Eina__Types__Group_ga3fe0caf72e93b1bab1ca8ee3ccf3f226}{Eina\+\_\+\+Bool}} \mbox{\hyperlink{group__Eina__Accessor__Group_ga78a4ad94c6c46f64f96f5b125a9544f8}{eina\+\_\+accessor\+\_\+unlock}} (\mbox{\hyperlink{group__Eina__Accessor__Group_ga65199ea5201a1867471028477dc26744}{Eina\+\_\+\+Accessor}} $\ast$accessor) \mbox{\hyperlink{group__Eina__Types__Group_ga1a066aa3069f7e43279021cc1e378fac}{E\+I\+N\+A\+\_\+\+A\+R\+G\+\_\+\+N\+O\+N\+N\+U\+LL}}(1)
\begin{DoxyCompactList}\small\item\em Unlocks the container of the accessor. \end{DoxyCompactList}\item 
\mbox{\hyperlink{group__Elua_ga3db3556eec8ef18cb8ddb43816974ac8}{E\+A\+PI}} \mbox{\hyperlink{group__Eina__Accessor__Group_ga65199ea5201a1867471028477dc26744}{Eina\+\_\+\+Accessor}} $\ast$ \mbox{\hyperlink{group__Eina__Accessor__Group_gaa4d63471cdbd3766dd4290645827e92e}{eina\+\_\+carray\+\_\+length\+\_\+accessor\+\_\+new}} (void $\ast$$\ast$array, unsigned int step, unsigned int length)
\begin{DoxyCompactList}\small\item\em Creates an Eina\+\_\+\+Accessor that wraps a plain fixed size C array. \end{DoxyCompactList}\end{DoxyCompactItemize}


\doxysubsection{Detailed Description}
This group discusses the functions to manage an accessor on containers. 

These functions allow to access elements of a container in a generic way, without knowing which container is used (a bit like iterators in the C++ S\+TL). Accessors allows random access (that is, any element in the container). For sequential access, see \mbox{\hyperlink{group__Eina__Iterator__Group}{Iterator Functions}}.

Getting an accessor to access elements of a given container is done through the functions of that particular container. There is no function to create a generic accessor as accessors absolutely depend on the container. This means you won\textquotesingle{}t find an accessor creation function here, those can be found on the documentation of the container type you\textquotesingle{}re using. Though created with container specific functions, accessors are always deleted by the same function\+: \mbox{\hyperlink{group__Eina__Accessor__Group_ga5ae101883822c1f01688fcef3a6585b8}{eina\+\_\+accessor\+\_\+free()}}.

To get the data of an element at a given position, use \mbox{\hyperlink{group__Eina__Accessor__Group_ga08786da46a71eb2d1ad0ee07db8463cd}{eina\+\_\+accessor\+\_\+data\+\_\+get()}}. To call a function on chosen elements of a container, use \mbox{\hyperlink{group__Eina__Accessor__Group_ga1ff21fd278a35a585e2aa3043996b2e8}{eina\+\_\+accessor\+\_\+over()}}.

See an example \mbox{\hyperlink{eina_accessor_example_01_page}{here}}. 

\doxysubsection{Macro Definition Documentation}
\mbox{\Hypertarget{group__Eina__Accessor__Group_ga0731ded73bf09c32424d9ed9af030061}\label{group__Eina__Accessor__Group_ga0731ded73bf09c32424d9ed9af030061}} 
\index{Accessor Functions@{Accessor Functions}!FUNC\_ACCESSOR\_CLONE@{FUNC\_ACCESSOR\_CLONE}}
\index{FUNC\_ACCESSOR\_CLONE@{FUNC\_ACCESSOR\_CLONE}!Accessor Functions@{Accessor Functions}}
\doxysubsubsection{\texorpdfstring{FUNC\_ACCESSOR\_CLONE}{FUNC\_ACCESSOR\_CLONE}}
{\footnotesize\ttfamily \#define F\+U\+N\+C\+\_\+\+A\+C\+C\+E\+S\+S\+O\+R\+\_\+\+C\+L\+O\+NE(\begin{DoxyParamCaption}\item[{}]{Function }\end{DoxyParamCaption})~((\mbox{\hyperlink{group__Eina__Accessor__Group_gaaedbf58fae067e59258f9d34b093f161}{Eina\+\_\+\+Accessor\+\_\+\+Clone\+\_\+\+Callback}})Function)}



Definition for helper macro to cast {\ttfamily Function} to a Eina\+\_\+\+Iterator\+\_\+\+Clone\+\_\+\+Callback. 

\begin{DoxySince}{Since}
1.\+10 
\end{DoxySince}
\mbox{\Hypertarget{group__Eina__Accessor__Group_gab959a885591d4348c1d6abb243f3c2c0}\label{group__Eina__Accessor__Group_gab959a885591d4348c1d6abb243f3c2c0}} 
\index{Accessor Functions@{Accessor Functions}!EINA\_ACCESSOR\_FOREACH@{EINA\_ACCESSOR\_FOREACH}}
\index{EINA\_ACCESSOR\_FOREACH@{EINA\_ACCESSOR\_FOREACH}!Accessor Functions@{Accessor Functions}}
\doxysubsubsection{\texorpdfstring{EINA\_ACCESSOR\_FOREACH}{EINA\_ACCESSOR\_FOREACH}}
{\footnotesize\ttfamily \#define E\+I\+N\+A\+\_\+\+A\+C\+C\+E\+S\+S\+O\+R\+\_\+\+F\+O\+R\+E\+A\+CH(\begin{DoxyParamCaption}\item[{}]{accessor,  }\item[{}]{counter,  }\item[{}]{data }\end{DoxyParamCaption})}

{\bfseries Value\+:}
\begin{DoxyCode}{0}
\DoxyCodeLine{\textcolor{keywordflow}{for} ((counter) = 0;                                                   \(\backslash\)}
\DoxyCodeLine{       eina\_accessor\_data\_get((accessor), (counter), (\textcolor{keywordtype}{void} **)(\textcolor{keywordtype}{void} *)\&(data)); \(\backslash\)}
\DoxyCodeLine{       (counter)++)}

\end{DoxyCode}


Definition for helper macro to iterate over all the elements easily. 

This macro allows a convenient way to loop over all elements in an accessor, very similar to \mbox{\hyperlink{group__Eina__List__Group_gac6efafc19f526d916cdb9757240a8773}{E\+I\+N\+A\+\_\+\+L\+I\+S\+T\+\_\+\+F\+O\+R\+E\+A\+C\+H()}}.


\begin{DoxyParams}[1]{Parameters}
\mbox{\texttt{ in}}  & {\em accessor} & The accessor to use \\
\hline
\mbox{\texttt{ out}}  & {\em counter} & A counter used by \mbox{\hyperlink{group__Eina__Accessor__Group_ga08786da46a71eb2d1ad0ee07db8463cd}{eina\+\_\+accessor\+\_\+data\+\_\+get()}} when iterating over the container. \\
\hline
\mbox{\texttt{ out}}  & {\em data} & A pointer to store the data ~\newline
 It must be a pointer to support getting its address since \mbox{\hyperlink{group__Eina__Accessor__Group_ga08786da46a71eb2d1ad0ee07db8463cd}{eina\+\_\+accessor\+\_\+data\+\_\+get()}} requires a pointer.\\
\hline
\end{DoxyParams}
This macro can be used for freeing the data of a list, like in the following example. It has the same goal as the one documented in \mbox{\hyperlink{group__Eina__List__Group_gac6efafc19f526d916cdb9757240a8773}{E\+I\+N\+A\+\_\+\+L\+I\+S\+T\+\_\+\+F\+O\+R\+E\+A\+C\+H()}}, but using accessors\+:


\begin{DoxyCode}{0}
\DoxyCodeLine{\mbox{\hyperlink{struct__Eina__List}{Eina\_List}}     *list;}
\DoxyCodeLine{\mbox{\hyperlink{struct__Eina__Accessor}{Eina\_Accessor}} *accessor;}
\DoxyCodeLine{\textcolor{keywordtype}{unsigned} \textcolor{keywordtype}{int}   i;}
\DoxyCodeLine{\textcolor{keywordtype}{char}          *data;}
\DoxyCodeLine{}
\DoxyCodeLine{\textcolor{comment}{// list is already filled,}}
\DoxyCodeLine{\textcolor{comment}{// its elements are just duplicated strings}}
\DoxyCodeLine{}
\DoxyCodeLine{accessor = \mbox{\hyperlink{group__Eina__List__Group_ga6901b2ea29c9bc34a486dae00d3cf608}{eina\_list\_accessor\_new}}(list);}
\DoxyCodeLine{\mbox{\hyperlink{group__Eina__Accessor__Group_gab959a885591d4348c1d6abb243f3c2c0}{EINA\_ACCESSOR\_FOREACH}}(accessor, i, data)}
\DoxyCodeLine{  free(data);}
\DoxyCodeLine{\mbox{\hyperlink{group__Eina__Accessor__Group_ga5ae101883822c1f01688fcef3a6585b8}{eina\_accessor\_free}}(accessor);}
\DoxyCodeLine{\mbox{\hyperlink{group__Eina__List__Group_ga608bd2fbf06293a1b794648990703ab4}{eina\_list\_free}}(list);}
\end{DoxyCode}


\begin{DoxyNote}{Note}
If the data type provides both iterators and accessors, prefer to use iterators to iterate over, as they\textquotesingle{}re likely to be more optimized for such a task.

This example is not an optimal algorithm to release a list as it walks through the list twice, but it serves as an example. For an optimized version 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}
Unless explicitly stated in the function\textquotesingle{}s returning accessors, do not modify the accessed object while you walk through it. In this example using lists, do not remove list nodes or the program might crash. This is not a limitation of the accessors themselves, but a limitation in the accessors implementations to keep them as simple and fast as possible. 
\end{DoxyWarning}
\mbox{\Hypertarget{group__Eina__Accessor__Group_ga9790bb89e1d2608f6556ee702f46b08c}\label{group__Eina__Accessor__Group_ga9790bb89e1d2608f6556ee702f46b08c}} 
\index{Accessor Functions@{Accessor Functions}!EINA\_C\_ARRAY\_ACCESSOR\_NEW@{EINA\_C\_ARRAY\_ACCESSOR\_NEW}}
\index{EINA\_C\_ARRAY\_ACCESSOR\_NEW@{EINA\_C\_ARRAY\_ACCESSOR\_NEW}!Accessor Functions@{Accessor Functions}}
\doxysubsubsection{\texorpdfstring{EINA\_C\_ARRAY\_ACCESSOR\_NEW}{EINA\_C\_ARRAY\_ACCESSOR\_NEW}}
{\footnotesize\ttfamily \#define E\+I\+N\+A\+\_\+\+C\+\_\+\+A\+R\+R\+A\+Y\+\_\+\+A\+C\+C\+E\+S\+S\+O\+R\+\_\+\+N\+EW(\begin{DoxyParamCaption}\item[{}]{Array }\end{DoxyParamCaption})~\mbox{\hyperlink{group__Eina__Accessor__Group_gaa4d63471cdbd3766dd4290645827e92e}{eina\+\_\+carray\+\_\+length\+\_\+accessor\+\_\+new}}((void$\ast$$\ast$) Array, sizeof (Array\mbox{[}0\mbox{]}), \mbox{\hyperlink{group__Eina__Types__Group_ga7c1b6f81660b4e30516169e9e7d3261c}{E\+I\+N\+A\+\_\+\+C\+\_\+\+A\+R\+R\+A\+Y\+\_\+\+L\+E\+N\+G\+TH}}(Array))}



Creates an Eina\+\_\+\+Accessor that wraps a plain fixed size C array. 


\begin{DoxyParams}[1]{Parameters}
\mbox{\texttt{ in}}  & {\em array} & The array \\
\hline
\end{DoxyParams}
\begin{DoxyReturn}{Returns}
The accessor that will give access to the passed array
\end{DoxyReturn}
You can create it like this\+: int array\mbox{[}\mbox{]} = \{1, 2, 3, 4, 1337, 42\};

Eina\+\_\+\+Accessor$\ast$ accessor = \mbox{\hyperlink{group__Eina__Accessor__Group_ga9790bb89e1d2608f6556ee702f46b08c}{E\+I\+N\+A\+\_\+\+C\+\_\+\+A\+R\+R\+A\+Y\+\_\+\+A\+C\+C\+E\+S\+S\+O\+R\+\_\+\+N\+E\+W(array)}}

\begin{DoxySince}{Since}
1.\+23 
\end{DoxySince}


\doxysubsection{Typedef Documentation}
\mbox{\Hypertarget{group__Eina__Accessor__Group_gaaedbf58fae067e59258f9d34b093f161}\label{group__Eina__Accessor__Group_gaaedbf58fae067e59258f9d34b093f161}} 
\index{Accessor Functions@{Accessor Functions}!Eina\_Accessor\_Clone\_Callback@{Eina\_Accessor\_Clone\_Callback}}
\index{Eina\_Accessor\_Clone\_Callback@{Eina\_Accessor\_Clone\_Callback}!Accessor Functions@{Accessor Functions}}
\doxysubsubsection{\texorpdfstring{Eina\_Accessor\_Clone\_Callback}{Eina\_Accessor\_Clone\_Callback}}
{\footnotesize\ttfamily Eina\+\_\+\+Accessor\+\_\+\+Clone\+\_\+\+Callback}



Type for a callback to return a clone for the accessor. 

\begin{DoxySince}{Since}
1.\+10 
\end{DoxySince}


\doxysubsection{Function Documentation}
\mbox{\Hypertarget{group__Eina__Accessor__Group_ga5ae101883822c1f01688fcef3a6585b8}\label{group__Eina__Accessor__Group_ga5ae101883822c1f01688fcef3a6585b8}} 
\index{Accessor Functions@{Accessor Functions}!eina\_accessor\_free@{eina\_accessor\_free}}
\index{eina\_accessor\_free@{eina\_accessor\_free}!Accessor Functions@{Accessor Functions}}
\doxysubsubsection{\texorpdfstring{eina\_accessor\_free()}{eina\_accessor\_free()}}
{\footnotesize\ttfamily \mbox{\hyperlink{group__Elua_ga3db3556eec8ef18cb8ddb43816974ac8}{E\+A\+PI}} void eina\+\_\+accessor\+\_\+free (\begin{DoxyParamCaption}\item[{\mbox{\hyperlink{group__Eina__Accessor__Group_ga65199ea5201a1867471028477dc26744}{Eina\+\_\+\+Accessor}} $\ast$}]{accessor }\end{DoxyParamCaption})}



Frees an accessor. 

This function frees {\itshape accessor} if it is not {\ttfamily N\+U\+LL}. 
\begin{DoxyParams}[1]{Parameters}
\mbox{\texttt{ in}}  & {\em accessor} & The accessor to free \\
\hline
\end{DoxyParams}


References E\+I\+N\+A\+\_\+\+S\+A\+F\+E\+T\+Y\+\_\+\+O\+N\+\_\+\+N\+U\+L\+L\+\_\+\+R\+E\+T\+U\+RN.

\mbox{\Hypertarget{group__Eina__Accessor__Group_ga08786da46a71eb2d1ad0ee07db8463cd}\label{group__Eina__Accessor__Group_ga08786da46a71eb2d1ad0ee07db8463cd}} 
\index{Accessor Functions@{Accessor Functions}!eina\_accessor\_data\_get@{eina\_accessor\_data\_get}}
\index{eina\_accessor\_data\_get@{eina\_accessor\_data\_get}!Accessor Functions@{Accessor Functions}}
\doxysubsubsection{\texorpdfstring{eina\_accessor\_data\_get()}{eina\_accessor\_data\_get()}}
{\footnotesize\ttfamily \mbox{\hyperlink{group__Elua_ga3db3556eec8ef18cb8ddb43816974ac8}{E\+A\+PI}} \mbox{\hyperlink{group__Eina__Types__Group_ga3fe0caf72e93b1bab1ca8ee3ccf3f226}{Eina\+\_\+\+Bool}} eina\+\_\+accessor\+\_\+data\+\_\+get (\begin{DoxyParamCaption}\item[{\mbox{\hyperlink{group__Eina__Accessor__Group_ga65199ea5201a1867471028477dc26744}{Eina\+\_\+\+Accessor}} $\ast$}]{accessor,  }\item[{unsigned int}]{position,  }\item[{void $\ast$$\ast$}]{data }\end{DoxyParamCaption})}



Gets the data of an accessor at the given position. 

This function retrieves the data of the element pointed by {\ttfamily accessor} at the position {\ttfamily position}, and stores it in {\ttfamily data}. If {\ttfamily accessor} is {\ttfamily N\+U\+LL} or if an error occurs, {\ttfamily E\+I\+N\+A\+\_\+\+F\+A\+L\+SE} is returned, otherwise {\ttfamily E\+I\+N\+A\+\_\+\+T\+R\+UE} is returned. 
\begin{DoxyParams}[1]{Parameters}
\mbox{\texttt{ in}}  & {\em accessor} & The accessor \\
\hline
\mbox{\texttt{ in}}  & {\em position} & The position of the element \\
\hline
\mbox{\texttt{ in}}  & {\em data} & The pointer that stores the data to retrieve \\
\hline
\end{DoxyParams}
\begin{DoxyReturn}{Returns}
\mbox{\hyperlink{group__Eina__Types__Group_ga05c12dacc8b4058994df842b41be85fc}{E\+I\+N\+A\+\_\+\+T\+R\+UE}} on success, otherwise \mbox{\hyperlink{group__Eina__Types__Group_ga1feb115f8e9913e806e090d9bd5a7301}{E\+I\+N\+A\+\_\+\+F\+A\+L\+SE}} 
\end{DoxyReturn}


References E\+I\+N\+A\+\_\+\+F\+A\+L\+SE, and E\+I\+N\+A\+\_\+\+S\+A\+F\+E\+T\+Y\+\_\+\+O\+N\+\_\+\+N\+U\+L\+L\+\_\+\+R\+E\+T\+U\+R\+N\+\_\+\+V\+AL.

\mbox{\Hypertarget{group__Eina__Accessor__Group_ga461c9ee7dec70fc5fa17acea0a59beb6}\label{group__Eina__Accessor__Group_ga461c9ee7dec70fc5fa17acea0a59beb6}} 
\index{Accessor Functions@{Accessor Functions}!eina\_accessor\_container\_get@{eina\_accessor\_container\_get}}
\index{eina\_accessor\_container\_get@{eina\_accessor\_container\_get}!Accessor Functions@{Accessor Functions}}
\doxysubsubsection{\texorpdfstring{eina\_accessor\_container\_get()}{eina\_accessor\_container\_get()}}
{\footnotesize\ttfamily \mbox{\hyperlink{group__Elua_ga3db3556eec8ef18cb8ddb43816974ac8}{E\+A\+PI}} void$\ast$ eina\+\_\+accessor\+\_\+container\+\_\+get (\begin{DoxyParamCaption}\item[{\mbox{\hyperlink{group__Eina__Accessor__Group_ga65199ea5201a1867471028477dc26744}{Eina\+\_\+\+Accessor}} $\ast$}]{accessor }\end{DoxyParamCaption})}



Gets the container of an accessor. 

This function returns the container that created {\ttfamily accessor}. If {\ttfamily accessor} is {\ttfamily N\+U\+LL}, this function returns {\ttfamily N\+U\+LL}. 
\begin{DoxyParams}[1]{Parameters}
\mbox{\texttt{ in}}  & {\em accessor} & The accessor \\
\hline
\end{DoxyParams}
\begin{DoxyReturn}{Returns}
The container that created the accessor 
\end{DoxyReturn}


References E\+I\+N\+A\+\_\+\+S\+A\+F\+E\+T\+Y\+\_\+\+O\+N\+\_\+\+N\+U\+L\+L\+\_\+\+R\+E\+T\+U\+R\+N\+\_\+\+V\+AL.

\mbox{\Hypertarget{group__Eina__Accessor__Group_ga1ff21fd278a35a585e2aa3043996b2e8}\label{group__Eina__Accessor__Group_ga1ff21fd278a35a585e2aa3043996b2e8}} 
\index{Accessor Functions@{Accessor Functions}!eina\_accessor\_over@{eina\_accessor\_over}}
\index{eina\_accessor\_over@{eina\_accessor\_over}!Accessor Functions@{Accessor Functions}}
\doxysubsubsection{\texorpdfstring{eina\_accessor\_over()}{eina\_accessor\_over()}}
{\footnotesize\ttfamily \mbox{\hyperlink{group__Elua_ga3db3556eec8ef18cb8ddb43816974ac8}{E\+A\+PI}} void eina\+\_\+accessor\+\_\+over (\begin{DoxyParamCaption}\item[{\mbox{\hyperlink{group__Eina__Accessor__Group_ga65199ea5201a1867471028477dc26744}{Eina\+\_\+\+Accessor}} $\ast$}]{accessor,  }\item[{\mbox{\hyperlink{group__Eina__Types__Group_gab115f6c19b6641ab5ba22ed45d9b7aa4}{Eina\+\_\+\+Each\+\_\+\+Cb}}}]{cb,  }\item[{unsigned int}]{start,  }\item[{unsigned int}]{end,  }\item[{const void $\ast$}]{fdata }\end{DoxyParamCaption})}



Iterates over the container and executes a callback on the chosen elements. 

This function iterates over the elements pointed by {\ttfamily accessor}, starting from the element at position {\ttfamily start} and ending at the element at position {\ttfamily end}. For each element, the callback {\ttfamily cb} is called with the data {\ttfamily fdata}. If {\ttfamily accessor} is {\ttfamily N\+U\+LL} or if {\ttfamily start} is greater than or equal to {\ttfamily end}, the function returns immediately.


\begin{DoxyParams}[1]{Parameters}
\mbox{\texttt{ in}}  & {\em accessor} & The accessor \\
\hline
\mbox{\texttt{ in}}  & {\em cb} & The callback called on the chosen elements \\
\hline
\mbox{\texttt{ in}}  & {\em start} & The position of the first element \\
\hline
\mbox{\texttt{ in}}  & {\em end} & The position of the last element \\
\hline
\mbox{\texttt{ in}}  & {\em fdata} & The data passed to the callback \\
\hline
\end{DoxyParams}


References eina\+\_\+accessor\+\_\+lock(), eina\+\_\+accessor\+\_\+unlock(), E\+I\+N\+A\+\_\+\+S\+A\+F\+E\+T\+Y\+\_\+\+O\+N\+\_\+\+F\+A\+L\+S\+E\+\_\+\+R\+E\+T\+U\+RN, E\+I\+N\+A\+\_\+\+S\+A\+F\+E\+T\+Y\+\_\+\+O\+N\+\_\+\+N\+U\+L\+L\+\_\+\+R\+E\+T\+U\+RN, and E\+I\+N\+A\+\_\+\+T\+R\+UE.

\mbox{\Hypertarget{group__Eina__Accessor__Group_ga0ef9b22d8f59031d00e34aa50f9d056e}\label{group__Eina__Accessor__Group_ga0ef9b22d8f59031d00e34aa50f9d056e}} 
\index{Accessor Functions@{Accessor Functions}!eina\_accessor\_lock@{eina\_accessor\_lock}}
\index{eina\_accessor\_lock@{eina\_accessor\_lock}!Accessor Functions@{Accessor Functions}}
\doxysubsubsection{\texorpdfstring{eina\_accessor\_lock()}{eina\_accessor\_lock()}}
{\footnotesize\ttfamily \mbox{\hyperlink{group__Elua_ga3db3556eec8ef18cb8ddb43816974ac8}{E\+A\+PI}} \mbox{\hyperlink{group__Eina__Types__Group_ga3fe0caf72e93b1bab1ca8ee3ccf3f226}{Eina\+\_\+\+Bool}} eina\+\_\+accessor\+\_\+lock (\begin{DoxyParamCaption}\item[{\mbox{\hyperlink{group__Eina__Accessor__Group_ga65199ea5201a1867471028477dc26744}{Eina\+\_\+\+Accessor}} $\ast$}]{accessor }\end{DoxyParamCaption})}



Locks the container of the accessor. 


\begin{DoxyParams}[1]{Parameters}
\mbox{\texttt{ in}}  & {\em accessor} & The accessor \\
\hline
\end{DoxyParams}
\begin{DoxyReturn}{Returns}
\mbox{\hyperlink{group__Eina__Types__Group_ga05c12dacc8b4058994df842b41be85fc}{E\+I\+N\+A\+\_\+\+T\+R\+UE}} on success, otherwise \mbox{\hyperlink{group__Eina__Types__Group_ga1feb115f8e9913e806e090d9bd5a7301}{E\+I\+N\+A\+\_\+\+F\+A\+L\+SE}}
\end{DoxyReturn}
\begin{DoxyNote}{Note}
If the container of the {\ttfamily accessor} permits it, it is locked. When a container is locked by calling \mbox{\hyperlink{group__Eina__Accessor__Group_ga1ff21fd278a35a585e2aa3043996b2e8}{eina\+\_\+accessor\+\_\+over()}} on it, it returns immediately. If {\ttfamily accessor} is {\ttfamily N\+U\+LL} or if a problem occurs, \mbox{\hyperlink{group__Eina__Types__Group_ga1feb115f8e9913e806e090d9bd5a7301}{E\+I\+N\+A\+\_\+\+F\+A\+L\+SE}} is returned, otherwise \mbox{\hyperlink{group__Eina__Types__Group_ga05c12dacc8b4058994df842b41be85fc}{E\+I\+N\+A\+\_\+\+T\+R\+UE}} is returned. If the container is not lockable, it returns \mbox{\hyperlink{group__Eina__Types__Group_ga05c12dacc8b4058994df842b41be85fc}{E\+I\+N\+A\+\_\+\+T\+R\+UE}}.
\end{DoxyNote}
\begin{DoxyWarning}{Warning}
None of the existing eina data structures are lockable. 
\end{DoxyWarning}


References E\+I\+N\+A\+\_\+\+F\+A\+L\+SE, 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.



Referenced by eina\+\_\+accessor\+\_\+over().

\mbox{\Hypertarget{group__Eina__Accessor__Group_ga4f0a9c869b97b7737036c1435ed1098f}\label{group__Eina__Accessor__Group_ga4f0a9c869b97b7737036c1435ed1098f}} 
\index{Accessor Functions@{Accessor Functions}!eina\_accessor\_clone@{eina\_accessor\_clone}}
\index{eina\_accessor\_clone@{eina\_accessor\_clone}!Accessor Functions@{Accessor Functions}}
\doxysubsubsection{\texorpdfstring{eina\_accessor\_clone()}{eina\_accessor\_clone()}}
{\footnotesize\ttfamily \mbox{\hyperlink{group__Elua_ga3db3556eec8ef18cb8ddb43816974ac8}{E\+A\+PI}} \mbox{\hyperlink{group__Eina__Accessor__Group_ga65199ea5201a1867471028477dc26744}{Eina\+\_\+\+Accessor}}$\ast$ eina\+\_\+accessor\+\_\+clone (\begin{DoxyParamCaption}\item[{\mbox{\hyperlink{group__Eina__Accessor__Group_ga65199ea5201a1867471028477dc26744}{Eina\+\_\+\+Accessor}} $\ast$}]{accessor }\end{DoxyParamCaption})}



Clones the container of the accessor. 


\begin{DoxyParams}[1]{Parameters}
\mbox{\texttt{ in}}  & {\em accessor} & The accessor. \\
\hline
\end{DoxyParams}
\begin{DoxyReturn}{Returns}
Another accessor 
\end{DoxyReturn}
\begin{DoxySince}{Since}
1.\+10 
\end{DoxySince}


References E\+I\+N\+A\+\_\+\+S\+A\+F\+E\+T\+Y\+\_\+\+O\+N\+\_\+\+N\+U\+L\+L\+\_\+\+R\+E\+T\+U\+R\+N\+\_\+\+V\+AL.

\mbox{\Hypertarget{group__Eina__Accessor__Group_ga78a4ad94c6c46f64f96f5b125a9544f8}\label{group__Eina__Accessor__Group_ga78a4ad94c6c46f64f96f5b125a9544f8}} 
\index{Accessor Functions@{Accessor Functions}!eina\_accessor\_unlock@{eina\_accessor\_unlock}}
\index{eina\_accessor\_unlock@{eina\_accessor\_unlock}!Accessor Functions@{Accessor Functions}}
\doxysubsubsection{\texorpdfstring{eina\_accessor\_unlock()}{eina\_accessor\_unlock()}}
{\footnotesize\ttfamily \mbox{\hyperlink{group__Elua_ga3db3556eec8ef18cb8ddb43816974ac8}{E\+A\+PI}} \mbox{\hyperlink{group__Eina__Types__Group_ga3fe0caf72e93b1bab1ca8ee3ccf3f226}{Eina\+\_\+\+Bool}} eina\+\_\+accessor\+\_\+unlock (\begin{DoxyParamCaption}\item[{\mbox{\hyperlink{group__Eina__Accessor__Group_ga65199ea5201a1867471028477dc26744}{Eina\+\_\+\+Accessor}} $\ast$}]{accessor }\end{DoxyParamCaption})}



Unlocks the container of the accessor. 


\begin{DoxyParams}[1]{Parameters}
\mbox{\texttt{ in}}  & {\em accessor} & The accessor \\
\hline
\end{DoxyParams}
\begin{DoxyReturn}{Returns}
\mbox{\hyperlink{group__Eina__Types__Group_ga05c12dacc8b4058994df842b41be85fc}{E\+I\+N\+A\+\_\+\+T\+R\+UE}} on success, otherwise \mbox{\hyperlink{group__Eina__Types__Group_ga1feb115f8e9913e806e090d9bd5a7301}{E\+I\+N\+A\+\_\+\+F\+A\+L\+SE}}
\end{DoxyReturn}
\begin{DoxyNote}{Note}
If the container of the {\ttfamily accessor} permits it and is previously locked, it is unlocked. If {\ttfamily accessor} is {\ttfamily N\+U\+LL} or if a problem occurs, \mbox{\hyperlink{group__Eina__Types__Group_ga1feb115f8e9913e806e090d9bd5a7301}{E\+I\+N\+A\+\_\+\+F\+A\+L\+SE}} is returned, otherwise \mbox{\hyperlink{group__Eina__Types__Group_ga05c12dacc8b4058994df842b41be85fc}{E\+I\+N\+A\+\_\+\+T\+R\+UE}} is returned. If the container is not lockable, it returns \mbox{\hyperlink{group__Eina__Types__Group_ga05c12dacc8b4058994df842b41be85fc}{E\+I\+N\+A\+\_\+\+T\+R\+UE}}.
\end{DoxyNote}
\begin{DoxyWarning}{Warning}
None of the existing eina data structures are lockable. 
\end{DoxyWarning}


References E\+I\+N\+A\+\_\+\+F\+A\+L\+SE, 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.



Referenced by eina\+\_\+accessor\+\_\+over().

\mbox{\Hypertarget{group__Eina__Accessor__Group_gaa4d63471cdbd3766dd4290645827e92e}\label{group__Eina__Accessor__Group_gaa4d63471cdbd3766dd4290645827e92e}} 
\index{Accessor Functions@{Accessor Functions}!eina\_carray\_length\_accessor\_new@{eina\_carray\_length\_accessor\_new}}
\index{eina\_carray\_length\_accessor\_new@{eina\_carray\_length\_accessor\_new}!Accessor Functions@{Accessor Functions}}
\doxysubsubsection{\texorpdfstring{eina\_carray\_length\_accessor\_new()}{eina\_carray\_length\_accessor\_new()}}
{\footnotesize\ttfamily \mbox{\hyperlink{group__Elua_ga3db3556eec8ef18cb8ddb43816974ac8}{E\+A\+PI}} \mbox{\hyperlink{group__Eina__Accessor__Group_ga65199ea5201a1867471028477dc26744}{Eina\+\_\+\+Accessor}}$\ast$ eina\+\_\+carray\+\_\+length\+\_\+accessor\+\_\+new (\begin{DoxyParamCaption}\item[{void $\ast$$\ast$}]{array,  }\item[{unsigned int}]{step,  }\item[{unsigned int}]{length }\end{DoxyParamCaption})}



Creates an Eina\+\_\+\+Accessor that wraps a plain fixed size C array. 


\begin{DoxyParams}[1]{Parameters}
\mbox{\texttt{ in}}  & {\em array} & The array \\
\hline
\mbox{\texttt{ in}}  & {\em step} & The size of one element in the array \\
\hline
\mbox{\texttt{ in}}  & {\em length} & The number of elements in the array \\
\hline
\end{DoxyParams}
\begin{DoxyReturn}{Returns}
The accessor that will give access to the passed array
\end{DoxyReturn}
You can create it like this\+: int array\mbox{[}\mbox{]} = \{1, 2, 3, 4, 1337, 42\};

Eina\+\_\+\+Accessor$\ast$ accessor = eina\+\_\+carray\+\_\+length\+\_\+accessor\+\_\+new(array, sizeof(int), sizeof(array)/sizeof(int));

\begin{DoxySince}{Since}
1.\+23 
\end{DoxySince}


References E\+I\+N\+A\+\_\+\+M\+A\+G\+I\+C\+\_\+\+S\+ET, 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.

