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>
10 lines
267 B
C
10 lines
267 B
C
#ifndef LIGHTNING_CHANNELD_CHANNELD_H
|
|
#define LIGHTNING_CHANNELD_CHANNELD_H
|
|
#include "config.h"
|
|
#include <ccan/short_types/short_types.h>
|
|
#include <ccan/tal/tal.h>
|
|
|
|
const u8 *hsm_req(const tal_t *ctx, const u8 *req TAKES);
|
|
|
|
#endif /* LIGHTNING_CHANNELD_CHANNELD_H */
|