From 1bec937076d8d40f94ff4603479f21bca2de6c61 Mon Sep 17 00:00:00 2001 From: Julien Dessaux Date: Sun, 4 Aug 2019 11:03:38 +0200 Subject: Added http lib and basic restapi with rocket_close_im binary --- restapi/auth.h | 11 +++++++++++ 1 file changed, 11 insertions(+) create mode 100644 restapi/auth.h (limited to 'restapi/auth.h') diff --git a/restapi/auth.h b/restapi/auth.h new file mode 100644 index 0000000..ce5ea10 --- /dev/null +++ b/restapi/auth.h @@ -0,0 +1,11 @@ +#ifndef RESTAPI_AUTH_H_ +#define RESTAPI_AUTH_H_ + +extern char * userId; +extern char * authToken; + +char // returns 0 if ok, greater than 0 otherwise +restapi_login(const char* username, const char* password); +void restapi_logout(void); + +#endif -- cgit v1.2.3