From 70c3b8c9b1852b66fbf365390bfac42d5826834f 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: Tue, 20 Sep 2022 15:14:18 +0800 Subject: The callback params in the api struct are strict --- shopify.h | 11 ++++++++--- 1 file changed, 8 insertions(+), 3 deletions(-) (limited to 'shopify.h') diff --git a/shopify.h b/shopify.h index 39f620c..f327a27 100644 --- a/shopify.h +++ b/shopify.h @@ -1,15 +1,20 @@ #ifndef SHOPIFY_H #define SHOPIFY_H +struct shopify_session { + char *shop; + char *nonce; + char *access_token; + char *scopes; +}; + struct shopify_api { char *url; char *method; - void (*cb)(); + void (*cb)(const char *, const struct shopify_session *, char **); void *arg; }; -struct shopify_session; - #ifdef __cplusplus extern "C" { #endif -- cgit v1.2.3