core-lightning/version.h
Rusty Russell 5b3bde715a getinfo: add version information
Signed-off-by: Rusty Russell <rusty@rustcorp.com.au>
2016-09-14 05:28:51 +09:30

14 lines
360 B
C

#ifndef LIGHTNING_VERSION_H
#define LIGHTNING_VERSION_H
#include "config.h"
#include <ccan/opt/opt.h>
char *version_and_exit(const void *unused);
const char *version(void);
#define opt_register_version() \
opt_register_noarg("--version|-V", version_and_exit, NULL, \
"print version to standard output and exit")
#endif /* LIGHTNING_VERSION_H */