summaryrefslogtreecommitdiff
path: root/include/gnunet_chat_lib.h
diff options
context:
space:
mode:
Diffstat (limited to 'include/gnunet_chat_lib.h')
-rw-r--r--include/gnunet_chat_lib.h11
1 files changed, 11 insertions, 0 deletions
diff --git a/include/gnunet_chat_lib.h b/include/gnunet_chat_lib.h
index a434381..cc604cd 100644
--- a/include/gnunet_chat_lib.h
+++ b/include/gnunet_chat_lib.h
@@ -39,6 +39,17 @@
#include <gnunet/gnunet_time_lib.h>
#include <gnunet/gnunet_util_lib.h>
+/**
+ * @def GNUNET_CHAT_VERSION The major and minor version should be identical to
+ * the #GNUNET_MESSENGER_VERSION of the GNUnet Messenger
+ * service while the patch version is independent.
+ */
+#define GNUNET_CHAT_VERSION 0x000000010000L
+
+#define GNUNET_CHAT_VERSION_MAJOR ((GNUNET_CHAT_VERSION >> 32L) & 0xFFFFL)
+#define GNUNET_CHAT_VERSION_MINOR ((GNUNET_CHAT_VERSION >> 16L) & 0xFFFFL)
+#define GNUNET_CHAT_VERSION_PATCH ((GNUNET_CHAT_VERSION >> 0L) & 0xFFFFL)
+
#define GNUNET_CHAT_URI_PREFIX "gnunet://chat/"
/**