diff options
Diffstat (limited to 'src/backend/taler-merchant-httpd_get-tips-ID.h')
-rw-r--r-- | src/backend/taler-merchant-httpd_get-tips-ID.h | 27 |
1 files changed, 27 insertions, 0 deletions
diff --git a/src/backend/taler-merchant-httpd_get-tips-ID.h b/src/backend/taler-merchant-httpd_get-tips-ID.h index 6fa0253a..9ee73a6a 100644 --- a/src/backend/taler-merchant-httpd_get-tips-ID.h +++ b/src/backend/taler-merchant-httpd_get-tips-ID.h @@ -23,6 +23,33 @@ #include <microhttpd.h> #include "taler-merchant-httpd.h" +/** + * Create a taler://tip/ URI for the given @a con and @a tip_id + * and @a instance_id. + * + * @param con HTTP connection + * @param tip_id the tip id + * @param instance_id instance, may be "default" + * @return corresponding taler://tip/ URI, or NULL on missing "host" + */ +char * +TMH_make_taler_tip_uri (struct MHD_Connection *con, + const struct GNUNET_HashCode *tip_id, + const char *instance_id); + +/** + * Create a http(s):// URL for the given @a con and @a tip_id + * and @a instance_id. + * + * @param con HTTP connection + * @param tip_id the tip id + * @param instance_id instance, may be "default" + * @return corresponding taler://tip/ URI, or NULL on missing "host" + */ +char * +TMH_make_tip_status_url (struct MHD_Connection *con, + const struct GNUNET_HashCode *tip_id, + const char *instance_id); /** * Handle a GET "/tips/$ID" request. |