diff options
author | Christian Grothoff <christian@grothoff.org> | 2020-03-07 00:28:07 +0100 |
---|---|---|
committer | Christian Grothoff <christian@grothoff.org> | 2020-03-07 00:28:07 +0100 |
commit | ffcadbff8c678c495af05428de21761cf3956f3b (patch) | |
tree | 28587c91a063b2d97972bb7ba1eac0803580035b /src/bank-lib | |
parent | 82d7b63ff5c8fc86d5146333943eb4a03a2e6e08 (diff) |
code cleanup (comments, scoping, naming, indentation)
Diffstat (limited to 'src/bank-lib')
-rw-r--r-- | src/bank-lib/bank_api_admin.c | 20 | ||||
-rw-r--r-- | src/bank-lib/bank_api_transfer.c | 31 | ||||
-rw-r--r-- | src/bank-lib/fakebank.c | 30 |
3 files changed, 40 insertions, 41 deletions
diff --git a/src/bank-lib/bank_api_admin.c b/src/bank-lib/bank_api_admin.c index 4208f442a..6c92241dd 100644 --- a/src/bank-lib/bank_api_admin.c +++ b/src/bank-lib/bank_api_admin.c @@ -172,14 +172,14 @@ handle_admin_add_incoming_finished (void *cls, * In this case, the callback is not called. */ struct TALER_BANK_AdminAddIncomingHandle * -TALER_BANK_admin_add_incoming (struct GNUNET_CURL_Context *ctx, - const struct TALER_BANK_AuthenticationData *auth, - const struct - TALER_ReservePublicKeyP *reserve_pub, - const struct TALER_Amount *amount, - const char *debit_account, - TALER_BANK_AdminAddIncomingCallback res_cb, - void *res_cb_cls) +TALER_BANK_admin_add_incoming ( + struct GNUNET_CURL_Context *ctx, + const struct TALER_BANK_AuthenticationData *auth, + const struct TALER_ReservePublicKeyP *reserve_pub, + const struct TALER_Amount *amount, + const char *debit_account, + TALER_BANK_AdminAddIncomingCallback res_cb, + void *res_cb_cls) { struct TALER_BANK_AdminAddIncomingHandle *aai; json_t *admin_obj; @@ -257,8 +257,8 @@ TALER_BANK_admin_add_incoming (struct GNUNET_CURL_Context *ctx, * @param aai the admin add incoming request handle */ void -TALER_BANK_admin_add_incoming_cancel (struct - TALER_BANK_AdminAddIncomingHandle *aai) +TALER_BANK_admin_add_incoming_cancel ( + struct TALER_BANK_AdminAddIncomingHandle *aai) { if (NULL != aai->job) { diff --git a/src/bank-lib/bank_api_transfer.c b/src/bank-lib/bank_api_transfer.c index 3ff40eace..45bbb46ee 100644 --- a/src/bank-lib/bank_api_transfer.c +++ b/src/bank-lib/bank_api_transfer.c @@ -78,13 +78,13 @@ GNUNET_NETWORK_STRUCT_END * @param[out] buf_size set to number of bytes in @a buf, 0 on error */ void -TALER_BANK_prepare_transfer (const char *destination_account_payto_uri, - const struct TALER_Amount *amount, - const char *exchange_base_url, - const struct - TALER_WireTransferIdentifierRawP *wtid, - void **buf, - size_t *buf_size) +TALER_BANK_prepare_transfer ( + const char *destination_account_payto_uri, + const struct TALER_Amount *amount, + const char *exchange_base_url, + const struct TALER_WireTransferIdentifierRawP *wtid, + void **buf, + size_t *buf_size) { struct WirePackP *wp; size_t d_len = strlen (destination_account_payto_uri) + 1; @@ -259,13 +259,13 @@ handle_transfer_finished (void *cls, * @return NULL on error */ struct TALER_BANK_TransferHandle * -TALER_BANK_transfer (struct GNUNET_CURL_Context *ctx, - const struct - TALER_BANK_AuthenticationData *auth, - const void *buf, - size_t buf_size, - TALER_BANK_TransferCallback cc, - void *cc_cls) +TALER_BANK_transfer ( + struct GNUNET_CURL_Context *ctx, + const struct TALER_BANK_AuthenticationData *auth, + const void *buf, + size_t buf_size, + TALER_BANK_TransferCallback cc, + void *cc_cls) { struct TALER_BANK_TransferHandle *th; json_t *transfer_obj; @@ -376,8 +376,7 @@ TALER_BANK_transfer (struct GNUNET_CURL_Context *ctx, * @param th the wire transfer request handle */ void -TALER_BANK_transfer_cancel (struct - TALER_BANK_TransferHandle *th) +TALER_BANK_transfer_cancel (struct TALER_BANK_TransferHandle *th) { if (NULL != th->job) { diff --git a/src/bank-lib/fakebank.c b/src/bank-lib/fakebank.c index dfe3ada89..dd8d3341c 100644 --- a/src/bank-lib/fakebank.c +++ b/src/bank-lib/fakebank.c @@ -348,15 +348,15 @@ TALER_FAKEBANK_check_credit (struct TALER_FAKEBANK_Handle *h, * #GNUNET_SYSERR if the request_uid was reused for a different transfer */ int -TALER_FAKEBANK_make_transfer (struct TALER_FAKEBANK_Handle *h, - const char *debit_account, - const char *credit_account, - const struct TALER_Amount *amount, - const struct - TALER_WireTransferIdentifierRawP *subject, - const char *exchange_base_url, - const struct GNUNET_HashCode *request_uid, - uint64_t *ret_row_id) +TALER_FAKEBANK_make_transfer ( + struct TALER_FAKEBANK_Handle *h, + const char *debit_account, + const char *credit_account, + const struct TALER_Amount *amount, + const struct TALER_WireTransferIdentifierRawP *subject, + const char *exchange_base_url, + const struct GNUNET_HashCode *request_uid, + uint64_t *ret_row_id) { struct Transaction *t; @@ -433,12 +433,12 @@ TALER_FAKEBANK_make_transfer (struct TALER_FAKEBANK_Handle *h, * @return serial_id of the transfer */ uint64_t -TALER_FAKEBANK_make_admin_transfer (struct TALER_FAKEBANK_Handle *h, - const char *debit_account, - const char *credit_account, - const struct TALER_Amount *amount, - const struct - TALER_ReservePublicKeyP *reserve_pub) +TALER_FAKEBANK_make_admin_transfer ( + struct TALER_FAKEBANK_Handle *h, + const char *debit_account, + const char *credit_account, + const struct TALER_Amount *amount, + const struct TALER_ReservePublicKeyP *reserve_pub) { struct Transaction *t; |