1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22
#include <curl/curl.h> #include <json.h> #include "pikul.h" extern struct shipping { CURL *handle; char *base; struct curl_slist *headers; const char **status_trail; char *url; char *post; size_t response_size; char *response_data; json_tokener *tokener; enum { PLACES, SERVICES, ORDER } mode; const char **trail; void *data; } *shipping_list[];