diff options
author | kaotisk <kaotisk@arching-kaos.org> | 2025-04-02 20:54:37 +0300 |
---|---|---|
committer | kaotisk <kaotisk@arching-kaos.org> | 2025-04-02 20:54:37 +0300 |
commit | b9f80a2b37edf9682f189b406542b3f7a93b24a3 (patch) | |
tree | 2c96484ccb77af8a59ed6fb7fe4632b5bafb9858 /c_implementation/include/libaksettings.h | |
parent | 0ec3188626275fa2678882c9827ade8d045ffc7d (diff) | |
download | arching-kaos-tools-b9f80a2b37edf9682f189b406542b3f7a93b24a3.tar.gz arching-kaos-tools-b9f80a2b37edf9682f189b406542b3f7a93b24a3.tar.bz2 arching-kaos-tools-b9f80a2b37edf9682f189b406542b3f7a93b24a3.zip |
Moved directory and some experimental changes
Diffstat (limited to 'c_implementation/include/libaksettings.h')
-rw-r--r-- | c_implementation/include/libaksettings.h | 25 |
1 files changed, 25 insertions, 0 deletions
diff --git a/c_implementation/include/libaksettings.h b/c_implementation/include/libaksettings.h new file mode 100644 index 0000000..e95f37d --- /dev/null +++ b/c_implementation/include/libaksettings.h @@ -0,0 +1,25 @@ +#ifndef AK_SETTINGS_H +#define AK_SETTINGS_H + +#include <stdbool.h> + +typedef struct { + char *key; + char *value; +} AKSetting; + +int ak_settings(); +void ak_settings_print_setting(AKSetting); +int ak_settings_from_file(); +int ak_setting_to_file(AKSetting); + + +const char *ak_settings_get_setting(const char *key); +bool ak_settings_set_setting(const char *key, const char *value); +bool ak_settings_save_settings(); +bool ak_settings_load_settings_binary(); +int ak_settings_find_setting(const char *key); +void ak_settings_free_settings(); +bool ak_settings_save_settings_binary(); + +#endif // AK_SETTINGS_H |