diff options
author | ꦌꦫꦶꦏ꧀ꦦꦿꦧꦮꦑꦩꦭ꧀ <erik@darapsa.co.id> | 2022-09-15 09:18:44 +0800 |
---|---|---|
committer | ꦌꦫꦶꦏ꧀ꦦꦿꦧꦮꦑꦩꦭ꧀ <erik@darapsa.co.id> | 2022-09-15 09:19:53 +0800 |
commit | 7989aa01ac4d48dbb5dda7a106a270fe381f2852 (patch) | |
tree | 07a0a337cb4be8dbf75f1ed37ee9806f7450786c /shopify.h | |
parent | e3141f7969a75d363a173f9e2ae07da67753c4da (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.h | 10 |
1 files changed, 5 insertions, 5 deletions
@@ -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 |