summaryrefslogtreecommitdiff
path: root/shopify.h
diff options
context:
space:
mode:
authorꦌꦫꦶꦏ꧀ꦦꦿꦧꦮꦑꦩꦭ꧀ <erik@darapsa.co.id>2022-09-15 09:18:44 +0800
committerꦌꦫꦶꦏ꧀ꦦꦿꦧꦮꦑꦩꦭ꧀ <erik@darapsa.co.id>2022-09-15 09:19:53 +0800
commit7989aa01ac4d48dbb5dda7a106a270fe381f2852 (patch)
tree07a0a337cb4be8dbf75f1ed37ee9806f7450786c /shopify.h
parente3141f7969a75d363a173f9e2ae07da67753c4da (diff)
const qualifiers for arguments
when there won't be any more memory allocated for them. The redirect inline function params are swapped a bit.
Diffstat (limited to 'shopify.h')
-rw-r--r--shopify.h10
1 files changed, 5 insertions, 5 deletions
diff --git a/shopify.h b/shopify.h
index 247bc1c..0c6f4e7 100644
--- a/shopify.h
+++ b/shopify.h
@@ -17,11 +17,11 @@ 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 *toml_path,
- const char *html_path, struct MHD_Connection *conn,
- struct MHD_Response **resp);
+enum MHD_Result shopify_respond(const 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 *toml_path, const char *html_path,
+ struct MHD_Connection *conn, struct MHD_Response **resp);
void shopify_cleanup();
#ifdef __cplusplus