2018-02-21 07:29:09 +10:30
|
|
|
#ifndef LIGHTNING_LIGHTNINGD_CLOSING_CONTROL_H
|
|
|
|
#define LIGHTNING_LIGHTNINGD_CLOSING_CONTROL_H
|
|
|
|
#include "config.h"
|
|
|
|
#include <ccan/short_types/short_types.h>
|
2021-09-15 10:29:23 +09:30
|
|
|
#include <stdbool.h>
|
2018-02-21 07:29:09 +10:30
|
|
|
|
2021-06-15 06:39:49 +09:30
|
|
|
struct channel;
|
2021-09-15 10:29:23 +09:30
|
|
|
struct lightningd;
|
2022-01-11 11:43:59 +10:30
|
|
|
struct peer_fd;
|
2018-02-21 07:29:09 +10:30
|
|
|
|
2022-09-13 06:49:11 +09:30
|
|
|
/* Resolve a close command for a channel that will be closed soon: returns
|
|
|
|
* the cmd_id of one, if any (allocated off ctx). */
|
|
|
|
const char *resolve_close_command(const tal_t *ctx,
|
|
|
|
struct lightningd *ld, struct channel *channel,
|
|
|
|
bool cooperative);
|
2021-09-15 10:29:23 +09:30
|
|
|
|
2018-02-21 07:29:09 +10:30
|
|
|
void peer_start_closingd(struct channel *channel,
|
2022-01-11 11:43:59 +10:30
|
|
|
struct peer_fd *peer_fd);
|
2018-02-21 07:29:09 +10:30
|
|
|
|
|
|
|
#endif /* LIGHTNING_LIGHTNINGD_CLOSING_CONTROL_H */
|