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 /pikul.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 'pikul.h')
-rw-r--r-- | pikul.h | 21 |
1 files changed, 13 insertions, 8 deletions
@@ -2,7 +2,9 @@ #define PIKUL_H enum pikul_company { - PIKUL_ANTERAJA + PIKUL, + PIKUL_ANTERAJA, + PIKUL_END }; struct pikul_service { @@ -17,16 +19,19 @@ extern "C" { #endif void pikul_init(enum pikul_company company, char *provisions[]); -struct pikul_service **pikul_services(const char *origin, const char *destination, double weight); +struct pikul_service **pikul_services(enum pikul_company company, + const char *origin, const char *destination, double weight); void pikul_free_services(struct pikul_service **services); -char *pikul_html(const char *origin, const char *destination, double weight, +char *pikul_html(char *origins[], char *destinations[], double weight, const char *widget, const char *extra, const char *name, const char *value, char *code_prefixes[], char *name_prefixes[]); -double pikul_cost(const char *origin, const char *destination, double weight, const char *service); -char *pikul_order(const char *order_number, const char *service, const char *sender_name, - const char *sender_phone, const char *origin, const char *sender_address, - const char *sender_postal, const char *receiver_name, const char *receiver_phone, - const char *destination, const char *receiver_address, const char *receiver_postal, +double pikul_cost(enum pikul_company company, const char *service, + const char *origin, const char *destination, double weight); +char *pikul_order(enum pikul_company company, const char *order_number, const char *service, + const char *sender_name, const char *sender_phone, const char *origin, + const char *sender_address, const char *sender_postal, + const char *receiver_name, const char *receiver_phone, const char *destination, + const char *receiver_address, const char *receiver_postal, int nitems, char **items[], double subtotal); void pikul_cleanup(); |