libosmovty 1.9.0.196-9975
Osmocom VTY library
Vector

Generic vector routines, used by VTY internally. More...

Functions

vector vector_init (unsigned int size)
 
void vector_only_wrapper_free (vector v)
 
void vector_only_index_free (void *index)
 
void vector_free (vector v)
 
vector vector_copy (vector v)
 
void vector_ensure (vector v, unsigned int num)
 
int vector_empty_slot (vector v)
 
int vector_set (vector v, void *val)
 
int vector_set_index (vector v, unsigned int i, void *val)
 
void * vector_lookup (vector v, unsigned int i)
 
void * vector_lookup_ensure (vector v, unsigned int i)
 
void vector_unset (vector v, unsigned int i)
 
unsigned int vector_count (vector v)
 

Variables

void * tall_vty_vec_ctx
 

Detailed Description

Generic vector routines, used by VTY internally.

Function Documentation

◆ vector_copy()

◆ vector_count()

unsigned int vector_count ( vector  v)

◆ vector_empty_slot()

int vector_empty_slot ( vector  v)

References _vector::active, and _vector::index.

Referenced by vector_set().

◆ vector_ensure()

void vector_ensure ( vector  v,
unsigned int  num 
)

◆ vector_free()

◆ vector_init()

◆ vector_lookup()

void * vector_lookup ( vector  v,
unsigned int  i 
)

◆ vector_lookup_ensure()

void * vector_lookup_ensure ( vector  v,
unsigned int  i 
)

References _vector::index, and vector_ensure().

◆ vector_only_index_free()

void vector_only_index_free ( void *  index)

Referenced by vty_complete_command().

◆ vector_only_wrapper_free()

void vector_only_wrapper_free ( vector  v)

◆ vector_set()

◆ vector_set_index()

int vector_set_index ( vector  v,
unsigned int  i,
void *  val 
)

◆ vector_unset()

void vector_unset ( vector  v,
unsigned int  i 
)

References _vector::active, _vector::alloced, and _vector::index.

Referenced by vty_close().

Variable Documentation

◆ tall_vty_vec_ctx

void* tall_vty_vec_ctx