Data Structures | |
struct | vector |
Macros | |
#define | DEFAULT_VECTOR_MEMBERS 8 |
#define | DEFAULT_VECTOR_GROWTH 8 |
Functions | |
struct vector * | vector_create (size_t size) |
void | vector_destroy (struct vector *v) |
int | vector_add (struct vector *v, void *data) |
int | vector_iterate (struct vector *v, const void *data, int(*fcn)(const void *a, const void *b)) |
#define DEFAULT_VECTOR_GROWTH 8 |
Referenced by vector_add().
#define DEFAULT_VECTOR_MEMBERS 8 |
Referenced by vector_create().
References vector::cur_elems, vector::data, DEFAULT_VECTOR_GROWTH, vector::max_elems, NULL, and vector::size.
Referenced by ct_filter_add_netmask().
References vector::cur_elems, vector::data, DEFAULT_VECTOR_MEMBERS, vector::max_elems, NULL, vector::size, and size.
Referenced by ct_filter_create().
References vector::data.
Referenced by ct_filter_destroy().
int vector_iterate | ( | struct vector * | v, |
const void * | data, | ||
int(*)(const void *a, const void *b) | fcn | ||
) |
References vector::cur_elems, vector::data, and vector::size.
Referenced by ct_filter_add_netmask().