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>
22 lines
488 B
C
22 lines
488 B
C
#ifndef LIGHTNING_COMMON_ERRCODE_H
|
|
#define LIGHTNING_COMMON_ERRCODE_H
|
|
|
|
#include "config.h"
|
|
|
|
|
|
// Setup errors
|
|
#define EXITCODE_SUBDAEMON_FAIL 10
|
|
#define EXITCODE_PIDFILE_LOCK 11
|
|
|
|
// HSM errors code
|
|
#define EXITCODE_HSM_GENERIC_ERROR 20
|
|
#define EXITCODE_HSM_ERROR_IS_ENCRYPT 21
|
|
#define EXITCODE_HSM_BAD_PASSWORD 22
|
|
#define EXITCODE_HSM_PASSWORD_INPUT_ERR 23
|
|
#define EXITCODE_ERROR_HSM_FILE 24
|
|
|
|
// Wallet error
|
|
#define EXITCODE_WALLET_DB_MISMATCH 30
|
|
|
|
#endif /* LIGHTNING_COMMON_ERRCODE_H */
|