diff options
author | aunsane <aunsane@gmail.com> | 2017-02-23 16:39:28 +0300 |
---|---|---|
committer | aunsane <aunsane@gmail.com> | 2017-02-23 16:40:23 +0300 |
commit | 34e423793fe14fe60a1e463e724523bc1f471cd3 (patch) | |
tree | 43b19928c01cc652c46b9d7d9f34312552f9a1a9 /protocols/Tox/src/api_main.cpp | |
parent | bbb4ba8b737a4c3aaf165392f1d4919c0147b834 (diff) |
Tox:
- added compatibility check
- version bump
Diffstat (limited to 'protocols/Tox/src/api_main.cpp')
-rw-r--r-- | protocols/Tox/src/api_main.cpp | 5 |
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);
|