log: keep dstate pointer.

We need its secpctx pointer.

Signed-off-by: Rusty Russell <rusty@rustcorp.com.au>
This commit is contained in:
Rusty Russell
2016-07-01 11:19:28 +09:30
parent 08a910b06e
commit a35055c699
2 changed files with 7 additions and 3 deletions

View File

@@ -6,6 +6,7 @@
#include <stdarg.h>
struct timerel;
struct lightningd_state;
enum log_level {
/* Logging all IO. */
@@ -21,7 +22,7 @@ enum log_level {
};
/* We have a single record. */
struct log_record *new_log_record(const tal_t *ctx,
struct log_record *new_log_record(struct lightningd_state *dstate,
size_t max_mem,
enum log_level printlevel);