2021-01-07 19:36:47 +01:00
|
|
|
#ifndef LIGHTNING_PLUGINS_OFFERS_INV_HOOK_H
|
|
|
|
#define LIGHTNING_PLUGINS_OFFERS_INV_HOOK_H
|
|
|
|
#include "config.h"
|
|
|
|
#include <plugins/libplugin.h>
|
|
|
|
|
2021-11-30 04:06:04 +01:00
|
|
|
/* We got an onionmessage with an invoice! reply_path could be NULL. */
|
2021-01-07 19:36:47 +01:00
|
|
|
struct command_result *handle_invoice(struct command *cmd,
|
2021-11-30 04:06:04 +01:00
|
|
|
const u8 *invbin,
|
2022-03-28 01:10:54 +02:00
|
|
|
struct tlv_onionmsg_payload_reply_path *reply_path STEALS,
|
|
|
|
struct tlv_obs2_onionmsg_payload_reply_path *obs2_reply_path STEALS);
|
2021-01-07 19:36:47 +01:00
|
|
|
#endif /* LIGHTNING_PLUGINS_OFFERS_INV_HOOK_H */
|