summaryrefslogtreecommitdiff
path: root/shopify.h
diff options
context:
space:
mode:
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