diff options
author | ꦌ ꦫꦶ ꦏ꧀ꦦꦿ ꦧ ꦮ ꦑ ꦩ ꦭ꧀ <erik@darapsa.co.id> | 2019-09-27 08:50:58 +0800 |
---|---|---|
committer | ꦌ ꦫꦶ ꦏ꧀ꦦꦿ ꦧ ꦮ ꦑ ꦩ ꦭ꧀ <erik@darapsa.co.id> | 2019-09-27 08:50:58 +0800 |
commit | 0bfbe518bf7baa28f0720b6c753b550855b495f0 (patch) | |
tree | 16354732cfc001b6647807a8c9bfdc7e99c40b2e /client.c | |
parent | 85bcd2881bb69fdff880b517541fd6ec77cc2a95 (diff) |
Move All-Products function to client code
Diffstat (limited to 'client.c')
-rw-r--r-- | client.c | 9 |
1 files changed, 9 insertions, 0 deletions
@@ -1,8 +1,11 @@ #include <stdbool.h> #include <stdlib.h> #include "login.h" +#include "icclient/product.h" #include "icclient/client.h" +typedef struct icclient_catalog icclient_catalog; + CURL *curl = NULL; char *server_url = NULL; @@ -29,6 +32,12 @@ bool icclient_init(const char *url, const char *certificate) return (bool)curl; } +void icclient_allproducts(icclient_catalog **catalogptr + , size_t (*callback)(void *, size_t, size_t, void *)) +{ + request(NULL, NULL, NULL, "%s", "All-Products"); +} + void icclient_newaccount(const char *username, const char *password , const char *verify, const char *successpage, const char *nextpage , const char *failpage) |