summaryrefslogtreecommitdiff
path: root/shopify.h
diff options
context:
space:
mode:
authorꦌꦫꦶꦏ꧀ꦦꦿꦧꦮꦑꦩꦭ꧀ <erik@darapsa.co.id>2022-09-20 15:14:18 +0800
committerꦌꦫꦶꦏ꧀ꦦꦿꦧꦮꦑꦩꦭ꧀ <erik@darapsa.co.id>2022-09-20 15:14:18 +0800
commit70c3b8c9b1852b66fbf365390bfac42d5826834f (patch)
tree9690104c1d98abdad4f3b0ac11b173ac8c6c23b4 /shopify.h
parentae8b69f7c43b5878cafd0f58440de0d8c7a1d0f9 (diff)
The callback params in the api struct are strict
Diffstat (limited to 'shopify.h')
-rw-r--r--shopify.h11
1 files changed, 8 insertions, 3 deletions
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