2024-07-17 12:53:00 +09:30
|
|
|
#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);
|
|
|
|
|
2024-07-17 12:53:24 +09:30
|
|
|
/* 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 */
|
2024-07-17 12:53:00 +09:30
|
|
|
struct command_result *invoice_payment(struct command *cmd,
|
|
|
|
const char *buf,
|
|
|
|
const jsmntok_t *params);
|
|
|
|
|
|
|
|
#endif /* LIGHTNING_PLUGINS_FETCHINVOICE_H */
|