aboutsummaryrefslogtreecommitdiffstats
path: root/include
diff options
context:
space:
mode:
authorDavid Robillard <d@drobilla.net>2021-08-08 13:47:10 -0400
committerDavid Robillard <d@drobilla.net>2022-01-28 21:57:07 -0500
commit411b2ffac686478f3312c4a0c5cf20a230a3f728 (patch)
tree32070da3c5bd7245da2a66a344232ce5178e117f /include
parent5a39e907a9a1fad87c35a94ea1e534deeb2316f9 (diff)
downloadserd-411b2ffac686478f3312c4a0c5cf20a230a3f728.tar.gz
serd-411b2ffac686478f3312c4a0c5cf20a230a3f728.tar.bz2
serd-411b2ffac686478f3312c4a0c5cf20a230a3f728.zip
Add version constants to public header
Diffstat (limited to 'include')
-rw-r--r--include/serd/serd.h23
1 files changed, 23 insertions, 0 deletions
diff --git a/include/serd/serd.h b/include/serd/serd.h
index 790dfde0..3655f0b4 100644
--- a/include/serd/serd.h
+++ b/include/serd/serd.h
@@ -87,6 +87,29 @@ extern "C" {
@{
*/
+/**
+ The major version number of the serd library.
+
+ Semver: Increments when incompatible API changes are made.
+*/
+#define SERD_MAJOR_VERSION 1
+
+/**
+ The minor version number of the serd library.
+
+ Semver: Increments when functionality is added in a backwards compatible
+ manner.
+*/
+#define SERD_MINOR_VERSION 0
+
+/**
+ The micro version number of the serd library.
+
+ Semver: Increments when changes are made that do not affect the API, such as
+ performance improvements or bug fixes.
+*/
+#define SERD_MICRO_VERSION 1
+
/// Flags that describe the details of a node
typedef enum {
SERD_IS_LONG = 1u << 0u, ///< Literal node should be triple-quoted