From 4aef78b56e9ee5f51ce80171288242c8881842f0 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, 17 Jun 2021 22:12:36 +0800 Subject: Rename fetch to response --- client.c | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'client.c') diff --git a/client.c b/client.c index 5c6e31a..fd34d3b 100644 --- a/client.c +++ b/client.c @@ -4,7 +4,7 @@ char *sampleurl; char *image_dir; -extern void handle_results(icclient_fetch_t *fetch); +extern void handle_results(icclient_response *); void icclient_init(const char *url, const char *dir, const char *certificate) { @@ -19,7 +19,7 @@ void icclient_init(const char *url, const char *dir, const char *certificate) init(certificate); } -void icclient_results(const char *prod_group, void (*handler)(icclient_fetch_t *), void (*callback)(struct icclient_catalog *)) +void icclient_results(const char *prod_group, void (*handler)(icclient_response *), void (*callback)(struct icclient_catalog *)) { char nonspaced[strlen(prod_group) + 1]; strcpy(nonspaced, prod_group); @@ -29,12 +29,12 @@ void icclient_results(const char *prod_group, void (*handler)(icclient_fetch_t * request(handler ? handler : handle_results, (void *)callback, 0, "%s", nonspaced); } -void icclient_flypage(const char *sku, void (*handler)(icclient_fetch_t *), struct icclient_product **productptr) +void icclient_flypage(const char *sku, void (*handler)(icclient_response *), struct icclient_product **productptr) { request(handler, (void *)productptr, 0, "%s", sku); } -void icclient_page(const char *path, void (*handler)(icclient_fetch_t *), void **dataptr) +void icclient_page(const char *path, void (*handler)(icclient_response *), void **dataptr) { request(handler, (void *)dataptr, 0, "%s", path); } -- cgit v1.2.3