Motr  M0
console_yaml.c File Reference
#include "lib/trace.h"
#include "lib/errno.h"
#include "lib/memory.h"
#include "lib/string.h"
#include "console/console_yaml.h"
Include dependency graph for console_yaml.c:

Go to the source code of this file.

Macros

#define M0_TRACE_SUBSYSTEM   M0_TRACE_SUBSYS_OTHER
 

Functions

static void yaml_parser_error_detect (const yaml_parser_t *parser)
 
M0_INTERNAL int m0_cons_yaml_init (const char *path)
 Inititalizes parser by opening given file. and also checks for error by getting root node. More...
 
M0_INTERNAL void m0_cons_yaml_fini (void)
 Deletes the parser and closes the YAML file. More...
 
static yaml_node_t * search_node (const char *name)
 
M0_INTERNAL void * m0_cons_yaml_get_value (const char *value)
 Search for specified string and set the respctive value form YAML file. (like "name : console") More...
 
M0_INTERNAL int m0_cons_yaml_set_value (const char *value, void *data)
 Search for specified string and get the respctive value form YAML file. (like "name : console") More...
 

Variables

static struct m0_cons_yaml_info yaml_info
 
M0_INTERNAL bool yaml_support
 

Macro Definition Documentation

◆ M0_TRACE_SUBSYSTEM

#define M0_TRACE_SUBSYSTEM   M0_TRACE_SUBSYS_OTHER

Definition at line 23 of file console_yaml.c.

Function Documentation

◆ yaml_parser_error_detect()

static void yaml_parser_error_detect ( const yaml_parser_t *  parser)
static

Definition at line 32 of file console_yaml.c.

Here is the caller graph for this function: