summaryrefslogtreecommitdiff
path: root/src/include/taler_testing_lib.h
diff options
context:
space:
mode:
authorChristian Grothoff <christian@grothoff.org>2020-01-17 20:42:24 +0100
committerChristian Grothoff <christian@grothoff.org>2020-01-17 20:42:24 +0100
commit90c411bc190126e3b2641e31d821233c83dcfecb (patch)
tree521b3d71b8585a5bc309fb4043443aec32ba1aba /src/include/taler_testing_lib.h
parentfad5a2268017c647d2b86b75ba28115345a550c4 (diff)
downloadexchange-90c411bc190126e3b2641e31d821233c83dcfecb.tar.gz
exchange-90c411bc190126e3b2641e31d821233c83dcfecb.tar.bz2
exchange-90c411bc190126e3b2641e31d821233c83dcfecb.zip
sort out URL types more nicely
Diffstat (limited to 'src/include/taler_testing_lib.h')
-rw-r--r--src/include/taler_testing_lib.h27
1 files changed, 25 insertions, 2 deletions
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
@@ -2352,6 +2352,29 @@ TALER_TESTING_make_trait_wtid (unsigned int index,
/**
+ * 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.
*
* @param index which url is to be picked,
@@ -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);