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>2023-12-02 16:27:02 -0500
commitb739848b6ea4c038610ceb7c0b00984a86d99fa9 (patch)
tree29010c4a34d6800d2f706e0fe93eb297f12bf4bc /include
parentcd3d9986f40fd4e605ac2e8168512065439173e2 (diff)
downloadserd-b739848b6ea4c038610ceb7c0b00984a86d99fa9.tar.gz
serd-b739848b6ea4c038610ceb7c0b00984a86d99fa9.tar.bz2
serd-b739848b6ea4c038610ceb7c0b00984a86d99fa9.zip
Add version constants to public header
Diffstat (limited to 'include')
-rw-r--r--include/serd/serd.h1
-rw-r--r--include/serd/version.h50
2 files changed, 51 insertions, 0 deletions
diff --git a/include/serd/serd.h b/include/serd/serd.h
index bf02bc96..70168997 100644
--- a/include/serd/serd.h
+++ b/include/serd/serd.h
@@ -19,6 +19,7 @@
*/
#include "serd/attributes.h"
+#include "serd/version.h"
/**
@}
diff --git a/include/serd/version.h b/include/serd/version.h
new file mode 100644
index 00000000..254e79c8
--- /dev/null
+++ b/include/serd/version.h
@@ -0,0 +1,50 @@
+// Copyright 2011-2022 David Robillard <d@drobilla.net>
+// SPDX-License-Identifier: ISC
+
+#ifndef SERD_VERSION_H
+#define SERD_VERSION_H
+
+#include "serd/attributes.h"
+
+SERD_BEGIN_DECLS
+
+/**
+ @defgroup serd_version Version
+ @ingroup serd_library
+
+ Serd uses a single [semantic version number](https://semver.org) which
+ reflects changes to the C library ABI.
+
+ @{
+*/
+
+/**
+ 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 1
+
+/**
+ 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
+
+/**
+ @}
+*/
+
+SERD_END_DECLS
+
+#endif // SERD_VERSION_H