2017-08-28 18:06:01 +02:00
|
|
|
#ifndef LIGHTNING_COMMON_VERSION_H
|
|
|
|
#define LIGHTNING_COMMON_VERSION_H
|
2016-01-21 21:08:08 +01:00
|
|
|
#include "config.h"
|
2015-08-08 13:15:49 +02:00
|
|
|
|
|
|
|
char *version_and_exit(const void *unused);
|
2016-09-13 21:52:41 +02:00
|
|
|
const char *version(void);
|
2015-08-08 13:15:49 +02:00
|
|
|
|
|
|
|
#define opt_register_version() \
|
2017-01-04 04:34:15 +01:00
|
|
|
opt_register_early_noarg("--version|-V", version_and_exit, NULL, \
|
2018-01-24 20:33:47 +01:00
|
|
|
"Print version and exit")
|
2015-08-08 13:15:49 +02:00
|
|
|
|
2017-08-28 18:06:01 +02:00
|
|
|
#endif /* LIGHTNING_COMMON_VERSION_H */
|