-skeleton for GET /contracts/ logic: add to build system

This commit is contained in:
Christian Grothoff 2022-04-11 18:58:54 +02:00
parent 6aad1fa351
commit 78cf27aaac
No known key found for this signature in database
GPG Key ID: 939E6BE1E29FC3CC
3 changed files with 8 additions and 7 deletions

View File

@ -4084,7 +4084,7 @@ struct TALER_EXCHANGE_ContractsGetHandle;
* @param cb_cls closure for @a cb * @param cb_cls closure for @a cb
* @return the request handle; NULL upon error * @return the request handle; NULL upon error
*/ */
struct TALER_EXCHANGE_ContractGetHandle * struct TALER_EXCHANGE_ContractsGetHandle *
TALER_EXCHANGE_contract_get ( TALER_EXCHANGE_contract_get (
struct TALER_EXCHANGE_Handle *exchange, struct TALER_EXCHANGE_Handle *exchange,
const struct TALER_ContractDiffiePrivateP *contract_priv, const struct TALER_ContractDiffiePrivateP *contract_priv,
@ -4099,7 +4099,7 @@ TALER_EXCHANGE_contract_get (
*/ */
void void
TALER_EXCHANGE_contract_get_cancel ( TALER_EXCHANGE_contract_get_cancel (
struct TALER_EXCHANGE_ContractGetHandle *cgh); struct TALER_EXCHANGE_ContractsGetHandle *cgh);
/** /**

View File

@ -24,6 +24,7 @@ libtalerexchange_la_SOURCES = \
exchange_api_auditor_add_denomination.c \ exchange_api_auditor_add_denomination.c \
exchange_api_curl_defaults.c exchange_api_curl_defaults.h \ exchange_api_curl_defaults.c exchange_api_curl_defaults.h \
exchange_api_common.c \ exchange_api_common.c \
exchange_api_contracts_get.c \
exchange_api_csr_melt.c \ exchange_api_csr_melt.c \
exchange_api_csr_withdraw.c \ exchange_api_csr_withdraw.c \
exchange_api_handle.c exchange_api_handle.h \ exchange_api_handle.c exchange_api_handle.h \

View File

@ -129,7 +129,7 @@ handle_contract_get_finished (void *cls,
cgh->cb (cgh->cb_cls, cgh->cb (cgh->cb_cls,
&dr); &dr);
GNUNET_JSON_parse_free (spec); GNUNET_JSON_parse_free (spec);
TALER_EXCHANGE_contracts_get_cancel (cgh); TALER_EXCHANGE_contract_get_cancel (cgh);
return; return;
} }
case MHD_HTTP_BAD_REQUEST: case MHD_HTTP_BAD_REQUEST:
@ -170,11 +170,11 @@ handle_contract_get_finished (void *cls,
} }
cgh->cb (cgh->cb_cls, cgh->cb (cgh->cb_cls,
&dr); &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 ( TALER_EXCHANGE_contract_get (
struct TALER_EXCHANGE_Handle *exchange, struct TALER_EXCHANGE_Handle *exchange,
const struct TALER_ContractDiffiePrivateP *contract_priv, const struct TALER_ContractDiffiePrivateP *contract_priv,
@ -239,8 +239,8 @@ TALER_EXCHANGE_contract_get (
void void
TALER_EXCHANGE_contracts_get_cancel (struct TALER_EXCHANGE_contract_get_cancel (
TALER_EXCHANGE_ContractsGetHandle *cgh) struct TALER_EXCHANGE_ContractsGetHandle *cgh)
{ {
if (NULL != cgh->job) if (NULL != cgh->job)
{ {