Extend exchange-lib.

Adding simple function that returns the exchange's base URL.
This commit is contained in:
Marcello Stanisci 2018-12-06 18:13:10 +01:00
parent 7cab50b465
commit 81d1b39343
No known key found for this signature in database
GPG Key ID: 8D526861953F4C0F
2 changed files with 21 additions and 0 deletions

View File

@ -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.

View File

@ -459,6 +459,15 @@ TALER_EXCHANGE_test_signing_key (const struct TALER_EXCHANGE_Keys *keys,
const struct TALER_ExchangePublicKeyP *pub);
/**
* 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.
*