From 3f96d8c84f7362b1800fcc8fdf3d0395ec265ca5 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: 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.2.3