Crinit -- Configurable Rootfs Init
confhdl.h
Go to the documentation of this file.
1 // SPDX-License-Identifier: MIT
6 #ifndef __CONFHDL_H__
7 #define __CONFHDL_H__
8 
9 #include "task.h"
10 
27 typedef int (*crinitConfigHandler_t)(void *tgt, const char *val, crinitConfigType_t type);
28 
29 /* Handlers for task-specific options */
30 
32 int crinitCfgCmdHandler(void *tgt, const char *val, crinitConfigType_t type);
34 int crinitCfgDepHandler(void *tgt, const char *val, crinitConfigType_t type);
36 int crinitCfgIoRedirHandler(void *tgt, const char *val, crinitConfigType_t type);
38 int crinitCfgNameHandler(void *tgt, const char *val, crinitConfigType_t type);
40 int crinitCfgPrvHandler(void *tgt, const char *val, crinitConfigType_t type);
42 int crinitCfgRespHandler(void *tgt, const char *val, crinitConfigType_t type);
44 int crinitCfgRespRetHandler(void *tgt, const char *val, crinitConfigType_t type);
46 int crinitTaskIncludeHandler(void *tgt, const char *val, crinitConfigType_t type);
47 
48 /* Handlers for global options */
49 
51 int crinitCfgDebugHandler(void *tgt, const char *val, crinitConfigType_t type);
53 int crinitCfgInclSuffixHandler(void *tgt, const char *val, crinitConfigType_t type);
55 int crinitCfgInclDirHandler(void *tgt, const char *val, crinitConfigType_t type);
57 int crinitCfgShdGpHandler(void *tgt, const char *val, crinitConfigType_t type);
59 int crinitCfgTaskSuffixHandler(void *tgt, const char *val, crinitConfigType_t type);
61 int crinitCfgTaskDirHandler(void *tgt, const char *val, crinitConfigType_t type);
63 int crinitCfgTaskDirSlHandler(void *tgt, const char *val, crinitConfigType_t type);
65 int crinitCfgTasksHandler(void *tgt, const char *val, crinitConfigType_t type);
67 int crinitCfgSyslogHandler(void *tgt, const char *val, crinitConfigType_t type);
69 int crinitCfgElosHandler(void *tgt, const char *val, crinitConfigType_t type);
71 int crinitCfgElosServerHandler(void *tgt, const char *val, crinitConfigType_t type);
73 int crinitCfgElosPortHandler(void *tgt, const char *val, crinitConfigType_t type);
74 
75 /* Handlers working in both cases */
76 
78 int crinitCfgEnvHandler(void *tgt, const char *val, crinitConfigType_t type);
80 int crinitCfgFilterHandler(void *tgt, const char *val, crinitConfigType_t type);
81 
82 #endif /* __CONFHDL_H__ */
int crinitCfgFilterHandler(void *tgt, const char *val, crinitConfigType_t type)
Definition: confhdl.c:241
int crinitCfgTasksHandler(void *tgt, const char *val, crinitConfigType_t type)
Definition: confhdl.c:475
int crinitCfgDebugHandler(void *tgt, const char *val, crinitConfigType_t type)
Definition: confhdl.c:359
int crinitCfgRespHandler(void *tgt, const char *val, crinitConfigType_t type)
Definition: confhdl.c:308
int crinitCfgNameHandler(void *tgt, const char *val, crinitConfigType_t type)
Definition: confhdl.c:296
int crinitCfgTaskDirHandler(void *tgt, const char *val, crinitConfigType_t type)
Definition: confhdl.c:445
int crinitCfgTaskSuffixHandler(void *tgt, const char *val, crinitConfigType_t type)
Definition: confhdl.c:430
int crinitCfgDepHandler(void *tgt, const char *val, crinitConfigType_t type)
Definition: confhdl.c:90
int crinitCfgEnvHandler(void *tgt, const char *val, crinitConfigType_t type)
Definition: confhdl.c:210
int(* crinitConfigHandler_t)(void *tgt, const char *val, crinitConfigType_t type)
Definition: confhdl.h:27
int crinitCfgElosPortHandler(void *tgt, const char *val, crinitConfigType_t type)
Definition: confhdl.c:578
int crinitCfgIoRedirHandler(void *tgt, const char *val, crinitConfigType_t type)
Definition: confhdl.c:272
int crinitCfgRespRetHandler(void *tgt, const char *val, crinitConfigType_t type)
Definition: confhdl.c:319
int crinitCfgShdGpHandler(void *tgt, const char *val, crinitConfigType_t type)
Definition: confhdl.c:413
int crinitCfgInclSuffixHandler(void *tgt, const char *val, crinitConfigType_t type)
Definition: confhdl.c:377
int crinitTaskIncludeHandler(void *tgt, const char *val, crinitConfigType_t type)
Definition: confhdl.c:330
int crinitCfgElosServerHandler(void *tgt, const char *val, crinitConfigType_t type)
Definition: confhdl.c:566
int crinitCfgInclDirHandler(void *tgt, const char *val, crinitConfigType_t type)
Definition: confhdl.c:393
int crinitCfgTaskDirSlHandler(void *tgt, const char *val, crinitConfigType_t type)
Definition: confhdl.c:463
int crinitCfgPrvHandler(void *tgt, const char *val, crinitConfigType_t type)
Definition: confhdl.c:143
int crinitCfgCmdHandler(void *tgt, const char *val, crinitConfigType_t type)
Definition: confhdl.c:68
int crinitCfgSyslogHandler(void *tgt, const char *val, crinitConfigType_t type)
Definition: confhdl.c:532
int crinitCfgElosHandler(void *tgt, const char *val, crinitConfigType_t type)
Definition: confhdl.c:549
crinitConfigType_t
Definition: confparse.h:91
Header defining the data structures belonging to a single task and related functions.