summaryrefslogtreecommitdiff
path: root/private.h
diff options
context:
space:
mode:
authorꦌꦫꦶꦏ꧀ꦦꦿꦧꦮꦑꦩꦭ꧀ <erik@darapsa.co.id>2021-07-24 12:26:02 +0800
committerꦌꦫꦶꦏ꧀ꦦꦿꦧꦮꦑꦩꦭ꧀ <erik@darapsa.co.id>2021-07-24 12:26:02 +0800
commit218418f3623da5f07cf8428d1d8687b9d5fbc4ae (patch)
tree986978b38f2df259a722426c34718d1cedc4a1e3 /private.h
parent2ccf1c19b5182bd99b7d717008204737d9cfccd9 (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.h6
1 files changed, 4 insertions, 2 deletions
diff --git a/private.h b/private.h
index 6df3e91..954d29e 100644
--- a/private.h
+++ b/private.h
@@ -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[];