From 90c411bc190126e3b2641e31d821233c83dcfecb Mon Sep 17 00:00:00 2001 From: Christian Grothoff Date: Fri, 17 Jan 2020 20:42:24 +0100 Subject: sort out URL types more nicely --- src/include/taler_testing_lib.h | 27 +++++++++++++++++++++++++-- 1 file changed, 25 insertions(+), 2 deletions(-) (limited to 'src/include/taler_testing_lib.h') diff --git a/src/include/taler_testing_lib.h b/src/include/taler_testing_lib.h index 7b286f94e..c52635508 100644 --- a/src/include/taler_testing_lib.h +++ b/src/include/taler_testing_lib.h @@ -2351,6 +2351,29 @@ TALER_TESTING_make_trait_wtid (unsigned int index, TALER_WireTransferIdentifierRawP *wtid); +/** + * Different types of URLs that appear in traits. + */ +enum TALER_TESTING_URL_Type +{ + /** + * Category of last resort. Should not be used. + */ + TALER_TESTING_UT_UNDEFINED = 0, + + /** + * HTTP base URL of an exchange (API), as for example + * given in wire transfers subjects made by the aggregator. + */ + TALER_TESTING_UT_EXCHANGE_BASE_URL = 1, + + /** + * HTTP URL of the exchange's bank account at the bank. + */ + TALER_TESTING_UT_EXCHANGE_BANK_ACCOUNT_URL = 2 +}; + + /** * Offer HTTP url in a trait. * @@ -2360,7 +2383,7 @@ TALER_TESTING_make_trait_wtid (unsigned int index, * @return the trait. */ struct TALER_TESTING_Trait -TALER_TESTING_make_trait_url (unsigned int index, +TALER_TESTING_make_trait_url (enum TALER_TESTING_URL_Type index, const char *url); @@ -2375,7 +2398,7 @@ TALER_TESTING_make_trait_url (unsigned int index, */ int TALER_TESTING_get_trait_url (const struct TALER_TESTING_Command *cmd, - unsigned int index, + enum TALER_TESTING_URL_Type index, const char **url); -- cgit v1.2.3