summaryrefslogtreecommitdiff
path: root/src/include/taler_util.h
diff options
context:
space:
mode:
authorChristian Grothoff <christian@grothoff.org>2020-01-14 15:57:36 +0100
committerChristian Grothoff <christian@grothoff.org>2020-01-14 15:57:36 +0100
commit2edee5ac4a4886e71db6e28314334cd24c6d3a55 (patch)
tree944c62dfd7dc9905a58e9888a2239403f4085cd6 /src/include/taler_util.h
parentcba9f8614efab7805d736ac795f8edb970c6a301 (diff)
downloadexchange-2edee5ac4a4886e71db6e28314334cd24c6d3a55.tar.gz
exchange-2edee5ac4a4886e71db6e28314334cd24c6d3a55.tar.bz2
exchange-2edee5ac4a4886e71db6e28314334cd24c6d3a55.zip
refactor uri parsing logic, prepare for unit test
Diffstat (limited to 'src/include/taler_util.h')
-rw-r--r--src/include/taler_util.h23
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