diff options
| author | ꦌꦫꦶꦏ꧀ꦦꦿꦧꦮꦑꦩꦭ꧀ <erik@darapsa.co.id> | 2022-09-29 11:29:12 +0800 |
|---|---|---|
| committer | ꦌꦫꦶꦏ꧀ꦦꦿꦧꦮꦑꦩꦭ꧀ <erik@darapsa.co.id> | 2022-09-29 11:29:12 +0800 |
| commit | c187480103a22fde34311d8189782ce61d075862 (patch) | |
| tree | 6df422bec06029fce2c5d5a1acaea76abd25ce11 /shopify.h | |
| parent | 5a02742c2095e64725e339a979fad399dfa559b4 (diff) | |
First attempt to support carrier services
Diffstat (limited to 'shopify.h')
| -rw-r--r-- | shopify.h | 9 |
1 files changed, 8 insertions, 1 deletions
@@ -15,6 +15,12 @@ struct shopify_api { void *arg; }; +struct shopify_carrierservice { + char *url; + char *(*rates)(const char *, const char *, long, + const struct shopify_session *); +}; + #ifdef __cplusplus extern "C" { #endif @@ -22,7 +28,8 @@ extern "C" { void shopify_app(const char *api_key, const char *api_secret_key, const char *app_url, const char *redir_url, const char *app_id, const char *scopes, char *(*html)(const char *host), - const char *js_dir, const struct shopify_api apis[]); + const char *js_dir, const struct shopify_api apis[], + const struct shopify_carrierservice carrierservices[]); void shopify_graphql(const char *query, const struct shopify_session *session, char **json); |