mirror of
https://github.com/ElementsProject/lightning.git
synced 2024-11-19 01:43:36 +01:00
04c77f4853
We couldn't use it before because it asserted dbid was non-zero. Remove assert and save some code. Signed-off-by: Rusty Russell <rusty@rustcorp.com.au> Header from folded patch 'fixup!_lightningd__use_hsm_get_client_fd()_helper_for_global_daemons_too.patch': fixup! lightningd: use hsm_get_client_fd() helper for global daemons too. Suggested-by: @ZmnSCPxj
23 lines
662 B
C
23 lines
662 B
C
#ifndef LIGHTNING_LIGHTNINGD_HSM_CONTROL_H
|
|
#define LIGHTNING_LIGHTNINGD_HSM_CONTROL_H
|
|
#include "config.h"
|
|
#include <ccan/short_types/short_types.h>
|
|
#include <ccan/tal/tal.h>
|
|
#include <hsmd/capabilities.h>
|
|
#include <stdbool.h>
|
|
|
|
struct lightningd;
|
|
struct pubkey;
|
|
|
|
/* Ask HSM for a new fd for a subdaemon to use. */
|
|
int hsm_get_client_fd(struct lightningd *ld,
|
|
const struct pubkey *id,
|
|
u64 dbid,
|
|
int capabilities);
|
|
|
|
/* Ask HSM for an fd for a global subdaemon to use (gossipd, connectd) */
|
|
int hsm_get_global_fd(struct lightningd *ld, int capabilities);
|
|
|
|
void hsm_init(struct lightningd *ld);
|
|
#endif /* LIGHTNING_LIGHTNINGD_HSM_CONTROL_H */
|