summaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
Diffstat (limited to 'include')
-rw-r--r--include/.gitignore1
-rw-r--r--include/ecbor.h.in (renamed from include/ecbor.h)9
2 files changed, 10 insertions, 0 deletions
diff --git a/include/.gitignore b/include/.gitignore
new file mode 100644
index 0000000..768880b
--- /dev/null
+++ b/include/.gitignore
@@ -0,0 +1 @@
+ecbor.h
diff --git a/include/ecbor.h b/include/ecbor.h.in
index 62ae4b5..0379b93 100644
--- a/include/ecbor.h
+++ b/include/ecbor.h.in
@@ -12,6 +12,15 @@
#include <stddef.h>
/*
+ * Version
+ */
+#define ECBOR_VERSION_MAJOR @VERSION_MAJOR@
+#define ECBOR_VERSION_MINOR @VERSION_MINOR@
+#define ECBOR_VERSION_PATCH @VERSION_PATCH@
+
+#define ECBOR_VERSION "@VERSION_MAJOR@.@VERSION_MINOR@.@VERSION_PATCH@"
+
+/*
* Error codes
*/
typedef enum {