2017-05-22 13:26:49 +02:00
|
|
|
#ifndef LIGHTNING_LIGHTNINGD_NEW_CONNECTION_H
|
|
|
|
#define LIGHTNING_LIGHTNINGD_NEW_CONNECTION_H
|
|
|
|
#include "config.h"
|
|
|
|
#include <stdbool.h>
|
|
|
|
|
|
|
|
struct command;
|
|
|
|
struct io_conn;
|
|
|
|
struct lightningd;
|
|
|
|
struct lightningd_state;
|
2017-05-22 13:26:50 +02:00
|
|
|
struct netaddr;
|
2017-05-22 13:26:49 +02:00
|
|
|
struct pubkey;
|
|
|
|
|
|
|
|
struct connection *new_connection(const tal_t *ctx,
|
|
|
|
struct lightningd *ld,
|
|
|
|
struct command *cmd,
|
|
|
|
const struct pubkey *known_id);
|
|
|
|
|
|
|
|
struct io_plan *connection_out(struct io_conn *conn,
|
|
|
|
struct lightningd_state *dstate,
|
2017-05-22 13:26:50 +02:00
|
|
|
const struct netaddr *netaddr,
|
2017-05-22 13:26:49 +02:00
|
|
|
struct connection *c);
|
|
|
|
|
|
|
|
struct io_plan *connection_in(struct io_conn *conn, struct lightningd *ld);
|
|
|
|
|
2017-05-23 14:17:34 +02:00
|
|
|
const struct pubkey *connection_known_id(const struct connection *c);
|
2017-05-22 13:26:49 +02:00
|
|
|
#endif /* LIGHTNING_LIGHTNINGD_NEW_CONNECTION_H */
|