patch db-fatal-plugin_err.patch

This commit is contained in:
Rusty Russell
2022-07-19 17:04:31 +09:30
parent 351dc17e46
commit 721ceb7519
3 changed files with 26 additions and 12 deletions

View File

@@ -17,6 +17,7 @@
#include <common/node_id.h>
#include <common/status_levels.h>
#include <common/utils.h>
#include <stdarg.h>
struct json_out;
struct plugin;
@@ -226,6 +227,9 @@ struct command_result *command_param_failed(void);
/* Call this on fatal error. */
void NORETURN plugin_err(struct plugin *p, const char *fmt, ...);
/* Call this on fatal error. */
void NORETURN plugin_errv(struct plugin *p, const char *fmt, va_list ap);
/* Normal exit (makes sure to flush output!). */
void NORETURN plugin_exit(struct plugin *p, int exitcode);