diff options
Diffstat (limited to 'other/apidsl/tox.in.h')
-rw-r--r-- | other/apidsl/tox.in.h | 29 |
1 files changed, 9 insertions, 20 deletions
diff --git a/other/apidsl/tox.in.h b/other/apidsl/tox.in.h index a8c7ef69..959eb0d6 100644 --- a/other/apidsl/tox.in.h +++ b/other/apidsl/tox.in.h | |||
@@ -161,19 +161,25 @@ struct this; | |||
161 | /** | 161 | /** |
162 | * The major version number. Incremented when the API or ABI changes in an | 162 | * The major version number. Incremented when the API or ABI changes in an |
163 | * incompatible way. | 163 | * incompatible way. |
164 | * | ||
165 | * The function variants of these constants return the version number of the | ||
166 | * library. They can be used to display the Tox library version or to check | ||
167 | * whether the client is compatible with the dynamically linked version of Tox. | ||
164 | */ | 168 | */ |
165 | #define TOX_VERSION_MAJOR 0u | 169 | const VERSION_MAJOR = 0; |
170 | |||
166 | /** | 171 | /** |
167 | * The minor version number. Incremented when functionality is added without | 172 | * The minor version number. Incremented when functionality is added without |
168 | * breaking the API or ABI. Set to 0 when the major version number is | 173 | * breaking the API or ABI. Set to 0 when the major version number is |
169 | * incremented. | 174 | * incremented. |
170 | */ | 175 | */ |
171 | #define TOX_VERSION_MINOR 0u | 176 | const VERSION_MINOR = 0; |
177 | |||
172 | /** | 178 | /** |
173 | * The patch or revision number. Incremented when bugfixes are applied without | 179 | * The patch or revision number. Incremented when bugfixes are applied without |
174 | * changing any functionality or API or ABI. | 180 | * changing any functionality or API or ABI. |
175 | */ | 181 | */ |
176 | #define TOX_VERSION_PATCH 0u | 182 | const VERSION_PATCH = 0; |
177 | 183 | ||
178 | /** | 184 | /** |
179 | * A macro to check at preprocessing time whether the client code is compatible | 185 | * A macro to check at preprocessing time whether the client code is compatible |
@@ -195,23 +201,6 @@ struct this; | |||
195 | static namespace version { | 201 | static namespace version { |
196 | 202 | ||
197 | /** | 203 | /** |
198 | * Return the major version number of the library. Can be used to display the | ||
199 | * Tox library version or to check whether the client is compatible with the | ||
200 | * dynamically linked version of Tox. | ||
201 | */ | ||
202 | uint32_t major(); | ||
203 | |||
204 | /** | ||
205 | * Return the minor version number of the library. | ||
206 | */ | ||
207 | uint32_t minor(); | ||
208 | |||
209 | /** | ||
210 | * Return the patch number of the library. | ||
211 | */ | ||
212 | uint32_t patch(); | ||
213 | |||
214 | /** | ||
215 | * Return whether the compiled library version is compatible with the passed | 204 | * Return whether the compiled library version is compatible with the passed |
216 | * version numbers. | 205 | * version numbers. |
217 | */ | 206 | */ |