diff options
Diffstat (limited to 'src/auth.h')
-rw-r--r-- | src/auth.h | 10 |
1 files changed, 8 insertions, 2 deletions
@@ -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 |