summaryrefslogtreecommitdiff
path: root/pikul.h
diff options
context:
space:
mode:
authorꦌꦫꦶꦏ꧀ꦦꦿꦧꦮꦑꦩꦭ꧀ <erik@darapsa.co.id>2021-07-22 18:49:43 +0800
committerꦌꦫꦶꦏ꧀ꦦꦿꦧꦮꦑꦩꦭ꧀ <erik@darapsa.co.id>2021-07-22 18:49:43 +0800
commit2ccf1c19b5182bd99b7d717008204737d9cfccd9 (patch)
tree31f687a7e803cd45593ac305de20bf41a591d262 /pikul.h
parent66fc2d12fca46246024e567aa18cdf853e194776 (diff)
No special services struct
Diffstat (limited to 'pikul.h')
-rw-r--r--pikul.h9
1 files changed, 2 insertions, 7 deletions
diff --git a/pikul.h b/pikul.h
index 3581695..696b055 100644
--- a/pikul.h
+++ b/pikul.h
@@ -12,18 +12,13 @@ struct pikul_service {
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);
+struct pikul_service **pikul_services(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,
const char *widget, const char *extra, const char *name, const char *value,
char *code_prefixes[], char *name_prefixes[]);