mirror of
https://github.com/ElementsProject/lightning.git
synced 2024-11-19 01:43:36 +01:00
1d8b899551
We're soon going to call json_add_unsaved_channel and json_add_uncommitted_channel from a new place, where we want the peer state directly included. Based on patch by @vincenzopalazzo. Signed-off-by: Rusty Russell <rusty@rustcorp.com.au>
25 lines
683 B
C
25 lines
683 B
C
#ifndef LIGHTNING_LIGHTNINGD_OPENING_CONTROL_H
|
|
#define LIGHTNING_LIGHTNINGD_OPENING_CONTROL_H
|
|
#include "config.h"
|
|
#include <ccan/short_types/short_types.h>
|
|
#include <lightningd/peer_control.h>
|
|
|
|
struct channel_id;
|
|
struct crypto_state;
|
|
struct json_stream;
|
|
struct lightningd;
|
|
struct peer_fd;
|
|
struct uncommitted_channel;
|
|
|
|
void json_add_uncommitted_channel(struct json_stream *response,
|
|
const struct uncommitted_channel *uc,
|
|
/* Only set for listpeerchannels */
|
|
const struct peer *peer);
|
|
|
|
bool peer_start_openingd(struct peer *peer,
|
|
struct peer_fd *peer_fd);
|
|
|
|
struct subd *peer_get_owning_subd(struct peer *peer);
|
|
|
|
#endif /* LIGHTNING_LIGHTNINGD_OPENING_CONTROL_H */
|