aboutsummaryrefslogtreecommitdiff
path: root/c_implementation/include/libaksettings.h
blob: e95f37d55e48714743f968e2472eb7e6a4191212 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
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