Each header should only include the other headers it needs to compile; `devtools/reduce-includes.sh */*.h` does this. The C files then need additional includes if they don't compile. And remove the entirely useless wire/onion_wire.h, which only serves to include wire/onion_wiregen.h. Signed-off-by: Rusty Russell <rusty@rustcorp.com.au>
18 lines
470 B
C
18 lines
470 B
C
#ifndef LIGHTNING_LIGHTNINGD_GOSSIP_CONTROL_H
|
|
#define LIGHTNING_LIGHTNINGD_GOSSIP_CONTROL_H
|
|
#include "config.h"
|
|
#include <bitcoin/short_channel_id.h>
|
|
|
|
struct channel;
|
|
struct lightningd;
|
|
|
|
void gossip_init(struct lightningd *ld, int connectd_fd);
|
|
|
|
void gossipd_notify_spends(struct lightningd *ld,
|
|
u32 blockheight,
|
|
const struct short_channel_id *scids);
|
|
|
|
void gossip_notify_new_block(struct lightningd *ld);
|
|
|
|
#endif /* LIGHTNING_LIGHTNINGD_GOSSIP_CONTROL_H */
|