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/user.h | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) (limited to 'rtclient/user.h') diff --git a/rtclient/user.h b/rtclient/user.h index 5f62d17..02b2daa 100644 --- a/rtclient/user.h +++ b/rtclient/user.h @@ -1,6 +1,8 @@ #ifndef RTCLIENT_USER_H #define RTCLIENT_USER_H +#include "typedefs.h" + enum rtclient_user_lang { RTCLIENT_USER_LANG_NONE = 0, RTCLIENT_USER_LANG_AR, @@ -464,9 +466,9 @@ void rtclient_user_new(const char *name, enum rtclient_user_timezone timezone, bool disabled, bool privileged); - void rtclient_user_showid(struct rtclient_user **userptr, unsigned int id); - void rtclient_user_showname(struct rtclient_user **userptr, const char *name); - void rtclient_user_free(struct rtclient_user *user); +void rtclient_user_showid(unsigned int id, void (*)(struct rtclient_user *)); +void rtclient_user_showname(const char *name, void (*)(struct rtclient_user *)); +void rtclient_user_free(struct rtclient_user *user); #ifdef __cplusplus } -- cgit v1.2.3