From 51139a080c982a6460aa25975b3a1e0866f518ed Mon Sep 17 00:00:00 2001 From: "Gregory Mullen (grayhatter)" Date: Sat, 24 Sep 2016 16:26:35 -0700 Subject: v0.0.0 => v0.0.1 --- toxav/toxav.h | 68 ----------------------------------------------------------- 1 file changed, 68 deletions(-) (limited to 'toxav/toxav.h') diff --git a/toxav/toxav.h b/toxav/toxav.h index 38ba354e..298dbbd0 100644 --- a/toxav/toxav.h +++ b/toxav/toxav.h @@ -91,74 +91,6 @@ typedef struct ToxAV ToxAV; #endif /* TOXAV_DEFINED */ -/******************************************************************************* - * - * :: API version - * - ******************************************************************************/ - - - -/** - * The major version number. Incremented when the API or ABI changes in an - * incompatible way. - * - * The function variants of these constants return the version number of the - * library. They can be used to display the Tox library version or to check - * whether the client is compatible with the dynamically linked version of Tox. - */ -#define TOXAV_VERSION_MAJOR 0 - -uint32_t toxav_version_major(void); - -/** - * The minor version number. Incremented when functionality is added without - * breaking the API or ABI. Set to 0 when the major version number is - * incremented. - */ -#define TOXAV_VERSION_MINOR 0 - -uint32_t toxav_version_minor(void); - -/** - * The patch or revision number. Incremented when bugfixes are applied without - * changing any functionality or API or ABI. - */ -#define TOXAV_VERSION_PATCH 0 - -uint32_t toxav_version_patch(void); - -/** - * A macro to check at preprocessing time whether the client code is compatible - * with the installed version of ToxAV. - */ -#define TOXAV_VERSION_IS_API_COMPATIBLE(MAJOR, MINOR, PATCH) \ - (TOXAV_VERSION_MAJOR == MAJOR && \ - (TOXAV_VERSION_MINOR > MINOR || \ - (TOXAV_VERSION_MINOR == MINOR && \ - TOXAV_VERSION_PATCH >= PATCH))) - -/** - * A macro to make compilation fail if the client code is not compatible with - * the installed version of ToxAV. - */ -#define TOXAV_VERSION_REQUIRE(MAJOR, MINOR, PATCH) \ - typedef char toxav_required_version[TOXAV_IS_COMPATIBLE(MAJOR, MINOR, PATCH) ? 1 : -1] - -/** - * A convenience macro to call toxav_version_is_compatible with the currently - * compiling API version. - */ -#define TOXAV_VERSION_IS_ABI_COMPATIBLE() \ - toxav_version_is_compatible(TOXAV_VERSION_MAJOR, TOXAV_VERSION_MINOR, TOXAV_VERSION_PATCH) - -/** - * Return whether the compiled library version is compatible with the passed - * version numbers. - */ -bool toxav_version_is_compatible(uint32_t major, uint32_t minor, uint32_t patch); - - /******************************************************************************* * * :: Creation and destruction -- cgit v1.2.3