From d37e4eabc4248a16b15363e57ca33882999ad9b1 Mon Sep 17 00:00:00 2001 From: Christian Grothoff Date: Tue, 20 Jul 2021 15:38:56 +0200 Subject: -use nicer enum --- src/include/taler_json_lib.h | 13 +++++++++++++ 1 file changed, 13 insertions(+) (limited to 'src/include/taler_json_lib.h') diff --git a/src/include/taler_json_lib.h b/src/include/taler_json_lib.h index aefc28061..a9829d4a0 100644 --- a/src/include/taler_json_lib.h +++ b/src/include/taler_json_lib.h @@ -334,6 +334,19 @@ TALER_JSON_exchange_wire_signature_check ( const struct TALER_MasterPublicKeyP *master_pub); +/** + * Validate payto:// account URL (only account information, + * wire subject and amount are ignored). + * + * @param payto_uri URL to parse + * @return #GNUNET_YES if @a payto_uri is a valid payto://iban URI + * #GNUNET_NO if @a payto_uri is a payto URI of an unsupported type (but may be valid) + * #GNUNET_SYSERR if the account incorrect or this is not a payto://-URI at all + */ +enum GNUNET_GenericReturnValue +TALER_JSON_validate_payto (const char *payto_uri); + + /** * Create a signed wire statement for the given account. * -- cgit v1.2.3