[pacman-dev] [PATCH 1/1] libalpm: add version information to alpm.h
Christian Hesse
list at eworm.de
Sun Dec 28 19:45:38 UTC 2014
From: Christian Hesse <mail at eworm.de>
Programs linked against libalpm (for example packagekit) may want to use
preprocessor macros to check version and choose correct API. This adds
version information to alpm.h.
Signed-off-by: Christian Hesse <mail at eworm.de>
---
lib/libalpm/alpm.h | 8 ++++++++
1 file changed, 8 insertions(+)
diff --git a/lib/libalpm/alpm.h b/lib/libalpm/alpm.h
index 91b9461..e3f6e67 100644
--- a/lib/libalpm/alpm.h
+++ b/lib/libalpm/alpm.h
@@ -23,6 +23,14 @@
#ifndef _ALPM_H
#define _ALPM_H
+#define ALPM_VERSION "9.0.0"
+
+#define ALPM_VERSION_MAJOR 9
+#define ALPM_VERSION_MINOR 0
+#define ALPM_VERSION_PATCH 0
+
+#define ALPM_VERSION_NUMBER 0x090000
+
#ifdef __cplusplus
extern "C" {
#endif
--
2.2.1
More information about the pacman-dev
mailing list