diff options
| author | ꦌꦫꦶꦏ꧀ꦦꦿꦧꦮꦑꦩꦭ꧀ <erik@darapsa.co.id> | 2021-07-16 11:02:02 +0800 |
|---|---|---|
| committer | ꦌꦫꦶꦏ꧀ꦦꦿꦧꦮꦑꦩꦭ꧀ <erik@darapsa.co.id> | 2021-07-16 11:02:02 +0800 |
| commit | 6f78942176d5909349305db37b5424a1c6ceccef (patch) | |
| tree | 215a441aaca7856ef2000d6f40a838d0c02f89ee /pikul.h | |
| parent | d1b9c27a403fb2ac9e69e82ebea32722c6795daf (diff) | |
Order functionality draft
Not tested yet.
Now the item object is still flattened as an array, initially
to hurry the interfacing with the Perl module.
But we were stuck with having to typemap char *** anyway,
so we switch to SWIG because of the potential of ease.
Still, we need to typemap char ***, but now that we're at SWIG,
we might as well typemap a custom item struct.
Diffstat (limited to 'pikul.h')
| -rw-r--r-- | pikul.h | 4 |
1 files changed, 4 insertions, 0 deletions
@@ -25,6 +25,10 @@ void pikul_init(enum pikul_company company, char *provisions[]); struct pikul_services *pikul_services(const char *origin, const char *destination, double weight); void pikul_free_services(struct pikul_services *services); double pikul_cost(const char *origin, const char *destination, double weight, const char *service); +char *pikul_order(const char *trx_id, const char *service, const char *sender_name, + const char *sender_phone, const char *origin, const char *sender_address, + const char *receiver_name, const char *receiver_phone, const char *destination, + const char *receiver_address, int nitems, char **items[], double value); void pikul_cleanup(); #ifdef __cplusplus |