From 7c2de4c5e6b7b1184d059057e1d412d6f0133816 Mon Sep 17 00:00:00 2001 From: MS Date: Mon, 27 Jul 2020 12:48:48 +0200 Subject: payto parser: extract 'subject' parameter. --- src/include/taler_util.h | 9 +++++++++ 1 file changed, 9 insertions(+) (limited to 'src/include/taler_util.h') diff --git a/src/include/taler_util.h b/src/include/taler_util.h index 22d7f7f2..1d1c01ea 100644 --- a/src/include/taler_util.h +++ b/src/include/taler_util.h @@ -297,6 +297,15 @@ TALER_payto_get_method (const char *payto_uri); char * TALER_xtalerbank_account_from_payto (const char *payto); +/** + * Extract the subject value from the URI parameters. + * + * @param payto_uri the URL to parse + * @return NULL if the subject parameter is not found. + * The caller should free the returned value. + */ +char * +TALER_payto_get_subject (const char *payto_uri); /** * Possible values for a binary filter. -- cgit v1.2.3