summaryrefslogtreecommitdiff
path: root/rtclient.h
diff options
context:
space:
mode:
authorꦌꦫꦶꦏ꧀ꦦꦿꦧꦮꦑꦩꦭ꧀ <erik@darapsa.co.id>2022-02-02 09:29:10 +0800
committerꦌꦫꦶꦏ꧀ꦦꦿꦧꦮꦑꦩꦭ꧀ <erik@darapsa.co.id>2022-02-02 09:29:10 +0800
commit12cde42c929b63a1ef1b2ad7f3482336419980b2 (patch)
tree3c7e7185909432068985da6bb739bf34d67fcd58 /rtclient.h
parentebfa1718a36a8a0f3cf4571bc48b1990129af703 (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.h11
1 files changed, 8 insertions, 3 deletions
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
}