test functions

This commit is contained in:
Arthur Barraux
2025-09-18 13:52:46 +02:00
parent 5818a8ecfc
commit ee2a34a3b1
21 changed files with 1252 additions and 1434 deletions
+24
View File
@@ -0,0 +1,24 @@
#ifndef BLISP_CONFIG_H_
#define BLISP_CONFIG_H_
#include "data.h"
ConfigValue *get_config_var(const char *name);
int get_config_int(const char *name, int default_val);
double get_config_float(const char *name, double default_val);
char *get_config_string(const char *name, const char *default_val);
bool get_config_bool(const char *name, bool default_val);
char **get_config_list(const char *name, int *count);
void free_config_value(ConfigValue *val);
bool config_var_exists(const char *name);
void set_config_int(const char *name, int value);
void set_config_float(const char *name, double value);
void set_config_string(const char *name, const char *value);
void set_config_bool(const char *name, bool value);
void print_all_config_vars(void);
#endif