2017-03-15 10:43:03 +01:00
|
|
|
#ifndef LIGHTNING_LIGHTNINGD_GOSSIP_MSG_H
|
|
|
|
#define LIGHTNING_LIGHTNINGD_GOSSIP_MSG_H
|
|
|
|
#include "config.h"
|
|
|
|
#include <bitcoin/pubkey.h>
|
2017-03-15 13:36:35 +01:00
|
|
|
#include <daemon/routing.h>
|
2017-03-15 10:43:03 +01:00
|
|
|
|
|
|
|
struct gossip_getnodes_entry {
|
|
|
|
struct pubkey nodeid;
|
|
|
|
char *hostname;
|
|
|
|
u16 port;
|
|
|
|
};
|
|
|
|
|
2017-03-18 15:50:56 +01:00
|
|
|
void fromwire_gossip_getnodes_entry(const tal_t *ctx, const u8 **pptr, size_t *max, struct gossip_getnodes_entry *entry);
|
2017-03-15 10:43:03 +01:00
|
|
|
void towire_gossip_getnodes_entry(u8 **pptr, const struct gossip_getnodes_entry *entry);
|
|
|
|
|
2017-03-15 13:36:35 +01:00
|
|
|
void fromwire_route_hop(const u8 **pprt, size_t *max, struct route_hop *entry);
|
|
|
|
void towire_route_hop(u8 **pprt, const struct route_hop *entry);
|
|
|
|
|
2017-03-15 10:43:03 +01:00
|
|
|
#endif /* LIGHTNING_LIGHTGNINGD_GOSSIP_MSG_H */
|