\doxysection{include/osmocom/vty/vector.h File Reference}
\label{vector_8h}\index{include/osmocom/vty/vector.h@{include/osmocom/vty/vector.h}}


Generic vector interface header.  


\doxysubsection*{Data Structures}
\begin{DoxyCompactItemize}
\item 
struct \textbf{ \+\_\+vector}
\end{DoxyCompactItemize}
\doxysubsection*{Macros}
\begin{DoxyCompactItemize}
\item 
\#define \textbf{ VECTOR\+\_\+\+MIN\+\_\+\+SIZE}~1
\item 
\#define \textbf{ vector\+\_\+slot}(V,  I)~((V)-\/$>$index[(I)])
\item 
\#define \textbf{ vector\+\_\+active}(V)~((V)-\/$>$active)
\end{DoxyCompactItemize}
\doxysubsection*{Typedefs}
\begin{DoxyCompactItemize}
\item 
typedef struct \textbf{ \+\_\+vector} $\ast$ \textbf{ vector}
\end{DoxyCompactItemize}
\doxysubsection*{Functions}
\begin{DoxyCompactItemize}
\item 
\textbf{ vector} \textbf{ vector\+\_\+init} (unsigned int size)
\item 
void \textbf{ vector\+\_\+ensure} (\textbf{ vector} v, unsigned int num)
\item 
int \textbf{ vector\+\_\+empty\+\_\+slot} (\textbf{ vector} v)
\item 
int \textbf{ vector\+\_\+set} (\textbf{ vector} v, void $\ast$val)
\item 
int \textbf{ vector\+\_\+set\+\_\+index} (\textbf{ vector} v, unsigned int i, void $\ast$val)
\item 
void \textbf{ vector\+\_\+unset} (\textbf{ vector} v, unsigned int i)
\item 
unsigned int \textbf{ vector\+\_\+count} (\textbf{ vector} v)
\item 
void \textbf{ vector\+\_\+only\+\_\+wrapper\+\_\+free} (\textbf{ vector} v)
\item 
void \textbf{ vector\+\_\+only\+\_\+index\+\_\+free} (void $\ast$index)
\item 
void \textbf{ vector\+\_\+free} (\textbf{ vector} v)
\item 
\textbf{ vector} \textbf{ vector\+\_\+copy} (\textbf{ vector} v)
\item 
void $\ast$ \textbf{ vector\+\_\+lookup} (\textbf{ vector}, unsigned int)
\item 
void $\ast$ \textbf{ vector\+\_\+lookup\+\_\+ensure} (\textbf{ vector}, unsigned int)
\end{DoxyCompactItemize}
\doxysubsection*{Variables}
\begin{DoxyCompactItemize}
\item 
void $\ast$ \textbf{ tall\+\_\+vty\+\_\+vec\+\_\+ctx}
\end{DoxyCompactItemize}


\doxysubsection{Detailed Description}
Generic vector interface header. 



\doxysubsection{Macro Definition Documentation}
\mbox{\label{vector_8h_ac96b7beddf251a81df131543d06d63c7}} 
\index{vector.h@{vector.h}!vector\_active@{vector\_active}}
\index{vector\_active@{vector\_active}!vector.h@{vector.h}}
\doxysubsubsection{vector\_active}
{\footnotesize\ttfamily \#define vector\+\_\+active(\begin{DoxyParamCaption}\item[{}]{V }\end{DoxyParamCaption})~((V)-\/$>$active)}

\mbox{\label{vector_8h_ac45f1c13e55842e7dc958c379b0efcf4}} 
\index{vector.h@{vector.h}!VECTOR\_MIN\_SIZE@{VECTOR\_MIN\_SIZE}}
\index{VECTOR\_MIN\_SIZE@{VECTOR\_MIN\_SIZE}!vector.h@{vector.h}}
\doxysubsubsection{VECTOR\_MIN\_SIZE}
{\footnotesize\ttfamily \#define VECTOR\+\_\+\+MIN\+\_\+\+SIZE~1}

\mbox{\label{vector_8h_a34cb4a77fbd6ab6cb23707cdd1c4c0d2}} 
\index{vector.h@{vector.h}!vector\_slot@{vector\_slot}}
\index{vector\_slot@{vector\_slot}!vector.h@{vector.h}}
\doxysubsubsection{vector\_slot}
{\footnotesize\ttfamily \#define vector\+\_\+slot(\begin{DoxyParamCaption}\item[{}]{V,  }\item[{}]{I }\end{DoxyParamCaption})~((V)-\/$>$index[(I)])}



\doxysubsection{Typedef Documentation}
\mbox{\label{vector_8h_a7fe85bb4f5ec8665f4ef33dab2fdc2db}} 
\index{vector.h@{vector.h}!vector@{vector}}
\index{vector@{vector}!vector.h@{vector.h}}
\doxysubsubsection{vector}
{\footnotesize\ttfamily typedef struct \textbf{ \+\_\+vector}$\ast$ \textbf{ vector}}

