![]() |
![]() |
![]() |
Cattle Reference Manual | ![]() |
---|---|---|---|---|
Top | Description |
#include <cattle/cattle.h> #define CATTLE_MAJOR_VERSION #define CATTLE_MINOR_VERSION #define CATTLE_MICRO_VERSION #define CATTLE_CHECK_VERSION (major, minor, micro) extern const guint cattle_major_version; extern const guint cattle_minor_version; extern const guint cattle_micro_version; gboolean cattle_check_version (guint required_major
,guint required_minor
,guint required_micro
);
The following variables, functions and macros allow one to check both the version of Cattle being used for compilation and the one used at runtime.
Cattle follows the MAJOR.MINOR.MICRO versioning scheme, where all releases sharing the same major number are ABI compatible and releases with and odd minor number are unstable releases targeted at developers only.
#define CATTLE_MAJOR_VERSION (1)
Major version of the Cattle library used for compilation.
#define CATTLE_MINOR_VERSION (0)
Minor version of the Cattle library used for compilation.
#define CATTLE_MICRO_VERSION (1)
Micro version of the Cattle library used for compilation.
#define CATTLE_CHECK_VERSION(major,minor,micro)
Check the Cattle library used for compilation is compatible with
the required version described by major
, minor
and micro
.
extern const guint cattle_major_version;
Major version of the Cattle library used at runtime.
extern const guint cattle_minor_version;
Minor version of the Cattle library used at runtime.
extern const guint cattle_micro_version;
Micro version of the Cattle library used at runtime.