From 63e8c7f9d095fe0b1e0b44f950230c0e238f166d Mon Sep 17 00:00:00 2001 From: nirav Date: Sun, 10 Mar 2019 23:45:19 +0530 Subject: Add config and log --- src/config.h | 20 ++++++++++++++++++++ 1 file changed, 20 insertions(+) create mode 100644 src/config.h (limited to 'src/config.h') 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 -- cgit v1.2.3