diff options
Diffstat (limited to 'pikul.c')
-rw-r--r-- | pikul.c | 11 |
1 files changed, 11 insertions, 0 deletions
@@ -17,6 +17,10 @@ void anteraja_order(const char *, const char *, const char *, const char *, cons size_t anteraja_order_handle(const char *, size_t size, size_t nmemb, char **); void anteraja_cleanup(); +extern void sicepat_init(char *[], struct shipping *); +extern void sicepat_services(const char *, const char *, double, struct shipping *, char **); +extern size_t sicepat_services_handle(const char *, size_t, size_t, struct pikul_services **); + void pikul_init(enum pikul_company company, char *provisions[]) { curl_global_init(CURL_GLOBAL_SSL); @@ -29,6 +33,9 @@ void pikul_init(enum pikul_company company, char *provisions[]) case PIKUL_ANTERAJA: anteraja_init(provisions); break; + case PIKUL_SICEPAT: + sicepat_init(provisions, &shipping); + break; default: break; } @@ -58,6 +65,10 @@ struct pikul_services *pikul_services(const char *origin, const char *destinatio anteraja_services(origin, destination, weight, &url, &post); handler = anteraja_services_handle; break; + case PIKUL_SICEPAT: + sicepat_services(origin, destination, weight, &shipping, &url); + handler = sicepat_services_handle; + break; default: break; } |