libonion
 All Data Structures Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
Macros | Functions
version.c File Reference
#include <onion/log.h>
#include <onion/version.h>

Macros

#define ONION_VERSION_IS_COMPATIBLE()
 Macro to ensure that the version of onion your program is using is ABI compatible with the library one.
#define ONION_VERSION_IS_COMPATIBLE_OR_ABORT()
 Macro to ensure that the version of onion your program is using is ABI compatible with the library one. It aborts if its not compatible.

Functions

const char * onion_version ()
 Current running onion version as a string.
int onion_version_major ()
 Current running onion major version.
int onion_version_minor ()
 Current running onion minor version.
int onion_version_patch ()
 Patch version of the current release.
bool onion_version_is_compatible3 (int major, int minor, int patch)
 Checks a specific set of major.minor.patch and returns if the current using onion is ABI compatible.