summaryrefslogtreecommitdiff
path: root/src/include
diff options
context:
space:
mode:
authorChristian Grothoff <christian@grothoff.org>2021-07-20 15:38:56 +0200
committerChristian Grothoff <christian@grothoff.org>2021-07-20 15:38:56 +0200
commitd37e4eabc4248a16b15363e57ca33882999ad9b1 (patch)
tree95c20e551de0163d58ef23ea920774dac017270b /src/include
parent5c569d3df7f49e2727858cd76ff84457c0888d7f (diff)
downloadexchange-d37e4eabc4248a16b15363e57ca33882999ad9b1.tar.gz
exchange-d37e4eabc4248a16b15363e57ca33882999ad9b1.tar.bz2
exchange-d37e4eabc4248a16b15363e57ca33882999ad9b1.zip
-use nicer enum
Diffstat (limited to 'src/include')
-rw-r--r--src/include/taler_json_lib.h13
1 files changed, 13 insertions, 0 deletions
diff --git a/src/include/taler_json_lib.h b/src/include/taler_json_lib.h
index aefc2806..a9829d4a 100644
--- a/src/include/taler_json_lib.h
+++ b/src/include/taler_json_lib.h
@@ -335,6 +335,19 @@ TALER_JSON_exchange_wire_signature_check (
/**
+ * 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.
*
* @param payto_uri account specification