diff options
author | ꦌꦫꦶꦏ꧀ꦦꦿꦧꦮꦑꦩꦭ꧀ <erik@darapsa.co.id> | 2023-03-13 23:16:47 +0800 |
---|---|---|
committer | ꦌꦫꦶꦏ꧀ꦦꦿꦧꦮꦑꦩꦭ꧀ <erik@darapsa.co.id> | 2023-03-13 23:16:47 +0800 |
commit | 802e1a0b2f6fbdd244f66fe2bffe26ff2e2566d7 (patch) | |
tree | 1ed1fb191f43510c6b29630169a64146282faa3e /interchange.c | |
parent | b3735f9f230dbd808d7952822694c3ef19e235f3 (diff) |
Document _page and reorder it up
Diffstat (limited to 'interchange.c')
-rw-r--r-- | interchange.c | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/interchange.c b/interchange.c index 2e50fba..d2a3217 100644 --- a/interchange.c +++ b/interchange.c @@ -43,6 +43,11 @@ void interchange_init(const char *url, const char *dir, const char *cookie, #endif } +void interchange_page(const char *path, void (*handler)(interchange_response *)) +{ + request(handler, NULL, NULL, "%s", path); +} + void interchange_catalog(const char *prod_group, void (*handler)(interchange_response *), void (*callback)(struct interchange_catalog *)) { char nonspaced[strlen(prod_group) + 1]; @@ -62,11 +67,6 @@ void interchange_product(const char *sku, void (*handler)(interchange_response * request(handler, (void (*)(void *))callback, NULL, "%s", sku); } -void interchange_page(const char *path, void (*handler)(interchange_response *)) -{ - request(handler, NULL, NULL, "%s", path); -} - void interchange_clear_product(struct interchange_product *product) { if (product->crosssell) |