summaryrefslogtreecommitdiff
path: root/protocols/Tox/src/api_main.cpp
diff options
context:
space:
mode:
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);