2017-04-27 20:24:53 +02:00
|
|
|
// SPDX-License-Identifier: GPL-2.0
|
2015-02-15 20:25:18 +02:00
|
|
|
#include "ssrf-version.h"
|
|
|
|
|
2024-01-04 20:44:31 -08:00
|
|
|
// let's leave the two redundant functions in case we change our minds on git SHAs
|
2024-05-04 18:53:41 +02:00
|
|
|
const char *subsurface_git_version()
|
2015-02-15 20:25:18 +02:00
|
|
|
{
|
2024-01-04 20:44:31 -08:00
|
|
|
return CANONICAL_VERSION_STRING_4;
|
2015-02-15 20:25:18 +02:00
|
|
|
}
|
|
|
|
|
2024-05-04 18:53:41 +02:00
|
|
|
const char *subsurface_canonical_version()
|
2015-02-15 20:25:18 +02:00
|
|
|
{
|
|
|
|
return CANONICAL_VERSION_STRING;
|
|
|
|
}
|
2024-06-25 14:33:36 +02: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;
|
|
|
|
}
|