aboutsummaryrefslogtreecommitdiffstats
path: root/contrib/libs/liburing/src/version.c
blob: e1a01229be5d56a3a49213dc7d5e4a6c71a8fe94 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
#include "../config-host.h"
/* SPDX-License-Identifier: MIT */

#include "liburing.h"
#include "liburing/io_uring_version.h"

int io_uring_major_version(void)
{
	return IO_URING_VERSION_MAJOR;
}

int io_uring_minor_version(void)
{
	return IO_URING_VERSION_MINOR;
}

bool io_uring_check_version(int major, int minor)
{
	return major > io_uring_major_version() ||
		(major == io_uring_major_version() &&
		 minor >= io_uring_minor_version());
}