Each header should only include the other headers it needs to compile; `devtools/reduce-includes.sh */*.h` does this. The C files then need additional includes if they don't compile. And remove the entirely useless wire/onion_wire.h, which only serves to include wire/onion_wiregen.h. Signed-off-by: Rusty Russell <rusty@rustcorp.com.au>
13 lines
380 B
C
13 lines
380 B
C
#ifndef LIGHTNING_COMMON_ECDH_HSMD_H
|
|
#define LIGHTNING_COMMON_ECDH_HSMD_H
|
|
#include "config.h"
|
|
#include <common/status_levels.h>
|
|
|
|
/* The via-the-hsmd implementation of ecdh(). */
|
|
|
|
/* You must call this before calling ecdh(). */
|
|
void ecdh_hsmd_setup(int hsm_fd,
|
|
void (*failed)(enum status_failreason,
|
|
const char *fmt, ...));
|
|
#endif /* LIGHTNING_COMMON_ECDH_HSMD_H */
|