From 3f96d8c84f7362b1800fcc8fdf3d0395ec265ca5 Mon Sep 17 00:00:00 2001 From: ꦌꦫꦶꦏ꧀ꦦꦿꦧꦮꦑꦩꦭ꧀ Date: Thu, 10 Jun 2021 17:13:45 +0800 Subject: Anticipate asynchronous data fetch --- icclient/catalog.h | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'icclient') diff --git a/icclient/catalog.h b/icclient/catalog.h index 677d691..9d15a1a 100644 --- a/icclient/catalog.h +++ b/icclient/catalog.h @@ -6,6 +6,11 @@ struct icclient_catalog { struct icclient_product *products[]; }; +struct icclient_catalog_callback { + struct icclient_catalog **catalog; + void (*callback)(struct icclient_catalog *); +}; + #ifdef __cplusplus extern "C" { #endif -- cgit v1.3