summaryrefslogtreecommitdiff
path: root/src/config.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/config.h')
-rw-r--r--src/config.h20
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