Crinit -- Configurable Rootfs Init
confmap.h
Go to the documentation of this file.
1 // SPDX-License-Identifier: MIT
6 #ifndef __CONFMAP_H__
7 #define __CONFMAP_H__
8 
9 #include "confhdl.h"
10 
14 typedef struct crinitConfigMapping_t {
16  const char *configKey;
17  bool arrayLike;
19  bool includeSafe;
23 
35 extern const size_t crinitTaskCfgMapSize;
36 
48 extern const size_t crinitSeriesCfgMapSize;
49 
60  const char *keyStr);
61 
62 #endif /* __CONFMAP_H__ */
Header defining type- and target-specific handler functions for configuration parsing.
int(* crinitConfigHandler_t)(void *tgt, const char *val, crinitConfigType_t type)
Definition: confhdl.h:27
const size_t crinitTaskCfgMapSize
Definition: confmap.c:25
const size_t crinitSeriesCfgMapSize
Definition: confmap.c:44
const crinitConfigMapping_t * crinitFindConfigMapping(const crinitConfigMapping_t *map, size_t mapSize, const char *keyStr)
Definition: confmap.c:49
struct crinitConfigMapping_t crinitConfigMapping_t
const crinitConfigMapping_t crinitTaskCfgMap[]
Definition: confmap.c:13
const crinitConfigMapping_t crinitSeriesCfgMap[]
Definition: confmap.c:27
crinitConfigs_t
Definition: confparse.h:65
Definition: confmap.h:14
const char * configKey
The string representation (name) of the option.
Definition: confmap.h:16
bool includeSafe
If the configuration option may be used inside an include file.
Definition: confmap.h:19
crinitConfigs_t config
The index of the configuration option.
Definition: confmap.h:15
crinitConfigHandler_t cfgHandler
Definition: confmap.h:20
bool arrayLike
Definition: confmap.h:17