diff options
author | Marcello Stanisci <marcello.stanisci@inria.fr> | 2016-10-04 17:22:44 +0200 |
---|---|---|
committer | Marcello Stanisci <marcello.stanisci@inria.fr> | 2016-10-04 17:22:44 +0200 |
commit | abe9d0dcb703baee4bf70dbaf8810c31314cabea (patch) | |
tree | 561d492e9d0b1a53130771333420a12ea4184463 /src/include | |
parent | 0bf1860da1f91a1a6130f20d19b6f2aa9e996566 (diff) | |
download | merchant-abe9d0dcb703baee4bf70dbaf8810c31314cabea.tar.gz merchant-abe9d0dcb703baee4bf70dbaf8810c31314cabea.tar.bz2 merchant-abe9d0dcb703baee4bf70dbaf8810c31314cabea.zip |
adding stub for /history callback
Diffstat (limited to 'src/include')
-rw-r--r-- | src/include/taler_merchant_service.h | 13 |
1 files changed, 11 insertions, 2 deletions
diff --git a/src/include/taler_merchant_service.h b/src/include/taler_merchant_service.h index 787032e0..d5bc4ce7 100644 --- a/src/include/taler_merchant_service.h +++ b/src/include/taler_merchant_service.h @@ -486,16 +486,25 @@ struct TALER_MERCHANT_HistoryOperation; * @param http_status HTTP status returned by the merchant backend * @param json actual body containing history */ - typedef void (*TALER_MERCHANT_HistoryOperationCallback) (void *cls, unsigned int http_status, const json_t *json); - +/** + * Issue a /history request to the backend. + * + * @param ctx execution context + * @param backend_uri base URL of the merchant backend + * @param date only transactions younger than/equals to date will be returned + * @param history_cb callback which will work the response gotten from the backend + * @param history_cb_cls closure to pass to history_cb + * @return handle for this operation, NULL upon errors + */ struct TALER_MERCHANT_HistoryOperation * TALER_MERCHANT_history (struct GNUNET_CURL_Context *ctx, const char *backend_uri, + struct GNUNET_TIME_Absolute date, TALER_MERCHANT_HistoryOperationCallback history_cb, void *history_cb_cls); |