2022-01-29 04:32:32 +01:00
|
|
|
#ifndef LIGHTNING_CONNECTD_ONION_MESSAGE_H
|
|
|
|
#define LIGHTNING_CONNECTD_ONION_MESSAGE_H
|
|
|
|
#include "config.h"
|
|
|
|
#include <ccan/short_types/short_types.h>
|
|
|
|
|
2024-07-10 04:53:19 +02:00
|
|
|
/* Onion message comes in from peer. */
|
2022-01-29 04:32:32 +01:00
|
|
|
void handle_onion_message(struct daemon *daemon,
|
|
|
|
struct peer *peer, const u8 *msg);
|
|
|
|
|
|
|
|
/* Lightningd tells us to send an onion message */
|
|
|
|
void onionmsg_req(struct daemon *daemon, const u8 *msg);
|
|
|
|
|
2024-07-10 04:53:19 +02:00
|
|
|
/* Lightning tells us unwrap onion message as if from peer */
|
|
|
|
void inject_onionmsg_req(struct daemon *daemon, const u8 *msg);
|
|
|
|
|
2022-01-29 04:32:32 +01:00
|
|
|
#endif /* LIGHTNING_CONNECTD_ONION_MESSAGE_H */
|