src/core/config/parser.c
/**
 * Return a config value from the parser variable map
 */
Return a config value from the parser variable map
Return a config value from the parser variable map
const struct config_value *parser_find_variable(const struct parser *parser, const char *key)
{
        struct map_entry *entry = map_get(parser->variables, key);
        if (entry == NULL) {
                return NULL;
        }
        struct config_value *value = (struct config_value *)entry->value;
        return value;
}
const struct config_value * parser_find_variable ( const struct parser * parser , const char * key ) { struct map_entry * entry = map_get ( parser -> variables , key ) ; if ( entry == NULL ) { return NULL ; } struct config_value * value = ( struct config_value * ) entry -> value ; return value ; }
Return a config value from the parser variable map
Return a config value from the parser variable map