summaryrefslogtreecommitdiff
path: root/src/lib/merchant_api_common.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/lib/merchant_api_common.h')
-rw-r--r--src/lib/merchant_api_common.h13
1 files changed, 13 insertions, 0 deletions
diff --git a/src/lib/merchant_api_common.h b/src/lib/merchant_api_common.h
index 683f1dbd..09696e3b 100644
--- a/src/lib/merchant_api_common.h
+++ b/src/lib/merchant_api_common.h
@@ -33,4 +33,17 @@ char *
MAH_path_to_url_ (const char *base_url,
const char *path);
+/**
+ * Make an absolute URL with query parameters.
+ *
+ * @param base_url absolute base URL to use
+ * @param path path of the url
+ * @param ... NULL-terminated key-value pairs (char *) for query parameters
+ * @returns the URL, must be freed with #GNUNET_free
+ */
+char *
+MAH_make_url (const char *base_url,
+ const char *path,
+ ...);
+
#endif