From 12cde42c929b63a1ef1b2ad7f3482336419980b2 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=EA=A6=8C=EA=A6=AB=EA=A6=B6=EA=A6=8F=EA=A7=80=EA=A6=A6?= =?UTF-8?q?=EA=A6=BF=EA=A6=A7=EA=A6=AE=EA=A6=91=EA=A6=A9=EA=A6=AD=EA=A7=80?= Date: Wed, 2 Feb 2022 09:29:10 +0800 Subject: 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. --- rtclient.h | 11 ++++++++--- 1 file changed, 8 insertions(+), 3 deletions(-) (limited to 'rtclient.h') diff --git a/rtclient.h b/rtclient.h index dac2198..49541e3 100644 --- a/rtclient.h +++ b/rtclient.h @@ -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 } -- cgit v1.2.3