From 218418f3623da5f07cf8428d1d8687b9d5fbc4ae Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=EA=A6=8C=EA=A6=AB=EA=A6=B6=EA=A6=8F=EA=A7=80=EA=A6=A6?= =?UTF-8?q?=EA=A6=BF=EA=A6=A7=EA=A6=AE=EA=A6=91=EA=A6=A9=EA=A6=AD=EA=A7=80?= Date: Sat, 24 Jul 2021 12:26:02 +0800 Subject: 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. --- private.h | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) (limited to 'private.h') diff --git a/private.h b/private.h index 6df3e91..954d29e 100644 --- a/private.h +++ b/private.h @@ -1,17 +1,19 @@ #include +#include #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[]; -- cgit v1.2.3