-use nicer enum
This commit is contained in:
parent
5c569d3df7
commit
d37e4eabc4
@ -334,6 +334,19 @@ TALER_JSON_exchange_wire_signature_check (
|
|||||||
const struct TALER_MasterPublicKeyP *master_pub);
|
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.
|
* Create a signed wire statement for the given account.
|
||||||
*
|
*
|
||||||
|
@ -222,7 +222,7 @@ cmp_country_code (const void *ptr1,
|
|||||||
* @param iban the IBAN number to validate
|
* @param iban the IBAN number to validate
|
||||||
* @return #GNUNET_YES if correctly formatted; #GNUNET_NO if not
|
* @return #GNUNET_YES if correctly formatted; #GNUNET_NO if not
|
||||||
*/
|
*/
|
||||||
static int
|
static enum GNUNET_GenericReturnValue
|
||||||
validate_iban (const char *iban)
|
validate_iban (const char *iban)
|
||||||
{
|
{
|
||||||
char cc[2];
|
char cc[2];
|
||||||
@ -331,7 +331,7 @@ validate_iban (const char *iban)
|
|||||||
* #GNUNET_NO if @a account_url is a payto URI of a different type,
|
* #GNUNET_NO if @a account_url is a payto URI of a different type,
|
||||||
* #GNUNET_SYSERR if the IBAN (checksum) is incorrect or this is not a payto://-URI
|
* #GNUNET_SYSERR if the IBAN (checksum) is incorrect or this is not a payto://-URI
|
||||||
*/
|
*/
|
||||||
static int
|
static enum GNUNET_GenericReturnValue
|
||||||
validate_payto_iban (const char *account_url)
|
validate_payto_iban (const char *account_url)
|
||||||
{
|
{
|
||||||
const char *iban;
|
const char *iban;
|
||||||
|
Loading…
Reference in New Issue
Block a user