mirror of
https://github.com/ElementsProject/lightning.git
synced 2025-01-18 05:12:45 +01:00
subd: remove "swap" methods
only needed for moving the subd->channel from an uncommitted_channel to a channel; we removed uncommitted_channel from dual_open so it's no longer necessary
This commit is contained in:
parent
de3599e98a
commit
4c9a4250bf
@ -823,21 +823,6 @@ void subd_release_channel(struct subd *owner, void *channel)
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
void subd_swap_channel_(struct subd *daemon, void *channel,
|
|
||||||
void (*errcb)(void *channel,
|
|
||||||
struct per_peer_state *pps,
|
|
||||||
const struct channel_id *channel_id,
|
|
||||||
const char *desc,
|
|
||||||
bool warning,
|
|
||||||
const u8 *err_for_them),
|
|
||||||
void (*billboardcb)(void *channel, bool perm,
|
|
||||||
const char *happenings))
|
|
||||||
{
|
|
||||||
daemon->channel = channel;
|
|
||||||
daemon->errcb = errcb;
|
|
||||||
daemon->billboardcb = billboardcb;
|
|
||||||
}
|
|
||||||
|
|
||||||
#if DEVELOPER
|
#if DEVELOPER
|
||||||
char *opt_subd_dev_disconnect(const char *optarg, struct lightningd *ld)
|
char *opt_subd_dev_disconnect(const char *optarg, struct lightningd *ld)
|
||||||
{
|
{
|
||||||
|
@ -146,31 +146,6 @@ struct subd *new_channel_subd_(struct lightningd *ld,
|
|||||||
const char *), \
|
const char *), \
|
||||||
__VA_ARGS__)
|
__VA_ARGS__)
|
||||||
|
|
||||||
/* subd_swap_channel - Swap the daemon's channel out */
|
|
||||||
#define subd_swap_channel(subd, channel, errcb, billboardcb) \
|
|
||||||
subd_swap_channel_((subd), (channel), \
|
|
||||||
typesafe_cb_postargs(void, void *, \
|
|
||||||
(errcb), \
|
|
||||||
(channel), \
|
|
||||||
struct per_peer_state *,\
|
|
||||||
const struct channel_id *, \
|
|
||||||
const char *, bool, \
|
|
||||||
const u8 *), \
|
|
||||||
typesafe_cb_postargs(void, void *, (billboardcb), \
|
|
||||||
(channel), bool, \
|
|
||||||
const char *))
|
|
||||||
|
|
||||||
void subd_swap_channel_(struct subd *daemon, void *channel,
|
|
||||||
void (*errcb)(void *channel,
|
|
||||||
struct per_peer_state *pps,
|
|
||||||
const struct channel_id *channel_id,
|
|
||||||
const char *desc,
|
|
||||||
bool warning,
|
|
||||||
const u8 *err_for_them),
|
|
||||||
void (*billboardcb)(void *channel, bool perm,
|
|
||||||
const char *happenings));
|
|
||||||
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* subd_send_msg - queue a message to the subdaemon.
|
* subd_send_msg - queue a message to the subdaemon.
|
||||||
* @sd: subdaemon to request
|
* @sd: subdaemon to request
|
||||||
|
Loading…
Reference in New Issue
Block a user