diff options
author | ꦌꦫꦶꦏ꧀ꦦꦿꦧꦮꦑꦩꦭ꧀ <erik@darapsa.co.id> | 2022-09-20 15:14:18 +0800 |
---|---|---|
committer | ꦌꦫꦶꦏ꧀ꦦꦿꦧꦮꦑꦩꦭ꧀ <erik@darapsa.co.id> | 2022-09-20 15:14:18 +0800 |
commit | 70c3b8c9b1852b66fbf365390bfac42d5826834f (patch) | |
tree | 9690104c1d98abdad4f3b0ac11b173ac8c6c23b4 /shopify.h | |
parent | ae8b69f7c43b5878cafd0f58440de0d8c7a1d0f9 (diff) |
The callback params in the api struct are strict
Diffstat (limited to 'shopify.h')
-rw-r--r-- | shopify.h | 11 |
1 files changed, 8 insertions, 3 deletions
@@ -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 |