core-lightning/plugins/fetchinvoice.h
Rusty Russell d664d52342 plugins/offers: neaten fetchinvoice integration.
We already parse some fields, so hand them directly rather than
having fetchinvoice behave as if it's a raw hook.

Signed-off-by: Rusty Russell <rusty@rustcorp.com.au>
2024-07-17 10:57:11 +02:00

32 lines
931 B
C

#ifndef LIGHTNING_PLUGINS_FETCHINVOICE_H
#define LIGHTNING_PLUGINS_FETCHINVOICE_H
#include "config.h"
struct command_result;
struct command;
struct command_result *json_fetchinvoice(struct command *cmd,
const char *buffer,
const jsmntok_t *params);
struct command_result *json_sendinvoice(struct command *cmd,
const char *buffer,
const jsmntok_t *params);
struct command_result *json_dev_rawrequest(struct command *cmd,
const char *buffer,
const jsmntok_t *params);
/* Returns NULL if this wasn't one of ours. */
struct command_result *handle_invoice_onion_message(struct command *cmd,
const char *buf,
const jsmntok_t *om,
const struct secret *pathsecret);
/* invoice_payment hook */
struct command_result *invoice_payment(struct command *cmd,
const char *buf,
const jsmntok_t *params);
#endif /* LIGHTNING_PLUGINS_FETCHINVOICE_H */