refactor: pass structs as pointers except for background things
This commit is contained in:
+4
-4
@@ -3,13 +3,13 @@
|
||||
#ifndef CONFIG_FILE_H
|
||||
#define CONFIG_FILE_H
|
||||
|
||||
ConfigFile config_file_read(char *path);
|
||||
void config_file_read(ConfigFile *config, char *path);
|
||||
|
||||
char *config_file_get_str(ConfigFile config, char *key, char *default_value);
|
||||
char *config_file_get_str(ConfigFile *config, char *key, char *default_value);
|
||||
|
||||
unsigned int config_file_get_int(ConfigFile config, char *key,
|
||||
unsigned int config_file_get_int(ConfigFile *config, char *key,
|
||||
unsigned int default_value);
|
||||
|
||||
void config_file_free(ConfigFile config);
|
||||
void config_file_free(ConfigFile *config);
|
||||
|
||||
#endif /* CONFIG_FILE_H */
|
||||
Reference in New Issue
Block a user