summaryrefslogtreecommitdiff
path: root/src/auth.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/auth.h')
-rw-r--r--src/auth.h10
1 files changed, 8 insertions, 2 deletions
diff --git a/src/auth.h b/src/auth.h
index e5e597c..e6691dd 100644
--- a/src/auth.h
+++ b/src/auth.h
@@ -1,10 +1,16 @@
#ifndef __AUTH_H
#define __AUTH_H
+#include <stdbool.h>
+
extern char *instance_domain;
-extern char *auth_token;
+extern char *client_id;
+extern char *client_secret;
+extern char *access_token;
+extern char *scope;
-int register_app(char *instance);
+int register_app(const char *instance, void (*callback) (bool success));
+int login(const char *email, const char *password, void (*callback) (bool success));
void auth_cleanup();
#endif