From 294b1faf5509e1eda8c80bb42749336e76f96e03 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: Sat, 10 Jul 2021 13:47:24 +0800 Subject: Rename page to path as it is very generic, that the response may not necessarily be a "page". This function is kept because we still need a generic one here at C world (for folks not using Qt, for example). Besides, the last time I tried, I remember Qt Network failed to build for Emscripten. So, this is what the function is for.. we need the API to stillm be uniform, AND, works on Emscripten too. It is very generic that it should later be out of the Interchange specific client code. --- client.c | 2 +- icclient.h | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/client.c b/client.c index b46f973..a13ead1 100644 --- a/client.c +++ b/client.c @@ -57,7 +57,7 @@ void icclient_product(const char *sku, void (*handler)(icclient_response *), voi request(handler, (void (*)(void *))callback, NULL, "%s", sku); } -void icclient_page(const char *path, void (*handler)(icclient_response *)) +void icclient_path(const char *path, void (*handler)(icclient_response *)) { request(handler, NULL, NULL, "%s", path); } diff --git a/icclient.h b/icclient.h index b962a24..ddbca9f 100644 --- a/icclient.h +++ b/icclient.h @@ -60,7 +60,7 @@ void icclient_catalog(const char *prod_group, void (*handler)(icclient_response */ void icclient_product(const char *sku, void (*handler)(icclient_response *), void (*callback)(struct icclient_product *)); -void icclient_page(const char *path, void (*handler)(icclient_response *)); +void icclient_path(const char *path, void (*handler)(icclient_response *)); void icclient_free_product(struct icclient_product *product); -- cgit v1.2.3