summaryrefslogtreecommitdiff
path: root/ord.c
diff options
context:
space:
mode:
authorꦌꦫꦶꦏ꧀ꦦꦿꦧꦮꦑꦩꦭ꧀ <erik@darapsa.co.id>2023-02-07 15:18:40 +0800
committerꦌꦫꦶꦏ꧀ꦦꦿꦧꦮꦑꦩꦭ꧀ <erik@darapsa.co.id>2023-02-07 15:18:40 +0800
commit0bc5fe5cb5b85377c97fc84959d3764c6e8be703 (patch)
treec3b279c7d1bfd15bc4cd2d8b55fd24924b47b206 /ord.c
parentbbda409c41098831ea48689145a44b8a6eaf6b20 (diff)
Interface to handler when checking out
Diffstat (limited to 'ord.c')
-rw-r--r--ord.c6
1 files changed, 4 insertions, 2 deletions
diff --git a/ord.c b/ord.c
index 5d2265a..615aedb 100644
--- a/ord.c
+++ b/ord.c
@@ -61,9 +61,11 @@ void interchange_ord_order(const char *sku, const struct interchange_catalog *ca
request(NULL, NULL, NULL, "%s%s", "order?mv_arg=", sku);
}
-void interchange_ord_checkout(const struct interchange_ord_order *order, const struct interchange_member *member)
+void interchange_ord_checkout(const struct interchange_ord_order *order,
+ const struct interchange_member *member,
+ void (*handler)(interchange_response *))
{
- request(NULL, NULL, &(struct body){ 14, {
+ request(handler, NULL, &(struct body){ 14, {
{ "mv_todo", "submit" },
{ "mv_action", "refresh" },
{ "mv_order_profile", order->profile },