mirror of
https://github.com/aljazceru/lightning.git
synced 2025-12-24 01:24:26 +01:00
plugin: wire JSON id for commands which caused hooks to fire.
Most obvious one is the "connect" hook. Signed-off-by: Rusty Russell <rusty@rustcorp.com.au>
This commit is contained in:
@@ -28,4 +28,8 @@ void connect_failed_disconnect(struct lightningd *ld,
|
||||
const struct node_id *id,
|
||||
const struct wireaddr_internal *addr);
|
||||
|
||||
/* Get the id of any connect cmd which applies, to feed to hooks */
|
||||
const char *connect_any_cmd_id(const tal_t *ctx,
|
||||
struct lightningd *ld, const struct peer *peer);
|
||||
|
||||
#endif /* LIGHTNING_LIGHTNINGD_CONNECT_CONTROL_H */
|
||||
|
||||
Reference in New Issue
Block a user