diff options
| author | ꦌꦫꦶꦏ꧀ꦦꦿꦧꦮꦑꦩꦭ꧀ <erik@darapsa.co.id> | 2021-06-27 23:41:31 +0800 |
|---|---|---|
| committer | ꦌꦫꦶꦏ꧀ꦦꦿꦧꦮꦑꦩꦭ꧀ <erik@darapsa.co.id> | 2021-06-27 23:41:31 +0800 |
| commit | 65a334cf2fe2d7d524c129f0df765463a91f542c (patch) | |
| tree | d182a3e1b474dfd9329357154a1a618a199cdebb /pikul.h | |
Shipping API client framework
with 1 module so far.
Diffstat (limited to 'pikul.h')
| -rw-r--r-- | pikul.h | 35 |
1 files changed, 35 insertions, 0 deletions
@@ -0,0 +1,35 @@ +#ifndef PIKUL_H +#define PIKUL_H + +enum pikul_company { + PIKUL_COMPANY_ANTERAJA = 0, + PIKUL_COMPANY_SICEPAT +}; + +struct pikul_service { + char *code; + char *name; + char *etd; + double cost; +}; + +struct pikul_services { + size_t length; + struct pikul_service *list[]; +}; + +#ifdef __cplusplus +extern "C" { +#endif + +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); +void pikul_cleanup(); + +#ifdef __cplusplus +} +#endif + +#endif |