diff options
author | TheJackiMonster <thejackimonster@gmail.com> | 2022-03-30 13:22:05 +0200 |
---|---|---|
committer | TheJackiMonster <thejackimonster@gmail.com> | 2022-03-30 13:22:05 +0200 |
commit | 5076508d493b0f41036039e7984cd1377eda39d2 (patch) | |
tree | 4fd7c3b11c96214a6adef2eda18a57f812140ff1 /include | |
parent | 4df66ae0839555369313675df5391146083827e8 (diff) | |
download | libgnunetchat-5076508d493b0f41036039e7984cd1377eda39d2.tar.gz libgnunetchat-5076508d493b0f41036039e7984cd1377eda39d2.zip |
Added version makros and assertion to ensure compatibility
Signed-off-by: TheJackiMonster <thejackimonster@gmail.com>
Diffstat (limited to 'include')
-rw-r--r-- | include/gnunet_chat_lib.h | 11 |
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 @@ | |||
39 | #include <gnunet/gnunet_time_lib.h> | 39 | #include <gnunet/gnunet_time_lib.h> |
40 | #include <gnunet/gnunet_util_lib.h> | 40 | #include <gnunet/gnunet_util_lib.h> |
41 | 41 | ||
42 | /** | ||
43 | * @def GNUNET_CHAT_VERSION The major and minor version should be identical to | ||
44 | * the #GNUNET_MESSENGER_VERSION of the GNUnet Messenger | ||
45 | * service while the patch version is independent. | ||
46 | */ | ||
47 | #define GNUNET_CHAT_VERSION 0x000000010000L | ||
48 | |||
49 | #define GNUNET_CHAT_VERSION_MAJOR ((GNUNET_CHAT_VERSION >> 32L) & 0xFFFFL) | ||
50 | #define GNUNET_CHAT_VERSION_MINOR ((GNUNET_CHAT_VERSION >> 16L) & 0xFFFFL) | ||
51 | #define GNUNET_CHAT_VERSION_PATCH ((GNUNET_CHAT_VERSION >> 0L) & 0xFFFFL) | ||
52 | |||
42 | #define GNUNET_CHAT_URI_PREFIX "gnunet://chat/" | 53 | #define GNUNET_CHAT_URI_PREFIX "gnunet://chat/" |
43 | 54 | ||
44 | /** | 55 | /** |