From 3a1c71e902ce6c005b569f768a6e1e04714dbd99 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=EA=A6=8C=EA=A6=AB=EA=A6=B6=EA=A6=8F=EA=A7=80=EA=A6=A6?= =?UTF-8?q?=EA=A6=BF=EA=A6=A7=EA=A6=AE=EA=A6=91=EA=A6=A9=EA=A6=AD=EA=A7=80?= Date: Fri, 31 Mar 2023 18:30:48 +0800 Subject: Interface for setting orderpage, it has a default --- ord.c | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) (limited to 'ord.c') diff --git a/ord.c b/ord.c index 5bf341d..a386681 100644 --- a/ord.c +++ b/ord.c @@ -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"); } -- cgit v1.2.3