summaryrefslogtreecommitdiff
path: root/shopify.h
diff options
context:
space:
mode:
Diffstat (limited to 'shopify.h')
-rw-r--r--shopify.h30
1 files changed, 30 insertions, 0 deletions
diff --git a/shopify.h b/shopify.h
new file mode 100644
index 0000000..6af62d1
--- /dev/null
+++ b/shopify.h
@@ -0,0 +1,30 @@
+#ifndef SHOPIFY_H
+#define SHOPIFY_H
+
+#include <stdbool.h>
+#include <microhttpd.h>
+
+struct shopify_param {
+ char *key;
+ char *val;
+};
+
+#ifdef __cplusplus
+extern "C" {
+#endif
+
+void shopify_init();
+bool shopify_valid(struct MHD_Connection *conn, const char *url,
+ const char *redir_url, const char *key,
+ struct shopify_param *params[]);
+enum MHD_Result shopify_respond(struct shopify_param params[], const char *url,
+ const char *redir_url, const char *app_url, const char *app_id,
+ const char *key, const char *secret_key, const char *dir,
+ struct MHD_Connection *conn, struct MHD_Response **resp);
+void shopify_cleanup();
+
+#ifdef __cplusplus
+}
+#endif
+
+#endif