summaryrefslogtreecommitdiff
path: root/src/config.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/config.h')
-rw-r--r--src/config.h8
1 files changed, 8 insertions, 0 deletions
diff --git a/src/config.h b/src/config.h
index 3875a1b..2456c2b 100644
--- a/src/config.h
+++ b/src/config.h
@@ -1,6 +1,8 @@
#ifndef __CONFIG_H
#define __CONFIG_H
+#include <stdbool.h>
+
struct config {
char *instance_url;
char *client_id;
@@ -9,6 +11,12 @@ struct config {
};
extern const struct config *config;
+
+bool is_logged_in();
+const char* get_access_token();
+const char* get_instance_url();
+int read_local_credentials();
+bool is_registered();
void config_load();
int config_save();
void config_set_client_id(const char *cid);