From a5ce38a2273d6f11414376e8ca3e1d7e41accd9e 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: Wed, 23 Jun 2021 07:26:46 +0800 Subject: New transaction function --- icclient/admin.h | 17 ++++++++++------- 1 file changed, 10 insertions(+), 7 deletions(-) (limited to 'icclient') diff --git a/icclient/admin.h b/icclient/admin.h index 64d5b0a..08e4751 100644 --- a/icclient/admin.h +++ b/icclient/admin.h @@ -21,13 +21,16 @@ struct icclient_admin { extern "C" { #endif - void icclient_admin_login(const char *username, const char *password, void (*handler)(icclient_response *), - void (*callback)(struct icclient_admin *)); - void icclient_admin_new_admin(const char *username, const char *password, const char *name, bool super, - enum icclient_admin_group group, void (*handler)(icclient_response *)); - void icclient_admin_new_item(const char *description, const char *comment, const char *price, const char *image_path, - void (*handler)(icclient_response *)); - void icclient_admin_logout(struct icclient_admin *admin, void (*handler)(icclient_response *)); +void icclient_admin_login(const char *username, const char *password, void (*handler)(icclient_response *), + void (*callback)(struct icclient_admin *)); +void icclient_admin_new_admin(const char *username, const char *password, const char *name, bool super, + enum icclient_admin_group group, void (*handler)(icclient_response *)); +void icclient_admin_new_item(const char *description, const char *comment, const char *price, + const char *image_path, void (*handler)(icclient_response *)); +void icclient_admin_new_transaction(const struct icclient_ord_order *order, + const struct icclient_member *member, bool new_customer_id, + void (*handler)(icclient_response *)); +void icclient_admin_logout(struct icclient_admin *admin, void (*handler)(icclient_response *)); #ifdef __cplusplus } -- cgit v1.2.3