2017-08-28 17:06:01 +01:00
|
|
|
#ifndef LIGHTNING_COMMON_VERSION_H
|
|
|
|
#define LIGHTNING_COMMON_VERSION_H
|
2016-01-21 20:08:08 +00:00
|
|
|
#include "config.h"
|
2023-01-06 14:09:55 +00:00
|
|
|
#include <stdbool.h>
|
2015-08-08 12:15:49 +01:00
|
|
|
|
2023-06-02 03:36:04 +01:00
|
|
|
/* Add --version|-V option */
|
|
|
|
void opt_register_version(void);
|
|
|
|
|
2016-09-13 20:52:41 +01:00
|
|
|
const char *version(void);
|
2023-01-06 14:09:55 +00: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 12:15:49 +01:00
|
|
|
|
|
|
|
|
2017-08-28 17:06:01 +01:00
|
|
|
#endif /* LIGHTNING_COMMON_VERSION_H */
|