diff options
Diffstat (limited to 'ord.c')
-rw-r--r-- | ord.c | 7 |
1 files changed, 4 insertions, 3 deletions
@@ -11,12 +11,13 @@ void interchange_ord_order(const char *sku, request(handler, NULL, NULL, "%s%s", "order?mv_arg=", sku); } -void interchange_ord_remove(const char *name, const char *nextpage, - void (*parser)(interchange_response *)) +void interchange_ord_remove(const char *name, const char *orderpage, + const char *nextpage, void (*parser)(interchange_response *)) { - request(parser, NULL, &(struct body){ 2 + (nextpage ? 1 : 0), { + request(parser, NULL, &(struct body){ 3 + (nextpage ? 1 : 0), { { name, "0" }, { "mv_doit", "refresh" }, + { "mv_orderpage", orderpage ? orderpage : "ord/basket" }, { "mv_nextpage", nextpage } }}, "%s", "process"); } |