2018-02-20 21:59:09 +01:00
|
|
|
#ifndef LIGHTNING_LIGHTNINGD_CONNECT_CONTROL_H
|
|
|
|
#define LIGHTNING_LIGHTNINGD_CONNECT_CONTROL_H
|
|
|
|
#include "config.h"
|
|
|
|
|
|
|
|
struct lightningd;
|
|
|
|
struct pubkey;
|
2018-08-09 02:25:29 +02:00
|
|
|
struct wireaddr_internal;
|
2018-02-20 21:59:09 +01:00
|
|
|
|
2018-07-24 08:18:58 +02:00
|
|
|
/* Returns fd for gossipd to talk to connectd */
|
|
|
|
int connectd_init(struct lightningd *ld);
|
2018-07-24 08:18:58 +02:00
|
|
|
void connectd_activate(struct lightningd *ld);
|
|
|
|
|
2018-08-09 02:25:29 +02:00
|
|
|
void delay_then_reconnect(struct channel *channel, u32 seconds_delay,
|
|
|
|
const struct wireaddr_internal *addrhint TAKES);
|
2019-04-08 11:58:32 +02:00
|
|
|
void connect_succeeded(struct lightningd *ld, const struct node_id *id);
|
2018-04-26 06:50:58 +02:00
|
|
|
void gossip_connect_result(struct lightningd *ld, const u8 *msg);
|
2018-02-20 21:59:09 +01:00
|
|
|
|
2018-02-20 21:59:09 +01:00
|
|
|
#endif /* LIGHTNING_LIGHTNINGD_CONNECT_CONTROL_H */
|