diff options
author | Marcello Stanisci <stanisci.m@gmail.com> | 2018-12-18 11:47:50 +0100 |
---|---|---|
committer | Marcello Stanisci <stanisci.m@gmail.com> | 2018-12-18 11:47:50 +0100 |
commit | 6bce2eb4247f1fe2922c58cf08bd08a936a244af (patch) | |
tree | 450f7fe980d15dc9a8af2cbf9726d4b22fcfddd8 /src/include | |
parent | a5d0452b2a46f875a1879b2e836d0d5e3ede6167 (diff) | |
download | merchant-6bce2eb4247f1fe2922c58cf08bd08a936a244af.tar.gz merchant-6bce2eb4247f1fe2922c58cf08bd08a936a244af.tar.bz2 merchant-6bce2eb4247f1fe2922c58cf08bd08a936a244af.zip |
/history API.
Provide the (client) API with a mean of omitting the 'start'
argument, therefore letting the server use the default.
Diffstat (limited to 'src/include')
-rw-r--r-- | src/include/taler_merchant_service.h | 22 |
1 files changed, 22 insertions, 0 deletions
diff --git a/src/include/taler_merchant_service.h b/src/include/taler_merchant_service.h index 9c7ca12c..30059639 100644 --- a/src/include/taler_merchant_service.h +++ b/src/include/taler_merchant_service.h @@ -781,6 +781,28 @@ TALER_MERCHANT_history (struct GNUNET_CURL_Context *ctx, TALER_MERCHANT_HistoryOperationCallback history_cb, void *history_cb_cls); +/** + * Issue a /history request to the backend. + * + * @param ctx execution context + * @param backend_url base URL of the merchant backend + * @param instance which merchant instance is performing this call + * @param start return `delta` records starting from position `start`. + * If given as zero, then no initial skip of `start` records is done. + * @param delta return `delta` records starting from position `start` + * @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 @a history_cb + * @return handle for this operation, NULL upon errors + */ +struct TALER_MERCHANT_HistoryOperation * +TALER_MERCHANT_history_default_start (struct GNUNET_CURL_Context *ctx, + const char *backend_url, + const char *instance, + long long delta, + struct GNUNET_TIME_Absolute date, + TALER_MERCHANT_HistoryOperationCallback history_cb, + void *history_cb_cls); /** |