diff options
author | Marcello Stanisci <marcello.stanisci@inria.fr> | 2016-05-25 00:13:37 +0200 |
---|---|---|
committer | Marcello Stanisci <marcello.stanisci@inria.fr> | 2016-05-25 00:13:37 +0200 |
commit | a1ecc4a85e1634a0c02ac84f140195040138a254 (patch) | |
tree | e38023acfa32499cef7f92beea14812756c040c7 /src/backend/taler-merchant-httpd_responses.h | |
parent | 13eb40e3bcc935dc39a03d071f8ab2391c8c085e (diff) |
adding scaffold for integrating /track/{deposit,wtid} API calls
Diffstat (limited to 'src/backend/taler-merchant-httpd_responses.h')
-rw-r--r-- | src/backend/taler-merchant-httpd_responses.h | 21 |
1 files changed, 21 insertions, 0 deletions
diff --git a/src/backend/taler-merchant-httpd_responses.h b/src/backend/taler-merchant-httpd_responses.h index abf90949..7314e0bb 100644 --- a/src/backend/taler-merchant-httpd_responses.h +++ b/src/backend/taler-merchant-httpd_responses.h @@ -157,4 +157,25 @@ TMH_RESPONSE_reply_request_too_large (struct MHD_Connection *connection); void TMH_RESPONSE_add_global_headers (struct MHD_Response *response); +/** + * Send a response indicating a missing argument. + * + * @param connection the MHD connection to use + * @param param_name the parameter that is missing + * @return a MHD result code + */ +int +TMH_RESPONSE_reply_arg_missing (struct MHD_Connection *connection, + const char *param_name); + +/** + * Send a response indicating an invalid argument. + * + * @param connection the MHD connection to use + * @param param_name the parameter that is invalid + * @return a MHD result code + */ +int +TMH_RESPONSE_reply_arg_invalid (struct MHD_Connection *connection, + const char *param_name); #endif |