summaryrefslogtreecommitdiff
path: root/src/config.h
diff options
context:
space:
mode:
authornirav <nirav@teisuu.com>2019-03-21 16:34:24 +0530
committerDandelion <nirav@teisuu.com>2019-03-21 16:50:20 +0530
commit4b27c1a348d8de036dabd5525452f5b9ad08a32b (patch)
treef70c35351dc357d4297f985607fce9221ced96f0 /src/config.h
parentc608bcc3dfab2abe7b66c10f8556086b2d45b3a3 (diff)
downloadap_client-4b27c1a348d8de036dabd5525452f5b9ad08a32b.tar.gz
ap_client-4b27c1a348d8de036dabd5525452f5b9ad08a32b.zip
Use g_threads, add builder ui for timeline
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);