29 lines
848 B
C
29 lines
848 B
C
#ifndef CONFIG_TOOLS_H_
|
|
#define CONFIG_TOOLS_H_
|
|
|
|
#include "data.h"
|
|
#include "parser.h"
|
|
#include <stdio.h>
|
|
|
|
void config_create(void);
|
|
void init_builtin_functions(void);
|
|
|
|
int handle_map_key(node_t **args, int arg_count);
|
|
int handle_define(node_t **args, int arg_count);
|
|
int handle_function(node_t **args, int arg_count);
|
|
|
|
int execute_function_call(node_t *call);
|
|
int config_parse_string(const char *input);
|
|
int config_parse_file(const char *filename);
|
|
|
|
const char *config_get_key_mapping(const char *key_combo);
|
|
node_t *find_variable(const char *name);
|
|
|
|
const char *config_get_string(const char *path, const char *default_value);
|
|
int config_get_int(const char *path, int default_value);
|
|
double config_get_double(const char *path, double default_value);
|
|
bool config_get_bool(const char *path, bool default_value);
|
|
void config_print_all(void);
|
|
|
|
#endif
|