summaryrefslogtreecommitdiff
path: root/pikul.c
diff options
context:
space:
mode:
Diffstat (limited to 'pikul.c')
-rw-r--r--pikul.c11
1 files changed, 11 insertions, 0 deletions
diff --git a/pikul.c b/pikul.c
index 11bcdf3..c8ac2b5 100644
--- a/pikul.c
+++ b/pikul.c
@@ -16,6 +16,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();
+void sicepat_init(char *[]);
+void sicepat_services(const char *, const char *, double, char **);
+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);
@@ -28,6 +32,9 @@ void pikul_init(enum pikul_company company, char *provisions[])
case PIKUL_ANTERAJA:
anteraja_init(provisions);
break;
+ case PIKUL_SICEPAT:
+ sicepat_init(provisions);
+ break;
default:
break;
}
@@ -57,6 +64,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, &url);
+ handler = sicepat_services_handle;
+ break;
default:
break;
}