diff options
author | nirav <nirav@teisuu.com> | 2019-03-10 23:45:19 +0530 |
---|---|---|
committer | Dandelion <nirav@teisuu.com> | 2019-03-11 23:05:22 +0530 |
commit | 63e8c7f9d095fe0b1e0b44f950230c0e238f166d (patch) | |
tree | 01e0211f4fdede1eccda010fc944b3a0180a9632 /src/config.h | |
parent | 7e8ea36eb8106b4847af13a27a3e8f3177d25809 (diff) | |
download | ap_client-63e8c7f9d095fe0b1e0b44f950230c0e238f166d.tar.gz ap_client-63e8c7f9d095fe0b1e0b44f950230c0e238f166d.zip |
Add config and log
Diffstat (limited to 'src/config.h')
-rw-r--r-- | src/config.h | 20 |
1 files changed, 20 insertions, 0 deletions
diff --git a/src/config.h b/src/config.h new file mode 100644 index 0000000..3875a1b --- /dev/null +++ b/src/config.h @@ -0,0 +1,20 @@ +#ifndef __CONFIG_H +#define __CONFIG_H + +struct config { + char *instance_url; + char *client_id; + char *client_secret; + char *access_token; +}; + +extern const struct config *config; +void config_load(); +int config_save(); +void config_set_client_id(const char *cid); +void config_set_client_secret(const char *cs); +void config_set_instance_url(const char *iu); +void config_set_access_token(const char *a); +void config_cleanup(); + +#endif |