Crinit -- Configurable Rootfs Init
|
Implementation file related to mapping configuration options and their string representations. More...
Functions | |
static int | crinitCompareConfigMappings (const void *a, const void *b) |
const crinitConfigMapping_t * | crinitFindConfigMapping (const crinitConfigMapping_t *map, size_t mapSize, const char *keyStr) |
Variables | |
const crinitConfigMapping_t | crinitTaskCfgMap [] |
const size_t | crinitTaskCfgMapSize = crinitNumElements(crinitTaskCfgMap) |
const crinitConfigMapping_t | crinitSeriesCfgMap [] |
const size_t | crinitSeriesCfgMapSize = crinitNumElements(crinitSeriesCfgMap) |
Implementation file related to mapping configuration options and their string representations.
|
static |
Comparison function between two crinitConfigMapping_t, for bsearch()
const crinitConfigMapping_t* crinitFindConfigMapping | ( | const crinitConfigMapping_t * | map, |
size_t | mapSize, | ||
const char * | keyStr | ||
) |
Searches for an entry in an array of crinitConfigMapping_t by crinitConfigMapping_t::configKey.
Uses bsearch() with the assumption that the array is lexicographically ordered by crinitConfigMapping_t::configKey.
map | The array of crinitConfigMapping_t to search in. |
mapSize | The number of elements in the array to search. |
keyStr | The name of the mapping to search for. |
const crinitConfigMapping_t crinitSeriesCfgMap[] |
Constant (at compile-time) array of mappings between series/global configuration names and their indices and properties.
Must be lexicographically ordered (by crinitConfigMapping_t::configKey), so that crinitFindConfigMapping() works. This is tested by a unit/regression test.
const size_t crinitSeriesCfgMapSize = crinitNumElements(crinitSeriesCfgMap) |
Size of crinitSeriesCfgMap, known at compile-time.
const crinitConfigMapping_t crinitTaskCfgMap[] |
Constant (at compile-time) array of mappings between task-specific configuration names and their indices and properties.
Must be lexicographically ordered (by crinitConfigMapping_t::configKey), so that crinitFindConfigMapping() works. This is tested by a unit/regression test.
const size_t crinitTaskCfgMapSize = crinitNumElements(crinitTaskCfgMap) |
Size of crinitTaskCfgMap, known at compile-time.