mirror of
https://github.com/ElementsProject/lightning.git
synced 2024-11-20 02:27:51 +01:00
8c22bd9ee1
For future reference, done via: for f in `find wire/ bitcoin/ common/ lightningd -name '*.h' ! -name 'gen*'`; do ID=`echo -n LIGHTNING/$f | tr 'a-z' 'A-Z' | tr -cs 'A-Z0-9' _`; sed 's/^#\(ifndef\|define\) .*_H$/#\1 '$ID/ < $f | sed 's,#endif /..*_H ./$,#endif /* '$ID' */,' | bagto $f; done Signed-off-by: Rusty Russell <rusty@rustcorp.com.au>
37 lines
1.1 KiB
C
37 lines
1.1 KiB
C
#ifndef LIGHTNING_LIGHTNINGD_GOSSIP_MSG_H
|
|
#define LIGHTNING_LIGHTNINGD_GOSSIP_MSG_H
|
|
#include "config.h"
|
|
#include <bitcoin/pubkey.h>
|
|
#include <lightningd/gossip/routing.h>
|
|
|
|
struct gossip_getnodes_entry {
|
|
struct pubkey nodeid;
|
|
struct ipaddr *addresses;
|
|
};
|
|
|
|
struct gossip_getchannels_entry {
|
|
struct pubkey source, destination;
|
|
u32 fee_per_kw;
|
|
bool active;
|
|
struct short_channel_id short_channel_id;
|
|
u32 last_update_timestamp;
|
|
u32 delay;
|
|
u16 flags;
|
|
};
|
|
|
|
void fromwire_gossip_getnodes_entry(const tal_t *ctx, const u8 **pptr,
|
|
size_t *max,
|
|
struct gossip_getnodes_entry *entry);
|
|
void towire_gossip_getnodes_entry(u8 **pptr,
|
|
const struct gossip_getnodes_entry *entry);
|
|
|
|
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);
|
|
|
|
void fromwire_gossip_getchannels_entry(const u8 **pptr, size_t *max,
|
|
struct gossip_getchannels_entry *entry);
|
|
void towire_gossip_getchannels_entry(
|
|
u8 **pptr, const struct gossip_getchannels_entry *entry);
|
|
|
|
#endif /* LIGHTNING_LIGHTNINGD_GOSSIP_MSG_H */
|