2016-01-21 21:11:47 +01:00
|
|
|
#ifndef LIGHTNING_DAEMON_LIGHTNING_H
|
|
|
|
#define LIGHTNING_DAEMON_LIGHTNING_H
|
|
|
|
#include "config.h"
|
2016-01-21 21:11:47 +01:00
|
|
|
#include <stdio.h>
|
2016-01-21 21:11:47 +01:00
|
|
|
|
|
|
|
/* Here's where the global variables hide! */
|
|
|
|
struct lightningd_state {
|
|
|
|
/* Where all our logging goes. */
|
|
|
|
struct log_record *log_record;
|
|
|
|
struct log *base_log;
|
2016-01-21 21:11:47 +01:00
|
|
|
FILE *logf;
|
2016-01-21 21:11:48 +01:00
|
|
|
|
|
|
|
/* Our config dir, and rpc file */
|
|
|
|
char *config_dir;
|
|
|
|
char *rpc_filename;
|
2016-01-21 21:11:47 +01:00
|
|
|
};
|
|
|
|
#endif /* LIGHTNING_DAEMON_LIGHTNING_H */
|