From 81d1b39343d98f7f5e8bdc501d79a31d418a365c Mon Sep 17 00:00:00 2001 From: Marcello Stanisci Date: Thu, 6 Dec 2018 18:13:10 +0100 Subject: Extend exchange-lib. Adding simple function that returns the exchange's base URL. --- src/exchange-lib/exchange_api_handle.c | 12 ++++++++++++ 1 file changed, 12 insertions(+) (limited to 'src/exchange-lib') 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. -- cgit v1.2.3