diff options
author | ꦌꦫꦶꦏ꧀ꦦꦿꦧꦮꦑꦩꦭ꧀ <erik@darapsa.co.id> | 2021-07-24 12:26:02 +0800 |
---|---|---|
committer | ꦌꦫꦶꦏ꧀ꦦꦿꦧꦮꦑꦩꦭ꧀ <erik@darapsa.co.id> | 2021-07-24 12:26:02 +0800 |
commit | 218418f3623da5f07cf8428d1d8687b9d5fbc4ae (patch) | |
tree | 986978b38f2df259a722426c34718d1cedc4a1e3 /private.h | |
parent | 2ccf1c19b5182bd99b7d717008204737d9cfccd9 (diff) |
Each shipping info is retained in its own slot
Slot/enum 0 is reserved for Pikul.
libcurl WRITEFUNCTION callback userData parameter is now used for
the shipping instance, but may also be used for something else in
turns.
Diffstat (limited to 'private.h')
-rw-r--r-- | private.h | 6 |
1 files changed, 4 insertions, 2 deletions
@@ -1,17 +1,19 @@ #include <curl/curl.h> +#include <json.h> #include "pikul.h" extern struct shipping { - enum pikul_company company; + CURL *handle; char *base; struct curl_slist *headers; const char **status_trail; char *url; char *post; + json_tokener *tokener; enum { SERVICES, ORDER } mode; const char **trail; void *data; -} shipping; +} *shipping_list[]; |