core-lightning/connectd/onion_message.h
Rusty Russell 8782d39476 connectd: handle onion messages.
Signed-off-by: Rusty Russell <rusty@rustcorp.com.au>
2022-02-08 11:15:52 +10:30

16 lines
536 B
C

#ifndef LIGHTNING_CONNECTD_ONION_MESSAGE_H
#define LIGHTNING_CONNECTD_ONION_MESSAGE_H
#include "config.h"
#include <ccan/short_types/short_types.h>
/* Various messages come in from peer */
void handle_obs2_onion_message(struct daemon *daemon,
struct peer *peer, const u8 *msg);
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);
#endif /* LIGHTNING_CONNECTD_ONION_MESSAGE_H */