JSONRPC: listconfigs command.

With the new 'human-readable' mode of lightning-cli, this actually produces
a valid config file.  It's a bit hacky though...

Signed-off-by: Rusty Russell <rusty@rustcorp.com.au>
This commit is contained in:
Rusty Russell
2018-01-29 11:00:15 +10:30
committed by Christian Decker
parent 0600aac68f
commit 327e2b8fd8
4 changed files with 193 additions and 1 deletions

View File

@@ -8,6 +8,7 @@
struct lightningd;
struct timerel;
struct lightningd;
enum log_level {
/* Logging all IO. */
@@ -89,6 +90,8 @@ void log_dump_to_file(int fd, const struct log_book *lr);
void opt_register_logging(struct lightningd *ld);
void crashlog_activate(const char *argv0, struct log *log);
char *arg_log_to_file(const char *arg, struct lightningd *ld);
/* Convenience parent for temporary allocations (eg. type_to_string)
* during log calls; freed after every log_*() */
const tal_t *ltmp;