diff options
author | ꦌꦫꦶꦏ꧀ꦦꦿꦧꦮꦑꦩꦭ꧀ <erik@darapsa.co.id> | 2021-06-17 22:12:36 +0800 |
---|---|---|
committer | ꦌꦫꦶꦏ꧀ꦦꦿꦧꦮꦑꦩꦭ꧀ <erik@darapsa.co.id> | 2021-06-17 22:12:36 +0800 |
commit | 4aef78b56e9ee5f51ce80171288242c8881842f0 (patch) | |
tree | 9ab4c915bc5bdadd05adfe6693f497bf23c7b299 /client.c | |
parent | 71e1c7fc557e68743c4a8028b2d6675639be16cc (diff) |
Rename fetch to response
Diffstat (limited to 'client.c')
-rw-r--r-- | client.c | 8 |
1 files changed, 4 insertions, 4 deletions
@@ -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); } |