mirror of
https://github.com/aljazceru/lightning.git
synced 2026-02-10 08:34:19 +01:00
plugin/libplugin: API for C plugins.
Doesn't do logging yet. Signed-off-by: Rusty Russell <rusty@rustcorp.com.au>
This commit is contained in:
committed by
Christian Decker
parent
ed356dae62
commit
de4043a32a
@@ -152,10 +152,10 @@ void daemon_shutdown(void)
|
||||
wally_cleanup(0);
|
||||
}
|
||||
|
||||
void daemon_maybe_debug(int argc, char *argv[])
|
||||
void daemon_maybe_debug(char *argv[])
|
||||
{
|
||||
#if DEVELOPER
|
||||
for (int i = 1; i < argc; i++) {
|
||||
for (int i = 1; argv[i]; i++) {
|
||||
if (!streq(argv[i], "--debugger"))
|
||||
continue;
|
||||
|
||||
|
||||
@@ -15,7 +15,7 @@ int daemon_poll(struct pollfd *fds, nfds_t nfds, int timeout);
|
||||
void daemon_shutdown(void);
|
||||
|
||||
/* Kick in a debugger if they set --debugger */
|
||||
void daemon_maybe_debug(int argc, char *argv[]);
|
||||
void daemon_maybe_debug(char *argv[]);
|
||||
|
||||
struct backtrace_state *backtrace_state;
|
||||
|
||||
|
||||
@@ -37,7 +37,7 @@ void subdaemon_setup(int argc, char *argv[])
|
||||
logging_io = true;
|
||||
}
|
||||
|
||||
daemon_maybe_debug(argc, argv);
|
||||
daemon_maybe_debug(argv);
|
||||
|
||||
#if DEVELOPER
|
||||
for (int i = 1; i < argc; i++) {
|
||||
|
||||
Reference in New Issue
Block a user