diff options
| author | ꦌꦫꦶꦏ꧀ꦦꦿꦧꦮꦑꦩꦭ꧀ <erik@darapsa.co.id> | 2022-02-02 09:29:10 +0800 |
|---|---|---|
| committer | ꦌꦫꦶꦏ꧀ꦦꦿꦧꦮꦑꦩꦭ꧀ <erik@darapsa.co.id> | 2022-02-02 09:29:10 +0800 |
| commit | 12cde42c929b63a1ef1b2ad7f3482336419980b2 (patch) | |
| tree | 3c7e7185909432068985da6bb739bf34d67fcd58 /rtclient.h | |
| parent | ebfa1718a36a8a0f3cf4571bc48b1990129af703 (diff) | |
Asynchronous connection
Important updates:
1. Emscripten port.
2. HTTP request code copied from libicclient & slightly fixed.
3. Cookies, for maintaining authorisation between different async
handles.
Diffstat (limited to 'rtclient.h')
| -rw-r--r-- | rtclient.h | 11 |
1 files changed, 8 insertions, 3 deletions
@@ -1,13 +1,18 @@ #ifndef RTCLIENT_H #define RTCLIENT_H +#include "rtclient/typedefs.h" + #ifdef __cplusplus extern "C" { #endif - bool rtclient_init(const char *url, const char *certificate); - void rtclient_login(const char *name, const char *password); - void rtclient_cleanup(); +void rtclient_init(const char *url, const char *cookies, + const char *certificate); +void rtclient_login(const char *name, const char *password, + void (*handler)(rtclient_response *)); +void rtclient_free_response(rtclient_response *response); +void rtclient_cleanup(); #ifdef __cplusplus } |