remove more redundant args
This commit is contained in:
parent
5d19229561
commit
8e0180b257
@ -1439,7 +1439,6 @@ process_debits (void *cls)
|
|||||||
wa->section_name);
|
wa->section_name);
|
||||||
GNUNET_assert (NULL == wa->dhh);
|
GNUNET_assert (NULL == wa->dhh);
|
||||||
wa->dhh = TALER_BANK_debit_history (ctx,
|
wa->dhh = TALER_BANK_debit_history (ctx,
|
||||||
wa->auth.wire_gateway_url,
|
|
||||||
&wa->auth,
|
&wa->auth,
|
||||||
wa->out_wire_off,
|
wa->out_wire_off,
|
||||||
INT64_MAX,
|
INT64_MAX,
|
||||||
@ -1848,7 +1847,6 @@ process_credits (void *cls)
|
|||||||
"Starting bank CREDIT history of account `%s'\n",
|
"Starting bank CREDIT history of account `%s'\n",
|
||||||
wa->section_name);
|
wa->section_name);
|
||||||
wa->chh = TALER_BANK_credit_history (ctx,
|
wa->chh = TALER_BANK_credit_history (ctx,
|
||||||
wa->auth.wire_gateway_url,
|
|
||||||
&wa->auth,
|
&wa->auth,
|
||||||
wa->in_wire_off,
|
wa->in_wire_off,
|
||||||
INT64_MAX,
|
INT64_MAX,
|
||||||
|
@ -218,7 +218,6 @@ handle_history_finished (void *cls,
|
|||||||
* Request the credit history of the exchange's bank account.
|
* Request the credit history of the exchange's bank account.
|
||||||
*
|
*
|
||||||
* @param ctx curl context for the event loop
|
* @param ctx curl context for the event loop
|
||||||
* @param bank_base_url URL of the base INCLUDING account number
|
|
||||||
* @param auth authentication data to use
|
* @param auth authentication data to use
|
||||||
* @param start_row from which row on do we want to get results,
|
* @param start_row from which row on do we want to get results,
|
||||||
* use UINT64_MAX for the latest; exclusive
|
* use UINT64_MAX for the latest; exclusive
|
||||||
@ -235,7 +234,6 @@ handle_history_finished (void *cls,
|
|||||||
*/
|
*/
|
||||||
struct TALER_BANK_CreditHistoryHandle *
|
struct TALER_BANK_CreditHistoryHandle *
|
||||||
TALER_BANK_credit_history (struct GNUNET_CURL_Context *ctx,
|
TALER_BANK_credit_history (struct GNUNET_CURL_Context *ctx,
|
||||||
const char *bank_base_url,
|
|
||||||
const struct TALER_BANK_AuthenticationData *auth,
|
const struct TALER_BANK_AuthenticationData *auth,
|
||||||
uint64_t start_row,
|
uint64_t start_row,
|
||||||
int64_t num_results,
|
int64_t num_results,
|
||||||
@ -267,7 +265,7 @@ TALER_BANK_credit_history (struct GNUNET_CURL_Context *ctx,
|
|||||||
hh = GNUNET_new (struct TALER_BANK_CreditHistoryHandle);
|
hh = GNUNET_new (struct TALER_BANK_CreditHistoryHandle);
|
||||||
hh->hcb = hres_cb;
|
hh->hcb = hres_cb;
|
||||||
hh->hcb_cls = hres_cb_cls;
|
hh->hcb_cls = hres_cb_cls;
|
||||||
hh->request_url = TALER_url_join (bank_base_url,
|
hh->request_url = TALER_url_join (auth->wire_gateway_url,
|
||||||
url,
|
url,
|
||||||
NULL);
|
NULL);
|
||||||
GNUNET_free (url);
|
GNUNET_free (url);
|
||||||
@ -277,7 +275,7 @@ TALER_BANK_credit_history (struct GNUNET_CURL_Context *ctx,
|
|||||||
GNUNET_break (0);
|
GNUNET_break (0);
|
||||||
return NULL;
|
return NULL;
|
||||||
}
|
}
|
||||||
hh->bank_base_url = GNUNET_strdup (bank_base_url);
|
hh->bank_base_url = GNUNET_strdup (auth->wire_gateway_url);
|
||||||
GNUNET_log (GNUNET_ERROR_TYPE_INFO,
|
GNUNET_log (GNUNET_ERROR_TYPE_INFO,
|
||||||
"Requesting history at `%s'\n",
|
"Requesting history at `%s'\n",
|
||||||
hh->request_url);
|
hh->request_url);
|
||||||
|
@ -215,7 +215,6 @@ handle_history_finished (void *cls,
|
|||||||
* Request the debit history of the exchange's bank account.
|
* Request the debit history of the exchange's bank account.
|
||||||
*
|
*
|
||||||
* @param ctx curl context for the event loop
|
* @param ctx curl context for the event loop
|
||||||
* @param account_base_url URL of the base INCLUDING account number
|
|
||||||
* @param auth authentication data to use
|
* @param auth authentication data to use
|
||||||
* @param start_row from which row on do we want to get results,
|
* @param start_row from which row on do we want to get results,
|
||||||
* use UINT64_MAX for the latest; exclusive
|
* use UINT64_MAX for the latest; exclusive
|
||||||
@ -232,7 +231,6 @@ handle_history_finished (void *cls,
|
|||||||
*/
|
*/
|
||||||
struct TALER_BANK_DebitHistoryHandle *
|
struct TALER_BANK_DebitHistoryHandle *
|
||||||
TALER_BANK_debit_history (struct GNUNET_CURL_Context *ctx,
|
TALER_BANK_debit_history (struct GNUNET_CURL_Context *ctx,
|
||||||
const char *account_base_url,
|
|
||||||
const struct TALER_BANK_AuthenticationData *auth,
|
const struct TALER_BANK_AuthenticationData *auth,
|
||||||
uint64_t start_row,
|
uint64_t start_row,
|
||||||
int64_t num_results,
|
int64_t num_results,
|
||||||
@ -264,7 +262,7 @@ TALER_BANK_debit_history (struct GNUNET_CURL_Context *ctx,
|
|||||||
hh = GNUNET_new (struct TALER_BANK_DebitHistoryHandle);
|
hh = GNUNET_new (struct TALER_BANK_DebitHistoryHandle);
|
||||||
hh->hcb = hres_cb;
|
hh->hcb = hres_cb;
|
||||||
hh->hcb_cls = hres_cb_cls;
|
hh->hcb_cls = hres_cb_cls;
|
||||||
hh->request_url = TALER_url_join (account_base_url,
|
hh->request_url = TALER_url_join (auth->wire_gateway_url,
|
||||||
url,
|
url,
|
||||||
NULL);
|
NULL);
|
||||||
GNUNET_free (url);
|
GNUNET_free (url);
|
||||||
|
@ -232,7 +232,6 @@ static void
|
|||||||
execute_history ()
|
execute_history ()
|
||||||
{
|
{
|
||||||
hh = TALER_BANK_credit_history (ctx,
|
hh = TALER_BANK_credit_history (ctx,
|
||||||
destination_account_url,
|
|
||||||
&auth,
|
&auth,
|
||||||
start_row,
|
start_row,
|
||||||
-10,
|
-10,
|
||||||
|
@ -524,7 +524,6 @@ find_transfers (void *cls)
|
|||||||
wa_pos->auth.wire_gateway_url);
|
wa_pos->auth.wire_gateway_url);
|
||||||
|
|
||||||
hh = TALER_BANK_credit_history (ctx,
|
hh = TALER_BANK_credit_history (ctx,
|
||||||
wa_pos->auth.wire_gateway_url,
|
|
||||||
&wa_pos->auth,
|
&wa_pos->auth,
|
||||||
last_row_off,
|
last_row_off,
|
||||||
batch_size,
|
batch_size,
|
||||||
|
@ -165,7 +165,7 @@ TALER_BANK_admin_add_incoming_cancel (struct
|
|||||||
/**
|
/**
|
||||||
* Prepare for exeuction of a wire transfer.
|
* Prepare for exeuction of a wire transfer.
|
||||||
*
|
*
|
||||||
* @param destination_account_url payto:// URL identifying where to send the money
|
* @param destination_account_uri payto:// URL identifying where to send the money
|
||||||
* @param amount amount to transfer, already rounded
|
* @param amount amount to transfer, already rounded
|
||||||
* @param exchange_base_url base URL of this exchange (included in subject
|
* @param exchange_base_url base URL of this exchange (included in subject
|
||||||
* to facilitate use of tracking API by merchant backend)
|
* to facilitate use of tracking API by merchant backend)
|
||||||
@ -315,7 +315,6 @@ typedef int
|
|||||||
* Request the wire credit history of an exchange's bank account.
|
* Request the wire credit history of an exchange's bank account.
|
||||||
*
|
*
|
||||||
* @param ctx curl context for the event loop
|
* @param ctx curl context for the event loop
|
||||||
* @param account_base_url URL of the base INCLUDING account number
|
|
||||||
* @param auth authentication data to use
|
* @param auth authentication data to use
|
||||||
* @param start_row from which row on do we want to get results, use UINT64_MAX for the latest; exclusive
|
* @param start_row from which row on do we want to get results, use UINT64_MAX for the latest; exclusive
|
||||||
* @param num_results how many results do we want; negative numbers to go into the past,
|
* @param num_results how many results do we want; negative numbers to go into the past,
|
||||||
@ -329,7 +328,6 @@ typedef int
|
|||||||
*/
|
*/
|
||||||
struct TALER_BANK_CreditHistoryHandle *
|
struct TALER_BANK_CreditHistoryHandle *
|
||||||
TALER_BANK_credit_history (struct GNUNET_CURL_Context *ctx,
|
TALER_BANK_credit_history (struct GNUNET_CURL_Context *ctx,
|
||||||
const char *account_base_url,
|
|
||||||
const struct TALER_BANK_AuthenticationData *auth,
|
const struct TALER_BANK_AuthenticationData *auth,
|
||||||
uint64_t start_row,
|
uint64_t start_row,
|
||||||
int64_t num_results,
|
int64_t num_results,
|
||||||
@ -442,7 +440,6 @@ typedef int
|
|||||||
*/
|
*/
|
||||||
struct TALER_BANK_DebitHistoryHandle *
|
struct TALER_BANK_DebitHistoryHandle *
|
||||||
TALER_BANK_debit_history (struct GNUNET_CURL_Context *ctx,
|
TALER_BANK_debit_history (struct GNUNET_CURL_Context *ctx,
|
||||||
const char *bank_base_url,
|
|
||||||
const struct TALER_BANK_AuthenticationData *auth,
|
const struct TALER_BANK_AuthenticationData *auth,
|
||||||
uint64_t start_row,
|
uint64_t start_row,
|
||||||
int64_t num_results,
|
int64_t num_results,
|
||||||
|
@ -523,7 +523,6 @@ history_run (void *cls,
|
|||||||
hs->total = build_history (is,
|
hs->total = build_history (is,
|
||||||
&hs->h);
|
&hs->h);
|
||||||
hs->hh = TALER_BANK_credit_history (is->ctx,
|
hs->hh = TALER_BANK_credit_history (is->ctx,
|
||||||
hs->account_url,
|
|
||||||
&hs->auth,
|
&hs->auth,
|
||||||
row_id,
|
row_id,
|
||||||
hs->num_results,
|
hs->num_results,
|
||||||
|
@ -523,7 +523,6 @@ history_run (void *cls,
|
|||||||
}
|
}
|
||||||
hs->total = build_history (is, &hs->h);
|
hs->total = build_history (is, &hs->h);
|
||||||
hs->hh = TALER_BANK_debit_history (is->ctx,
|
hs->hh = TALER_BANK_debit_history (is->ctx,
|
||||||
hs->account_url,
|
|
||||||
&hs->auth,
|
&hs->auth,
|
||||||
row_id,
|
row_id,
|
||||||
hs->num_results,
|
hs->num_results,
|
||||||
|
Loading…
Reference in New Issue
Block a user