diff options
-rw-r--r-- | src/exchange-lib/exchange_api_handle.c | 12 | ||||
-rw-r--r-- | src/include/taler_exchange_service.h | 9 |
2 files changed, 21 insertions, 0 deletions
diff --git a/src/exchange-lib/exchange_api_handle.c b/src/exchange-lib/exchange_api_handle.c index 21c583ec7..627d7a6ed 100644 --- a/src/exchange-lib/exchange_api_handle.c +++ b/src/exchange-lib/exchange_api_handle.c @@ -1544,6 +1544,18 @@ TALER_EXCHANGE_test_signing_key (const struct TALER_EXCHANGE_Keys *keys, return GNUNET_SYSERR; } +/** + * Get exchange's base URL. + * + * @param exchange exchange handle. + * @return the base URL from the handle. + */ +const char * +TALER_EXCHANGE_get_base_url (const struct TALER_EXCHANGE_Handle *exchange) +{ + return exchange->url; +} + /** * Obtain the denomination key details from the exchange. diff --git a/src/include/taler_exchange_service.h b/src/include/taler_exchange_service.h index 351bbcd2b..bf089e6cb 100644 --- a/src/include/taler_exchange_service.h +++ b/src/include/taler_exchange_service.h @@ -460,6 +460,15 @@ TALER_EXCHANGE_test_signing_key (const struct TALER_EXCHANGE_Keys *keys, /** + * Get exchange's base URL. + * + * @param exchange exchange handle. + * @return the base URL from the handle. + */ +const char * +TALER_EXCHANGE_get_base_url (const struct TALER_EXCHANGE_Handle *exchange); + +/** * Obtain the denomination key details from the exchange. * * @param keys the exchange's key set |