From 78cf27aaac2bb93d34c2418ccfad8f8eda364886 Mon Sep 17 00:00:00 2001 From: Christian Grothoff Date: Mon, 11 Apr 2022 18:58:54 +0200 Subject: [PATCH] -skeleton for GET /contracts/ logic: add to build system --- src/include/taler_exchange_service.h | 4 ++-- src/lib/Makefile.am | 1 + src/lib/exchange_api_contracts_get.c | 10 +++++----- 3 files changed, 8 insertions(+), 7 deletions(-) diff --git a/src/include/taler_exchange_service.h b/src/include/taler_exchange_service.h index 4cdd0c33a..e51473222 100644 --- a/src/include/taler_exchange_service.h +++ b/src/include/taler_exchange_service.h @@ -4084,7 +4084,7 @@ struct TALER_EXCHANGE_ContractsGetHandle; * @param cb_cls closure for @a cb * @return the request handle; NULL upon error */ -struct TALER_EXCHANGE_ContractGetHandle * +struct TALER_EXCHANGE_ContractsGetHandle * TALER_EXCHANGE_contract_get ( struct TALER_EXCHANGE_Handle *exchange, const struct TALER_ContractDiffiePrivateP *contract_priv, @@ -4099,7 +4099,7 @@ TALER_EXCHANGE_contract_get ( */ void TALER_EXCHANGE_contract_get_cancel ( - struct TALER_EXCHANGE_ContractGetHandle *cgh); + struct TALER_EXCHANGE_ContractsGetHandle *cgh); /** diff --git a/src/lib/Makefile.am b/src/lib/Makefile.am index f82a58129..3a8dc0573 100644 --- a/src/lib/Makefile.am +++ b/src/lib/Makefile.am @@ -24,6 +24,7 @@ libtalerexchange_la_SOURCES = \ exchange_api_auditor_add_denomination.c \ exchange_api_curl_defaults.c exchange_api_curl_defaults.h \ exchange_api_common.c \ + exchange_api_contracts_get.c \ exchange_api_csr_melt.c \ exchange_api_csr_withdraw.c \ exchange_api_handle.c exchange_api_handle.h \ diff --git a/src/lib/exchange_api_contracts_get.c b/src/lib/exchange_api_contracts_get.c index ba5ddc5bd..3e7d960a1 100644 --- a/src/lib/exchange_api_contracts_get.c +++ b/src/lib/exchange_api_contracts_get.c @@ -129,7 +129,7 @@ handle_contract_get_finished (void *cls, cgh->cb (cgh->cb_cls, &dr); GNUNET_JSON_parse_free (spec); - TALER_EXCHANGE_contracts_get_cancel (cgh); + TALER_EXCHANGE_contract_get_cancel (cgh); return; } case MHD_HTTP_BAD_REQUEST: @@ -170,11 +170,11 @@ handle_contract_get_finished (void *cls, } cgh->cb (cgh->cb_cls, &dr); - TALER_EXCHANGE_contracts_get_cancel (cgh); + TALER_EXCHANGE_contract_get_cancel (cgh); } -struct TALER_EXCHANGE_ContractGetHandle * +struct TALER_EXCHANGE_ContractsGetHandle * TALER_EXCHANGE_contract_get ( struct TALER_EXCHANGE_Handle *exchange, const struct TALER_ContractDiffiePrivateP *contract_priv, @@ -239,8 +239,8 @@ TALER_EXCHANGE_contract_get ( void -TALER_EXCHANGE_contracts_get_cancel (struct - TALER_EXCHANGE_ContractsGetHandle *cgh) +TALER_EXCHANGE_contract_get_cancel ( + struct TALER_EXCHANGE_ContractsGetHandle *cgh) { if (NULL != cgh->job) {