daemon: time option support.

No need to have all times in seconds.

Signed-off-by: Rusty Russell <rusty@rustcorp.com.au>
This commit is contained in:
Rusty Russell
2016-05-10 06:28:17 +09:30
parent 82c2325467
commit 6c7facfd2d
3 changed files with 91 additions and 0 deletions

10
daemon/opt_time.h Normal file
View File

@@ -0,0 +1,10 @@
#ifndef LIGHTNING_DAEMON_OPT_TIME_H
#define LIGHTNING_DAEMON_OPT_TIME_H
#include "config.h"
#include <ccan/opt/opt.h>
#include <ccan/time/time.h>
char *opt_set_time(const char *arg, struct timerel *t);
void opt_show_time(char buf[OPT_SHOW_LEN], const struct timerel *t);
#endif /* LIGHTNING_DAEMON_OPT_TIME_H */