diff options
author | Christian Grothoff <christian@grothoff.org> | 2015-01-28 15:19:06 +0100 |
---|---|---|
committer | Christian Grothoff <christian@grothoff.org> | 2015-01-28 15:19:06 +0100 |
commit | 7f171e69b27d48f02acd8c79e3a173a448be7ebd (patch) | |
tree | d9079cc827449cea754b667ae7337ff6c4a59219 /src/mint/taler-mint-httpd_responses.c | |
parent | c119d914b39305add86ef58e058e80ef7af20a40 (diff) |
more cleanup of mint.h
Diffstat (limited to 'src/mint/taler-mint-httpd_responses.c')
-rw-r--r-- | src/mint/taler-mint-httpd_responses.c | 15 |
1 files changed, 6 insertions, 9 deletions
diff --git a/src/mint/taler-mint-httpd_responses.c b/src/mint/taler-mint-httpd_responses.c index 432772d79..c8200b43a 100644 --- a/src/mint/taler-mint-httpd_responses.c +++ b/src/mint/taler-mint-httpd_responses.c @@ -275,12 +275,14 @@ TALER_MINT_reply_deposit_success (struct MHD_Connection *connection, * Send reserve status information to client. * * @param connection connection to the client - * @param reserve reserve status information to return + * @param balance current reserve balance + * @param expiration when will the reserve expire * @return MHD result code */ int TALER_MINT_reply_withdraw_status_success (struct MHD_Connection *connection, - const struct Reserve *reserve) + const struct TALER_Amount balance, + struct GNUNET_TIME_Absolute expiration) { json_t *json; @@ -289,15 +291,10 @@ TALER_MINT_reply_withdraw_status_success (struct MHD_Connection *connection, json = json_object (); json_object_set_new (json, "balance", - TALER_JSON_from_amount (TALER_amount_ntoh (reserve->balance))); + TALER_JSON_from_amount (balance)); json_object_set_new (json, "expiration", - TALER_JSON_from_abs (GNUNET_TIME_absolute_ntoh (reserve->expiration))); - json_object_set_new (json, - "signature", - TALER_JSON_from_sig (&reserve->status_sig_purpose, - &reserve->status_sig)); - + TALER_JSON_from_abs (expiration)); return TALER_MINT_reply_json (connection, json, MHD_HTTP_OK); |