2017-04-27 18:24:53 +00:00
|
|
|
// SPDX-License-Identifier: GPL-2.0
|
2015-02-15 18:25:18 +00:00
|
|
|
#include "ssrf-version.h"
|
|
|
|
|
2024-01-05 04:44:31 +00:00
|
|
|
// let's leave the two redundant functions in case we change our minds on git SHAs
|
2024-05-04 16:53:41 +00:00
|
|
|
const char *subsurface_git_version()
|
2015-02-15 18:25:18 +00:00
|
|
|
{
|
2024-01-05 04:44:31 +00:00
|
|
|
return CANONICAL_VERSION_STRING_4;
|
2015-02-15 18:25:18 +00:00
|
|
|
}
|
|
|
|
|
2024-05-04 16:53:41 +00:00
|
|
|
const char *subsurface_canonical_version()
|
2015-02-15 18:25:18 +00:00
|
|
|
{
|
|
|
|
return CANONICAL_VERSION_STRING;
|
|
|
|
}
|
2024-06-25 12:33:36 +00:00
|
|
|
|
|
|
|
static int min_datafile_version = 0;
|
|
|
|
|
|
|
|
int get_min_datafile_version()
|
|
|
|
{
|
|
|
|
return min_datafile_version;
|
|
|
|
}
|
|
|
|
|
|
|
|
void report_datafile_version(int version)
|
|
|
|
{
|
|
|
|
if (min_datafile_version == 0 || min_datafile_version > version)
|
|
|
|
min_datafile_version = version;
|
|
|
|
}
|
|
|
|
|
|
|
|
int clear_min_datafile_version()
|
|
|
|
{
|
|
|
|
return min_datafile_version;
|
|
|
|
}
|