Extend exchange-lib.
Adding simple function that returns the exchange's base URL.
This commit is contained in:
parent
7cab50b465
commit
81d1b39343
@ -1544,6 +1544,18 @@ TALER_EXCHANGE_test_signing_key (const struct TALER_EXCHANGE_Keys *keys,
|
|||||||
return GNUNET_SYSERR;
|
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.
|
* Obtain the denomination key details from the exchange.
|
||||||
|
@ -459,6 +459,15 @@ TALER_EXCHANGE_test_signing_key (const struct TALER_EXCHANGE_Keys *keys,
|
|||||||
const struct TALER_ExchangePublicKeyP *pub);
|
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.
|
* Obtain the denomination key details from the exchange.
|
||||||
*
|
*
|
||||||
|
Loading…
Reference in New Issue
Block a user