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/ticket.h | 14 +++----------- 1 file changed, 3 insertions(+), 11 deletions(-) (limited to 'rtclient/ticket.h') diff --git a/rtclient/ticket.h b/rtclient/ticket.h index 9fdd9a0..0600c34 100644 --- a/rtclient/ticket.h +++ b/rtclient/ticket.h @@ -56,11 +56,6 @@ struct rtclient_ticket_history { struct rtclient_ticket_history_attachment_list *attachments; }; -struct rtclient_ticket_history_list { - size_t length; - struct rtclient_ticket_history *histories[]; -}; - #ifdef __cplusplus extern "C" { #endif @@ -79,12 +74,9 @@ void rtclient_ticket_new(const char *queue, const char *starts, const char *due, const char *text); - void rtclient_ticket_history(struct rtclient_ticket_history_list **listptr - , unsigned int id, bool long_format); - void rtclient_ticket_history_free - (struct rtclient_ticket_history *history); - void rtclient_ticket_history_list_free - (struct rtclient_ticket_history_list *list); +void rtclient_ticket_history_list(unsigned int id, bool long_format, + void (*callback)(struct rtclient_ticket_history **)); +void rtclient_ticket_history_free(struct rtclient_ticket_history *history); #ifdef __cplusplus } -- cgit v1.2.3