using legal lib names
This commit is contained in:
parent
5f6d706422
commit
67dd3171d0
@ -222,7 +222,7 @@ TALER_BANK_admin_add_incoming (struct GNUNET_CURL_Context *ctx,
|
||||
eh = curl_easy_init ();
|
||||
|
||||
GNUNET_assert (GNUNET_OK ==
|
||||
TEAH_curl_easy_post (&aai->post_ctx, eh, admin_obj));
|
||||
TALER_curl_easy_post (&aai->post_ctx, eh, admin_obj));
|
||||
|
||||
json_decref (admin_obj);
|
||||
|
||||
@ -254,7 +254,7 @@ TALER_BANK_admin_add_incoming_cancel (struct TALER_BANK_AdminAddIncomingHandle *
|
||||
GNUNET_CURL_job_cancel (aai->job);
|
||||
aai->job = NULL;
|
||||
}
|
||||
TEAH_curl_easy_post_finished (&aai->post_ctx);
|
||||
TALER_curl_easy_post_finished (&aai->post_ctx);
|
||||
GNUNET_free (aai->request_url);
|
||||
GNUNET_free (aai);
|
||||
}
|
||||
|
@ -60,7 +60,7 @@ struct TEAH_PostContext
|
||||
* @return #GNUNET_OK on success #GNUNET_SYSERR on failure
|
||||
*/
|
||||
int
|
||||
TEAH_curl_easy_post (struct TEAH_PostContext *ctx,
|
||||
TALER_curl_easy_post (struct TEAH_PostContext *ctx,
|
||||
CURL *eh,
|
||||
const json_t *body);
|
||||
|
||||
@ -71,7 +71,7 @@ TEAH_curl_easy_post (struct TEAH_PostContext *ctx,
|
||||
* @param ctx[in] a request context (updated)
|
||||
*/
|
||||
void
|
||||
TEAH_curl_easy_post_finished (struct TEAH_PostContext *ctx);
|
||||
TALER_curl_easy_post_finished (struct TEAH_PostContext *ctx);
|
||||
|
||||
|
||||
|
||||
|
@ -344,7 +344,7 @@ TALER_AUDITOR_deposit_confirmation (struct TALER_AUDITOR_Handle *auditor,
|
||||
CURLOPT_CUSTOMREQUEST,
|
||||
"PUT"));
|
||||
if (GNUNET_OK !=
|
||||
TEAH_curl_easy_post (&dh->ctx,
|
||||
TALER_curl_easy_post (&dh->ctx,
|
||||
eh,
|
||||
deposit_confirmation_obj))
|
||||
{
|
||||
@ -384,7 +384,7 @@ TALER_AUDITOR_deposit_confirmation_cancel (struct TALER_AUDITOR_DepositConfirmat
|
||||
deposit_confirmation->job = NULL;
|
||||
}
|
||||
GNUNET_free (deposit_confirmation->url);
|
||||
TEAH_curl_easy_post_finished (&deposit_confirmation->ctx);
|
||||
TALER_curl_easy_post_finished (&deposit_confirmation->ctx);
|
||||
GNUNET_free (deposit_confirmation);
|
||||
}
|
||||
|
||||
|
@ -583,7 +583,7 @@ TALER_EXCHANGE_deposit (struct TALER_EXCHANGE_Handle *exchange,
|
||||
|
||||
eh = TEL_curl_easy_get (dh->url);
|
||||
if (GNUNET_OK !=
|
||||
TEAH_curl_easy_post (&dh->ctx,
|
||||
TALER_curl_easy_post (&dh->ctx,
|
||||
eh,
|
||||
deposit_obj))
|
||||
{
|
||||
@ -623,7 +623,7 @@ TALER_EXCHANGE_deposit_cancel (struct TALER_EXCHANGE_DepositHandle *deposit)
|
||||
deposit->job = NULL;
|
||||
}
|
||||
GNUNET_free (deposit->url);
|
||||
TEAH_curl_easy_post_finished (&deposit->ctx);
|
||||
TALER_curl_easy_post_finished (&deposit->ctx);
|
||||
GNUNET_free (deposit);
|
||||
}
|
||||
|
||||
|
@ -324,7 +324,7 @@ TALER_EXCHANGE_payback (struct TALER_EXCHANGE_Handle *exchange,
|
||||
ph->url = TEAH_path_to_url (exchange, "/payback");
|
||||
eh = TEL_curl_easy_get (ph->url);
|
||||
if (GNUNET_OK !=
|
||||
TEAH_curl_easy_post (&ph->ctx,
|
||||
TALER_curl_easy_post (&ph->ctx,
|
||||
eh,
|
||||
payback_obj))
|
||||
{
|
||||
@ -364,7 +364,7 @@ TALER_EXCHANGE_payback_cancel (struct TALER_EXCHANGE_PaybackHandle *ph)
|
||||
ph->job = NULL;
|
||||
}
|
||||
GNUNET_free (ph->url);
|
||||
TEAH_curl_easy_post_finished (&ph->ctx);
|
||||
TALER_curl_easy_post_finished (&ph->ctx);
|
||||
GNUNET_free (ph);
|
||||
}
|
||||
|
||||
|
@ -1208,7 +1208,7 @@ TALER_EXCHANGE_refresh_melt (struct TALER_EXCHANGE_Handle *exchange,
|
||||
"/refresh/melt");
|
||||
eh = TEL_curl_easy_get (rmh->url);
|
||||
if (GNUNET_OK !=
|
||||
TEAH_curl_easy_post (&rmh->ctx,
|
||||
TALER_curl_easy_post (&rmh->ctx,
|
||||
eh,
|
||||
melt_obj))
|
||||
{
|
||||
@ -1247,7 +1247,7 @@ TALER_EXCHANGE_refresh_melt_cancel (struct TALER_EXCHANGE_RefreshMeltHandle *rmh
|
||||
free_melt_data (rmh->md); /* does not free 'md' itself */
|
||||
GNUNET_free (rmh->md);
|
||||
GNUNET_free (rmh->url);
|
||||
TEAH_curl_easy_post_finished (&rmh->ctx);
|
||||
TALER_curl_easy_post_finished (&rmh->ctx);
|
||||
GNUNET_free (rmh);
|
||||
}
|
||||
|
||||
@ -1638,7 +1638,7 @@ TALER_EXCHANGE_refresh_reveal (struct TALER_EXCHANGE_Handle *exchange,
|
||||
|
||||
eh = TEL_curl_easy_get (rrh->url);
|
||||
if (GNUNET_OK !=
|
||||
TEAH_curl_easy_post (&rrh->ctx,
|
||||
TALER_curl_easy_post (&rrh->ctx,
|
||||
eh,
|
||||
reveal_obj))
|
||||
{
|
||||
@ -1675,7 +1675,7 @@ TALER_EXCHANGE_refresh_reveal_cancel (struct TALER_EXCHANGE_RefreshRevealHandle
|
||||
rrh->job = NULL;
|
||||
}
|
||||
GNUNET_free (rrh->url);
|
||||
TEAH_curl_easy_post_finished (&rrh->ctx);
|
||||
TALER_curl_easy_post_finished (&rrh->ctx);
|
||||
free_melt_data (rrh->md); /* does not free 'md' itself */
|
||||
GNUNET_free (rrh->md);
|
||||
GNUNET_free (rrh);
|
||||
|
@ -370,7 +370,7 @@ refund_obj = json_pack ("{s:o, s:o," /* amount/fee */
|
||||
|
||||
eh = TEL_curl_easy_get (rh->url);
|
||||
if (GNUNET_OK !=
|
||||
TEAH_curl_easy_post (&rh->ctx,
|
||||
TALER_curl_easy_post (&rh->ctx,
|
||||
eh,
|
||||
refund_obj))
|
||||
{
|
||||
@ -410,7 +410,7 @@ TALER_EXCHANGE_refund_cancel (struct TALER_EXCHANGE_RefundHandle *refund)
|
||||
refund->job = NULL;
|
||||
}
|
||||
GNUNET_free (refund->url);
|
||||
TEAH_curl_easy_post_finished (&refund->ctx);
|
||||
TALER_curl_easy_post_finished (&refund->ctx);
|
||||
GNUNET_free (refund);
|
||||
}
|
||||
|
||||
|
@ -1031,7 +1031,7 @@ reserve_withdraw_internal (struct TALER_EXCHANGE_Handle *exchange,
|
||||
wsh->url = TEAH_path_to_url (exchange, "/reserve/withdraw");
|
||||
eh = TEL_curl_easy_get (wsh->url);
|
||||
if (GNUNET_OK !=
|
||||
TEAH_curl_easy_post (&wsh->ctx,
|
||||
TALER_curl_easy_post (&wsh->ctx,
|
||||
eh,
|
||||
withdraw_obj))
|
||||
{
|
||||
@ -1201,7 +1201,7 @@ TALER_EXCHANGE_reserve_withdraw_cancel (struct TALER_EXCHANGE_ReserveWithdrawHan
|
||||
sign->job = NULL;
|
||||
}
|
||||
GNUNET_free (sign->url);
|
||||
TEAH_curl_easy_post_finished (&sign->ctx);
|
||||
TALER_curl_easy_post_finished (&sign->ctx);
|
||||
GNUNET_free (sign);
|
||||
}
|
||||
|
||||
|
@ -324,7 +324,7 @@ TALER_EXCHANGE_track_transaction (struct TALER_EXCHANGE_Handle *exchange,
|
||||
|
||||
eh = TEL_curl_easy_get (dwh->url);
|
||||
if (GNUNET_OK !=
|
||||
TEAH_curl_easy_post (&dwh->ctx,
|
||||
TALER_curl_easy_post (&dwh->ctx,
|
||||
eh,
|
||||
deposit_wtid_obj))
|
||||
{
|
||||
@ -361,7 +361,7 @@ TALER_EXCHANGE_track_transaction_cancel (struct TALER_EXCHANGE_TrackTransactionH
|
||||
dwh->job = NULL;
|
||||
}
|
||||
GNUNET_free (dwh->url);
|
||||
TEAH_curl_easy_post_finished (&dwh->ctx);
|
||||
TALER_curl_easy_post_finished (&dwh->ctx);
|
||||
GNUNET_free (dwh);
|
||||
}
|
||||
|
||||
|
@ -40,7 +40,7 @@
|
||||
* @return #GNUNET_OK on success #GNUNET_SYSERR on failure
|
||||
*/
|
||||
int
|
||||
TEAH_curl_easy_post (struct TEAH_PostContext *ctx,
|
||||
TALER_curl_easy_post (struct TEAH_PostContext *ctx,
|
||||
CURL *eh,
|
||||
const json_t *body)
|
||||
{
|
||||
@ -109,7 +109,7 @@ TEAH_curl_easy_post (struct TEAH_PostContext *ctx,
|
||||
* @param ctx[in] a request context (updated)
|
||||
*/
|
||||
void
|
||||
TEAH_curl_easy_post_finished (struct TEAH_PostContext *ctx)
|
||||
TALER_curl_easy_post_finished (struct TEAH_PostContext *ctx)
|
||||
{
|
||||
GNUNET_free_non_null (ctx->json_enc);
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user