|
suricata
|
#include "conf.h"

Go to the source code of this file.
Functions | |
| int | SCConfYamlLoadFile (const char *) |
| Load configuration from a YAML file. More... | |
| int | SCConfYamlLoadString (const char *, size_t) |
| Load configuration from a YAML string. More... | |
| int | SCConfYamlLoadFileWithPrefix (const char *filename, const char *prefix) |
| Load configuration from a YAML file, insert in tree at 'prefix'. More... | |
| int | SCConfYamlHandleInclude (SCConfNode *parent, const char *filename) |
| Include a file in the configuration. More... | |
| void | SCConfYamlRegisterTests (void) |
Definition in file conf-yaml-loader.h.
| int SCConfYamlHandleInclude | ( | SCConfNode * | parent, |
| const char * | filename | ||
| ) |
Include a file in the configuration.
| parent | The configuration node the included configuration will be placed at. |
| filename | The filename to include. |
| 0 | on success, -1 on failure. |
Definition at line 115 of file conf-yaml-loader.c.
References PathIsAbsolute(), SCLogError, and strlcpy().
Referenced by SCLoadYamlConfig().


| int SCConfYamlLoadFile | ( | const char * | filename | ) |
Load configuration from a YAML file.
This function will load a configuration file. On failure -1 will be returned and it is suggested that the program then exit. Any errors while loading the configuration file will have already been logged.
| filename | Filename of configuration file to load. |
| 0 | on success, -1 on failure. |
Definition at line 477 of file conf-yaml-loader.c.
Referenced by ListAppLayerHooks(), ListAppLayerProtocols(), and SCLoadYamlConfig().

| int SCConfYamlLoadFileWithPrefix | ( | const char * | filename, |
| const char * | prefix | ||
| ) |
Load configuration from a YAML file, insert in tree at 'prefix'.
This function will load a configuration file and insert it into the config tree at 'prefix'. This means that if this is called with prefix "abc" and the file contains a parameter "def", it will be loaded as "abc.def".
| filename | Filename of configuration file to load. |
| prefix | Name prefix to use. |
| 0 | on success, -1 on failure. |
Definition at line 553 of file conf-yaml-loader.c.
| int SCConfYamlLoadString | ( | const char * | , |
| size_t | |||
| ) |
Load configuration from a YAML string.
Definition at line 523 of file conf-yaml-loader.c.
Referenced by LLVMFuzzerTestOneInput().

| void SCConfYamlRegisterTests | ( | void | ) |
Definition at line 1056 of file conf-yaml-loader.c.
References UtRegisterTest().
