diff options
author | Christian Grothoff <christian@grothoff.org> | 2018-10-24 11:56:51 +0200 |
---|---|---|
committer | Christian Grothoff <christian@grothoff.org> | 2018-10-24 11:56:51 +0200 |
commit | 69a8c16e58cae90ecfde6fddc1e110db539a6664 (patch) | |
tree | a2fbbc7a2fb1879bbe06ff85a63b1f92737d5194 /src/include | |
parent | d83c840d256f93e603ea1e9d3aaf646f957eb841 (diff) | |
download | exchange-69a8c16e58cae90ecfde6fddc1e110db539a6664.tar.xz |
finish first implementation of /version API call for the auditor
Diffstat (limited to 'src/include')
-rw-r--r-- | src/include/taler_auditor_service.h | 33 |
1 files changed, 32 insertions, 1 deletions
diff --git a/src/include/taler_auditor_service.h b/src/include/taler_auditor_service.h index a26ecb6f7..79b131a0f 100644 --- a/src/include/taler_auditor_service.h +++ b/src/include/taler_auditor_service.h @@ -136,7 +136,7 @@ struct TALER_AUDITOR_Handle; * * @param ctx the context * @param url HTTP base URL for the auditor - * @param version_cb function to call with the auditor's versionification information + * @param version_cb function to call with the auditor's version information * @param version_cb_cls closure for @a version_cb * @return the auditor handle; NULL upon error */ @@ -156,4 +156,35 @@ void TALER_AUDITOR_disconnect (struct TALER_AUDITOR_Handle *auditor); +/** + * @brief A DepositConfirmation Handle + */ +struct TALER_AUDITOR_DepositConfirmationHandle; + + +/** + * Signature of functions called with the result from our call to the + * auditor's /deposit-confirmation handler. + * + * @param cls closure + * @param http_status HTTP status code, 200 on success + * @param ec taler protocol error status code, 0 on success + * @param json raw json response + */ +typedef void +(*TALER_AUDITOR_DepositConfirmationResultCallback)(void *cls, + unsigned int http_status, + enum TALER_ErrorCode ec, + const json_t *json); + + +/** + * Cancel a deposit-confirmation permission request. This function cannot be used + * on a request handle if a response is already served for it. + * + * @param deposit-confirmation the deposit-confirmation permission request handle + */ +void +TALER_AUDITOR_deposit_confirmation_cancel (struct TALER_AUDITOR_DepositConfirmationHandle *deposit_confirmation); + #endif /* _TALER_AUDITOR_SERVICE_H */ |