summaryrefslogtreecommitdiff
path: root/protocols/Tox/src/api_main.cpp
diff options
context:
space:
mode:
authoraunsane <aunsane@gmail.com>2017-02-23 16:39:28 +0300
committeraunsane <aunsane@gmail.com>2017-02-23 16:40:23 +0300
commit34e423793fe14fe60a1e463e724523bc1f471cd3 (patch)
tree43b19928c01cc652c46b9d7d9f34312552f9a1a9 /protocols/Tox/src/api_main.cpp
parentbbb4ba8b737a4c3aaf165392f1d4919c0147b834 (diff)
Tox:
- added compatibility check - version bump
Diffstat (limited to 'protocols/Tox/src/api_main.cpp')
-rw-r--r--protocols/Tox/src/api_main.cpp5
1 files changed, 5 insertions, 0 deletions
diff --git a/protocols/Tox/src/api_main.cpp b/protocols/Tox/src/api_main.cpp
index a63bc729b8..3d46576925 100644
--- a/protocols/Tox/src/api_main.cpp
+++ b/protocols/Tox/src/api_main.cpp
@@ -2,6 +2,11 @@
/* MAIN FUNCTIONS */
+bool tox_version_is_compatible(uint32_t major, uint32_t minor, uint32_t patch)
+{
+ return CreateFunction<bool(*)(uint32_t, uint32_t, uint32_t)>(__FUNCTION__)(major, minor, patch);
+}
+
struct Tox_Options *tox_options_new(TOX_ERR_OPTIONS_NEW *error)
{
return CreateFunction<struct Tox_Options*(*)(TOX_ERR_OPTIONS_NEW*)>(__FUNCTION__)(error);