aboutsummaryrefslogtreecommitdiff
path: root/src/backend/taler-merchant-httpd_mhd.h
diff options
context:
space:
mode:
authorFlorian Dold <florian.dold@gmail.com>2019-09-23 18:39:17 +0200
committerFlorian Dold <florian.dold@gmail.com>2019-09-23 18:39:17 +0200
commit63994abe1e2780d3a43e261090d3261e8d91a854 (patch)
tree2d2fb235f05d12fcd5d9ea9c34be29c6e37b51c5 /src/backend/taler-merchant-httpd_mhd.h
parent7d50af6651ea4e0a15960434e1d574596552ead7 (diff)
implement instances via one base URL per instance
Previously, instances were addressed in various ways depending on then request (GET parameter, some instance_id in the POST body). With this commit, users of the merchant backend don't see the instance, they just see another base URL.
Diffstat (limited to 'src/backend/taler-merchant-httpd_mhd.h')
-rw-r--r--src/backend/taler-merchant-httpd_mhd.h15
1 files changed, 12 insertions, 3 deletions
diff --git a/src/backend/taler-merchant-httpd_mhd.h b/src/backend/taler-merchant-httpd_mhd.h
index 5f0e69be..0ec9830b 100644
--- a/src/backend/taler-merchant-httpd_mhd.h
+++ b/src/backend/taler-merchant-httpd_mhd.h
@@ -37,6 +37,8 @@
* @param[in,out] connection_cls the connection's closure (can be updated)
* @param upload_data upload data
* @param[in,out] upload_data_size number of bytes (left) in @a upload_data
+ * @param instance_id merchant backend instance ID or NULL is no instance
+ * has been explicitly specified
* @return MHD result code
*/
int
@@ -44,7 +46,8 @@ TMH_MHD_handler_static_response (struct TMH_RequestHandler *rh,
struct MHD_Connection *connection,
void **connection_cls,
const char *upload_data,
- size_t *upload_data_size);
+ size_t *upload_data_size,
+ const char *instance_id);
/**
@@ -56,6 +59,8 @@ TMH_MHD_handler_static_response (struct TMH_RequestHandler *rh,
* @param[in,out] connection_cls the connection's closure (can be updated)
* @param upload_data upload data
* @param[in,out] upload_data_size number of bytes (left) in @a upload_data
+ * @param instance_id merchant backend instance ID or NULL is no instance
+ * has been explicitly specified
* @return MHD result code
*/
int
@@ -63,7 +68,8 @@ TMH_MHD_handler_agpl_redirect (struct TMH_RequestHandler *rh,
struct MHD_Connection *connection,
void **connection_cls,
const char *upload_data,
- size_t *upload_data_size);
+ size_t *upload_data_size,
+ const char *instance_id);
/**
@@ -98,6 +104,8 @@ TMH_MHD_helper_send_json_pack (struct TMH_RequestHandler *rh,
* @param[in,out] connection_cls the connection's closure (can be updated)
* @param upload_data upload data
* @param[in,out] upload_data_size number of bytes (left) in @a upload_data
+ * @param instance_id merchant backend instance ID or NULL is no instance
+ * has been explicitly specified
* @return MHD result code
*/
int
@@ -105,7 +113,8 @@ TMH_MHD_handler_send_json_pack_error (struct TMH_RequestHandler *rh,
struct MHD_Connection *connection,
void **connection_cls,
const char *upload_data,
- size_t *upload_data_size);
+ size_t *upload_data_size,
+ const char *instance_id);
#endif