libosmovty
1.9.0.23-f380.202311092026
Osmocom VTY library
|
Generic vector interface header. More...
Go to the source code of this file.
Data Structures | |
struct | _vector |
Macros | |
#define | VECTOR_MIN_SIZE 1 |
#define | vector_slot(V, I) ((V)->index[(I)]) |
#define | vector_active(V) ((V)->active) |
Typedefs | |
typedef struct _vector * | vector |
Functions | |
vector | vector_init (unsigned int size) |
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_unset (vector v, unsigned int i) |
unsigned int | vector_count (vector v) |
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_lookup (vector, unsigned int) |
void * | vector_lookup_ensure (vector, unsigned int) |
Variables | |
void * | tall_vty_vec_ctx |
Generic vector interface header.
#define vector_active | ( | V | ) | ((V)->active) |
Referenced by check_element_exists(), cmd_cmdsize(), cmd_complete_command(), cmd_complete_command_real(), cmd_describe_command(), cmd_describe_command_real(), cmd_execute_command(), cmd_execute_command_real(), cmd_execute_command_strict(), cmd_filter(), cmd_free_strvec(), cmd_unique_string(), DEFUN(), desc_unique_string(), gDEFUN(), if(), is_cmd_ambiguous(), node_flag_mask(), sort_node(), vty_describe_command(), vty_dump_element(), vty_dump_nodes(), vty_reset(), and write_config_file().
#define VECTOR_MIN_SIZE 1 |
Referenced by cmd_init(), cmd_make_descvec(), cmd_make_strvec2(), install_node_bare(), vty_init(), and vty_init_vtysh().
#define vector_slot | ( | V, | |
I | |||
) | ((V)->index[(I)]) |
Referenced by check_element_exists(), cmd_cmdsize(), cmd_complete_command(), cmd_complete_command_real(), cmd_describe_command(), cmd_describe_command_real(), cmd_execute_command(), cmd_execute_command_real(), cmd_execute_command_strict(), cmd_filter(), cmd_free_strvec(), cmd_node_vector(), cmd_prompt(), cmd_unique_string(), DEFUN(), desc_unique_string(), gDEFUN(), if(), install_element(), is_cmd_ambiguous(), node_flag_mask(), sort_node(), vty_describe_command(), vty_dump_element(), vty_dump_nodes(), vty_reset(), and write_config_file().