summaryrefslogtreecommitdiff
path: root/src/bank-lib
diff options
context:
space:
mode:
authorChristian Grothoff <christian@grothoff.org>2020-03-07 00:28:07 +0100
committerChristian Grothoff <christian@grothoff.org>2020-03-07 00:28:07 +0100
commitffcadbff8c678c495af05428de21761cf3956f3b (patch)
tree28587c91a063b2d97972bb7ba1eac0803580035b /src/bank-lib
parent82d7b63ff5c8fc86d5146333943eb4a03a2e6e08 (diff)
downloadexchange-ffcadbff8c678c495af05428de21761cf3956f3b.tar.gz
exchange-ffcadbff8c678c495af05428de21761cf3956f3b.tar.bz2
exchange-ffcadbff8c678c495af05428de21761cf3956f3b.zip
code cleanup (comments, scoping, naming, indentation)
Diffstat (limited to 'src/bank-lib')
-rw-r--r--src/bank-lib/bank_api_admin.c20
-rw-r--r--src/bank-lib/bank_api_transfer.c31
-rw-r--r--src/bank-lib/fakebank.c30
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 4208f442..6c92241d 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 3ff40eac..45bbb46e 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 dfe3ada8..dd8d3341 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;