summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorꦌꦫꦶꦏ꧀ꦦꦿꦧꦮꦑꦩꦭ꧀ <erik@darapsa.co.id>2021-07-10 13:47:24 +0800
committerꦌꦫꦶꦏ꧀ꦦꦿꦧꦮꦑꦩꦭ꧀ <erik@darapsa.co.id>2021-07-10 13:47:24 +0800
commit294b1faf5509e1eda8c80bb42749336e76f96e03 (patch)
tree0652a4c8f5b576dff79cc554fb9e3a5770f32116
parentfef441a4d2f988284fd6df3c8b5a0d939e6bfc31 (diff)
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.
-rw-r--r--client.c2
-rw-r--r--icclient.h2
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);