Crinit -- Configurable Rootfs Init
|
Definitions related to mapping configuration options and their string representations. More...
#include "confhdl.h"
Go to the source code of this file.
Classes | |
struct | crinitConfigMapping_t |
Typedefs | |
typedef struct crinitConfigMapping_t | crinitConfigMapping_t |
Functions | |
const crinitConfigMapping_t * | crinitFindConfigMapping (const crinitConfigMapping_t *map, size_t mapSize, const char *keyStr) |
Variables | |
const crinitConfigMapping_t | crinitTaskCfgMap [] |
const size_t | crinitTaskCfgMapSize |
const crinitConfigMapping_t | crinitSeriesCfgMap [] |
const size_t | crinitSeriesCfgMapSize |
Definitions related to mapping configuration options and their string representations.
typedef struct crinitConfigMapping_t crinitConfigMapping_t |
A structure defining a mapping between a configuration option, its string respresentation, and further properties.
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. |
|
extern |
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.
|
extern |
Size of crinitSeriesCfgMap, known at compile-time.
|
extern |
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.
|
extern |
Size of crinitTaskCfgMap, known at compile-time.