LMMS
Loading...
Searching...
No Matches
version.h
Go to the documentation of this file.
1#pragma once
2
3#include "private/macros.h"
4#include "private/std.h"
5
6#ifdef __cplusplus
7extern "C" {
8#endif
9
10typedef struct clap_version {
11 // This is the major ABI and API design
12 // Version 0.X.Y correspond to the development stage, API and ABI are not stable
13 // Version 1.X.Y correspont to the release stage, API and ABI are stable
18
19#ifdef __cplusplus
20}
21#endif
22
23#define CLAP_VERSION_MAJOR ((uint32_t)1)
24#define CLAP_VERSION_MINOR ((uint32_t)1)
25#define CLAP_VERSION_REVISION ((uint32_t)1)
26#define CLAP_VERSION_INIT {CLAP_VERSION_MAJOR, CLAP_VERSION_MINOR, CLAP_VERSION_REVISION}
27
29
30CLAP_NODISCARD static inline CLAP_CONSTEXPR bool
32 // versions 0.x.y were used during development stage and aren't compatible
33 return v.major >= 1;
34}
unsigned v[N_MAX]
Definition inflate.c:1584
#define CLAP_CONSTEXPR
Definition macros.h:32
#define CLAP_NODISCARD
Definition macros.h:39
unsigned int uint32_t
Definition mid.cpp:100
Definition version.h:10
uint32_t minor
Definition version.h:15
uint32_t revision
Definition version.h:16
uint32_t major
Definition version.h:14
static CLAP_NODISCARD CLAP_CONSTEXPR bool clap_version_is_compatible(const clap_version_t v)
Definition version.h:31
#define CLAP_VERSION_INIT
Definition version.h:26
static const CLAP_CONSTEXPR clap_version_t CLAP_VERSION
Definition version.h:28
struct clap_version clap_version_t