\doxysection{src/vty/vector.c File Reference}
\label{vector_8c}\index{src/vty/vector.c@{src/vty/vector.c}}


Generic vector interface routine.  


{\ttfamily \#include $<$stdlib.\+h$>$}\newline
{\ttfamily \#include $<$unistd.\+h$>$}\newline
{\ttfamily \#include $<$osmocom/vty/vector.\+h$>$}\newline
{\ttfamily \#include $<$osmocom/vty/vty.\+h$>$}\newline
{\ttfamily \#include $<$osmocom/core/talloc.\+h$>$}\newline
{\ttfamily \#include $<$string.\+h$>$}\newline
\doxysubsection*{Functions}
\begin{DoxyCompactItemize}
\item 
\textbf{ vector} \textbf{ vector\+\_\+init} (unsigned int size)
\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 \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 $\ast$ \textbf{ vector\+\_\+lookup} (\textbf{ vector} v, unsigned int i)
\item 
void $\ast$ \textbf{ vector\+\_\+lookup\+\_\+ensure} (\textbf{ vector} v, unsigned int i)
\item 
void \textbf{ vector\+\_\+unset} (\textbf{ vector} v, unsigned int i)
\item 
unsigned int \textbf{ vector\+\_\+count} (\textbf{ vector} v)
\end{DoxyCompactItemize}
\doxysubsection*{Variables}
\begin{DoxyCompactItemize}
\item 
void $\ast$ \textbf{ tall\+\_\+vty\+\_\+vec\+\_\+ctx}
\end{DoxyCompactItemize}


\doxysubsection{Detailed Description}
Generic vector interface routine. 

