mirror of
https://github.com/ElementsProject/lightning.git
synced 2024-11-19 18:11:28 +01:00
368fc07d05
Signed-off-by: Rusty Russell <rusty@rustcorp.com.au> Changelog-Experimental: Protocol: Updated onion_message support to match updated draft specification (with backwards compat for old version)
20 lines
521 B
C
20 lines
521 B
C
#ifndef LIGHTNING_PLUGINS_OFFERS_H
|
|
#define LIGHTNING_PLUGINS_OFFERS_H
|
|
#include "config.h"
|
|
#include <common/json.h>
|
|
|
|
struct command_result;
|
|
struct command;
|
|
|
|
/* Helper to send a reply */
|
|
struct command_result *WARN_UNUSED_RESULT
|
|
send_onion_reply(struct command *cmd,
|
|
/* Preferred */
|
|
struct tlv_onionmsg_payload_reply_path *reply_path,
|
|
/* Used if reply_path is NULL */
|
|
const char *jsonbuf,
|
|
const jsmntok_t *replytok,
|
|
const char *replyfield,
|
|
const u8 *replydata);
|
|
#endif /* LIGHTNING_PLUGINS_OFFERS_H */
|