diff options
author | Christian Grothoff <christian@grothoff.org> | 2020-01-17 20:42:24 +0100 |
---|---|---|
committer | Christian Grothoff <christian@grothoff.org> | 2020-01-17 20:42:24 +0100 |
commit | 90c411bc190126e3b2641e31d821233c83dcfecb (patch) | |
tree | 521b3d71b8585a5bc309fb4043443aec32ba1aba /src/include | |
parent | fad5a2268017c647d2b86b75ba28115345a550c4 (diff) | |
download | exchange-90c411bc190126e3b2641e31d821233c83dcfecb.tar.xz |
sort out URL types more nicely
Diffstat (limited to 'src/include')
-rw-r--r-- | src/include/taler_testing_lib.h | 27 |
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); |