mirror of
https://github.com/aljazceru/lightning.git
synced 2025-12-20 23:54:22 +01:00
For better or worse, the ccan/timer structure is completely minimal, and designed to be wrapped inside a container structure. Signed-off-by: Rusty Russell <rusty@rustcorp.com.au>
22 lines
494 B
C
22 lines
494 B
C
#ifndef LIGHTNING_DAEMON_LIGHTNING_H
|
|
#define LIGHTNING_DAEMON_LIGHTNING_H
|
|
#include "config.h"
|
|
#include <ccan/timer/timer.h>
|
|
#include <stdio.h>
|
|
|
|
/* Here's where the global variables hide! */
|
|
struct lightningd_state {
|
|
/* Where all our logging goes. */
|
|
struct log_record *log_record;
|
|
struct log *base_log;
|
|
FILE *logf;
|
|
|
|
/* Our config dir, and rpc file */
|
|
char *config_dir;
|
|
char *rpc_filename;
|
|
|
|
/* Any pending timers. */
|
|
struct timers timers;
|
|
};
|
|
#endif /* LIGHTNING_DAEMON_LIGHTNING_H */
|