mirror of
https://github.com/ElementsProject/lightning.git
synced 2024-11-19 09:54:16 +01:00
76f116daf1
Code changes: 1. Expose daemon_poll() so lightningd can call it directly, which avoids us having store a global and document it. 2. Remove the (undocumented, unused, forgotten) --rpc-file="" option to disable JSON RPC. 3. Move the ickiness of finding the executable path into subd.c, so it doesn't distract from lightningd.c overview. Signed-off-by: Rusty Russell <rusty@rustcorp.com.au>
20 lines
536 B
C
20 lines
536 B
C
#ifndef LIGHTNING_COMMON_DAEMON_H
|
|
#define LIGHTNING_COMMON_DAEMON_H
|
|
#include "config.h"
|
|
#include <poll.h>
|
|
|
|
/* Common setup for all daemons */
|
|
void daemon_setup(const char *argv0,
|
|
void (*backtrace_print)(const char *fmt, ...),
|
|
void (*backtrace_exit)(void));
|
|
|
|
/* Exposed for lightningd's use. */
|
|
int daemon_poll(struct pollfd *fds, nfds_t nfds, int timeout);
|
|
|
|
/* Shutdown for a valgrind-clean exit (frees everything) */
|
|
void daemon_shutdown(void);
|
|
|
|
struct backtrace_state *backtrace_state;
|
|
|
|
#endif /* LIGHTNING_COMMON_DAEMON_H */
|