diff options
author | nirav <nirav@teisuu.com> | 2019-03-09 11:03:43 +0530 |
---|---|---|
committer | Dandelion <nirav@teisuu.com> | 2019-03-09 11:03:43 +0530 |
commit | c14d6af39dbf2353134ba8c99ce95a52207a2b45 (patch) | |
tree | 93da586386fccd29a8dcf49df0b5f4ebfd915a5d /src/auth.h | |
parent | 77a9d0050c16ffd6c4d3a2b17533954d560bb019 (diff) | |
download | ap_client-c14d6af39dbf2353134ba8c99ce95a52207a2b45.tar.gz ap_client-c14d6af39dbf2353134ba8c99ce95a52207a2b45.zip |
Add login
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 |