CAPS Universe documentation  1.0.4
All you need to know to be successful
Functions
libcapstable.c File Reference

Manage variable tables. More...

Functions

void caps_libtable_init (void)
 
void caps_libtable_version_get (unsigned *major, unsigned *minor, unsigned *micro)
 
static void enlarge_var_table (struct caps_var_table *tbl)
 
static bool var_table_full (const struct caps_var_table *tbl)
 
void caps_table_init (struct caps_var_table *tbl, const struct caps_table_desc *td)
 
void caps_table_cleanup (struct caps_var_table *tbl)
 
void caps_table_element_ensure_free (struct caps_var_table *tbl)
 
void * caps_table_base_get (const struct caps_var_table *tbl)
 
size_t caps_table_element_count_get (const struct caps_var_table *tbl)
 
size_t caps_table_element_count_increment (struct caps_var_table *tbl)
 

Detailed Description

Author
Jürgen Borleis
Warning
Use as experimental
Note
The global API you can find here: libcapstable: API description

Function Documentation

◆ enlarge_var_table()

static void enlarge_var_table ( struct caps_var_table tbl)
static

Enlarge the table by the user defined element count

Parameters
[in,out]tblThe table to enlarge

◆ var_table_full()

static bool var_table_full ( const struct caps_var_table tbl)
static

Check if a table is already full, e.g. all elements are in use

Parameters
[in]tblThe table to check
Return values
trueIf all elements in the table are in use
falseIf there are still free elements in the table