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