2017-08-29 01:36:01 +09:30
|
|
|
#ifndef LIGHTNING_COMMON_VERSION_H
|
|
|
|
#define LIGHTNING_COMMON_VERSION_H
|
2016-01-22 06:38:08 +10:30
|
|
|
#include "config.h"
|
2023-01-06 15:09:55 +01:00
|
|
|
#include <stdbool.h>
|
2015-08-08 20:45:49 +09:30
|
|
|
|
2023-06-02 12:06:04 +09:30
|
|
|
/* Add --version|-V option */
|
|
|
|
void opt_register_version(void);
|
|
|
|
|
2016-09-14 05:22:41 +09:30
|
|
|
const char *version(void);
|
2023-01-06 15:09:55 +01:00
|
|
|
/* check if the current version is a release version.
|
|
|
|
*
|
|
|
|
* Released versions are of form v[year].[month]?(.patch)* */
|
|
|
|
bool is_released_version(void);
|
2015-08-08 20:45:49 +09:30
|
|
|
|
|
|
|
|
2017-08-29 01:36:01 +09:30
|
|
|
#endif /* LIGHTNING_COMMON_VERSION_H */
|