diff options
author | Christian Grothoff <christian@grothoff.org> | 2023-01-23 14:22:43 +0100 |
---|---|---|
committer | Christian Grothoff <christian@grothoff.org> | 2023-01-23 14:22:43 +0100 |
commit | 03ce25438c251820ff556c66f11b22659f7a896f (patch) | |
tree | 40dd5ae0269152d592c88461ad1c7d71541e19f7 /src/backend/taler-merchant-webhook.c | |
parent | 8746dc804009b7312ac0077eef869024c453be5e (diff) |
webhook sketch
Diffstat (limited to 'src/backend/taler-merchant-webhook.c')
-rw-r--r-- | src/backend/taler-merchant-webhook.c | 24 |
1 files changed, 22 insertions, 2 deletions
diff --git a/src/backend/taler-merchant-webhook.c b/src/backend/taler-merchant-webhook.c index f9aea28b..7df1ad8e 100644 --- a/src/backend/taler-merchant-webhook.c +++ b/src/backend/taler-merchant-webhook.c @@ -117,8 +117,28 @@ handle_webhook_response (void *cls) } -void -cb () +/** + * Typically called by `lookup_pending_webhooks`. + * + * @param cls a `json_t *` JSON array to build + * @param webhook_serial reference to the configured webhook template. + * @param next_attempt is the time we should make the next request to the webhook. + * @param retries how often have we tried this request to the webhook. + * @param url to make request to + * @param http_method use for the webhook + * @param header of the webhook + * @param body of the webhook + */ +static void +cb (void *cls, + uint64_t webhook_serial, + struct GNUNET_TIME_Absolute + next_attempt, + uint32_t retries, + const char *url, + const char *http_method, + const char *header, + const char *body) { CURL *eh; |