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/search.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/search.h')
-rw-r--r-- | rtclient/search.h | 12 |
1 files changed, 3 insertions, 9 deletions
diff --git a/rtclient/search.h b/rtclient/search.h index e0e386a..25b7258 100644 --- a/rtclient/search.h +++ b/rtclient/search.h @@ -1,21 +1,15 @@ #ifndef RTCLIENT_SEARCH_H #define RTCLIENT_SEARCH_H -struct rtclient_search_ticket_list { - size_t length; - struct rtclient_ticket *tickets[]; -}; - #ifdef __cplusplus extern "C" { #endif - void rtclient_search_ticket(struct rtclient_search_ticket_list **listptr - , const char *query); - void rtclient_search_ticket_free(struct rtclient_search_ticket_list *list); +void rtclient_search_ticket(const char *query, + void (*callback)(struct rtclient_ticket **)); #ifdef __cplusplus } #endif -#endif // RTCLIENT_SEARCH_H +#endif |