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;
|
|
|
|
|
|
|
|
void connect_succeeded(struct lightningd *ld, const struct pubkey *id);
|
|
|
|
void connect_failed(struct lightningd *ld, const struct pubkey *id,
|
|
|
|
const char *error);
|
|
|
|
|
|
|
|
/* Gossipd was unable to connect to the peer */
|
|
|
|
void peer_connection_failed(struct lightningd *ld, const u8 *msg);
|
|
|
|
|
2018-02-20 21:59:09 +01:00
|
|
|
/* This simply means we asked to reach a peer, but we already have it */
|
|
|
|
void peer_already_connected(struct lightningd *ld, const u8 *msg);
|
|
|
|
|
2018-02-20 21:59:09 +01:00
|
|
|
#endif /* LIGHTNING_LIGHTNINGD_CONNECT_CONTROL_H */
|