Source code for elos/config/config.h

// SPDX-License-Identifier: MIT
#ifndef ELOS_CONFIG_H
#define ELOS_CONFIG_H
#include <safu/log.h> #include <safu/result.h> #include <samconf/samconf.h> #include "elos/config/defines.h"
safuResultE_t elosConfigLoad(samconfConfig_t **config);
const char *elosConfigGetElosdLogFilter(const samconfConfig_t *config);
safuLogLevelE_t elosConfigGetElosdLogLevel(const samconfConfig_t *config);
const char *elosConfigGetElosdStorageBackendJsonFile(const samconfConfig_t *config);
const char *elosConfigGetElosdScannerPath(const samconfConfig_t *config);
const char *elosConfigGetElosdBackendPath(const samconfConfig_t *config);
const char *elosConfigGetElosdClientPath(const samconfConfig_t *config);
const char *elosConfigGetElosdScannerKmsgFile(const samconfConfig_t *config);
const char *elosConfigGetElosdSyslogSocketPath(const samconfConfig_t *config);
[docs]/************************************************************************************ * Returns the path to the elos run directory, where elos related runtime files like * socket, pid-files, lock files etc. located. * * Parameters: * config: root config containing the optional `root.elos.RunDir` option * * Return: A string in any case, on any error the compile default as fallback is used. * The returned string must not be freed. ***********************************************************************************/ const char *elosConfigGetElosdRunDir(const samconfConfig_t *config);
[docs]/************************************************************************************ * Determine if configuration options from environment shall be evaluated or ignored. * * Parameters: * config: root config containing the `root.elos.useEnv` option * * Return: * true: if environment options shall be evaluated * false: in any other case including errors on Reading accessing `config`. ***********************************************************************************/ bool elosConfigGetElosdUseEnv(const samconfConfig_t *config);
#endif