From 67bc16d9ebb8d68851c34e18155b6648bce2c06a Mon Sep 17 00:00:00 2001 From: Christian Grothoff Date: Fri, 29 Jan 2016 11:39:45 +0100 Subject: [PATCH] update bank-lib to reflect API discussions --- src/bank-lib/bank_api_admin.c | 8 ++++---- src/include/taler_bank_service.h | 4 ++-- 2 files changed, 6 insertions(+), 6 deletions(-) diff --git a/src/bank-lib/bank_api_admin.c b/src/bank-lib/bank_api_admin.c index ed205eebb..bfcf16a23 100644 --- a/src/bank-lib/bank_api_admin.c +++ b/src/bank-lib/bank_api_admin.c @@ -150,7 +150,7 @@ handle_admin_add_incoming_finished (void *cls, * @param reserve_pub public key of the reserve * @param amount amount that was deposited * @param execution_date when did we receive the amount - * @param wire wire details + * @param account_no account number (53 bits at most) * @param res_cb the callback to call when the final result for this request is available * @param res_cb_cls closure for the above callback * @return NULL @@ -161,7 +161,7 @@ struct TALER_BANK_AdminAddIncomingHandle * TALER_BANK_admin_add_incoming (struct TALER_BANK_Context *bank, const struct TALER_WireTransferIdentifierRawP *wtid, const struct TALER_Amount *amount, - const json_t *wire, + uint64_t account_no, TALER_BANK_AdminAddIncomingResultCallback res_cb, void *res_cb_cls) { @@ -170,11 +170,11 @@ TALER_BANK_admin_add_incoming (struct TALER_BANK_Context *bank, CURL *eh; admin_obj = json_pack ("{s:o, s:o," /* reserve_pub/amount */ - " s:O}", /* execution_Date/wire */ + " s:I}", /* execution_Date/wire */ "wtid", TALER_json_from_data (wtid, sizeof (*wtid)), "amount", TALER_json_from_amount (amount), - "wire", wire); + "account", (json_int_t) account_no); aai = GNUNET_new (struct TALER_BANK_AdminAddIncomingHandle); aai->bank = bank; aai->cb = res_cb; diff --git a/src/include/taler_bank_service.h b/src/include/taler_bank_service.h index b292a7bcb..a4f33fc97 100644 --- a/src/include/taler_bank_service.h +++ b/src/include/taler_bank_service.h @@ -133,7 +133,7 @@ typedef void * @param reserve_pub public key of the reserve * @param amount amount that was deposited * @param execution_date when did we receive the amount - * @param wire wire details + * @param account_no account number (53 bits at most) * @param res_cb the callback to call when the final result for this request is available * @param res_cb_cls closure for the above callback * @return NULL @@ -144,7 +144,7 @@ struct TALER_BANK_AdminAddIncomingHandle * TALER_BANK_admin_add_incoming (struct TALER_BANK_Context *bank, const struct TALER_WireTransferIdentifierRawP *wtid, const struct TALER_Amount *amount, - const json_t *wire, + uint64_t account_no, TALER_BANK_AdminAddIncomingResultCallback res_cb, void *res_cb_cls);