31#ifndef PROTOCORE_WEBHOOK_H
32#define PROTOCORE_WEBHOOK_H
36#if PROTOCORE_ENABLE_WEBHOOK
43 const char *target_uri;
87 WebhookRequestArgs request;
88 WebhookBuildArgs build;
89 WebhookIftttArgs ifttt;
95extern WebhookVars WebhookV;
100 void (*
const ifttt_url)(uint8_t *work);
101 void (*
const ifttt_payload)(uint8_t *work);
102 void (*
const post)(uint8_t *work);
103 void (*
const ifttt_trigger)(uint8_t *work);
108void protocore_webhook_ifttt_url(uint8_t *work);
109void protocore_webhook_ifttt_payload(uint8_t *work);
110void protocore_webhook_post(uint8_t *work);
111void protocore_webhook_ifttt_trigger(uint8_t *work);
117static const WebhookNs Webhook __attribute__((unused)) = {
118 .ifttt_url = protocore_webhook_ifttt_url,
119 .ifttt_payload = protocore_webhook_ifttt_payload,
120 .post = protocore_webhook_post,
121 .ifttt_trigger = protocore_webhook_ifttt_trigger,
#define PROTOCORE_BEGIN_DECLS
Give a header's declarations C linkage, so their symbol names carry no parameter types.
#define PROTOCORE_END_DECLS