diff options
author | Christian Grothoff <christian@grothoff.org> | 2020-01-14 15:57:36 +0100 |
---|---|---|
committer | Christian Grothoff <christian@grothoff.org> | 2020-01-14 15:57:36 +0100 |
commit | 2edee5ac4a4886e71db6e28314334cd24c6d3a55 (patch) | |
tree | 944c62dfd7dc9905a58e9888a2239403f4085cd6 /src/include | |
parent | cba9f8614efab7805d736ac795f8edb970c6a301 (diff) |
refactor uri parsing logic, prepare for unit test
Diffstat (limited to 'src/include')
-rw-r--r-- | src/include/taler_util.h | 23 |
1 files changed, 23 insertions, 0 deletions
diff --git a/src/include/taler_util.h b/src/include/taler_util.h index b6fed3f12..48c10048e 100644 --- a/src/include/taler_util.h +++ b/src/include/taler_util.h @@ -403,4 +403,27 @@ char * TALER_payto_xtalerbank_make (const char *bank_url, const char *account_name); + +/** + * Given an x-taler-bank payto:// URL, compute + * the HTTP(S) base URL of the account. + * + * @param payto the payto URL + * @return bank URL of the account, NULL if not x-taler-bak payto URL + */ +char * +TALER_xtalerbank_base_url_from_payto (const char *payto); + + +/** + * Given an x-taler-bank payto:// URL, compute + * the HTTP(S) base URL of the account. + * + * @param payto the payto URL + * @return bank URL of the account, NULL if not x-taler-bak payto URL + */ +char * +TALER_xtalerbank_account_url_from_payto (const char *payto); + + #endif |