Version related macros

Version related macros

Functions

Types and Values

Includes

#include <gandiva-glib/gandiva-glib.h>

Description

Gandiva GLib provides macros that can be used by C pre-processor. They are useful to check version related things at compile time.

Functions

GGANDIVA_VERSION_CHECK()

#define             GGANDIVA_VERSION_CHECK(major, minor, micro)

You can use this macro in C pre-processor.

Parameters

major

A major version to check for.

 

minor

A minor version to check for.

 

micro

A micro version to check for.

 

Returns

TRUE if the compile time Gandiva GLib version is the same as or newer than the passed version, FALSE otherwise.

Since: 1.0.0


GGANDIVA_DEPRECATED_FOR()

#  define GGANDIVA_DEPRECATED_FOR(function)

GGANDIVA_UNAVAILABLE()

#  define GGANDIVA_UNAVAILABLE(major, minor)

GGANDIVA_DEPRECATED_IN_4_0_FOR()

#  define GGANDIVA_DEPRECATED_IN_4_0_FOR(function)  GGANDIVA_DEPRECATED_FOR(function)

GGANDIVA_DEPRECATED_IN_1_0_FOR()

#  define GGANDIVA_DEPRECATED_IN_1_0_FOR(function)  GGANDIVA_DEPRECATED_FOR(function)

GGANDIVA_DEPRECATED_IN_0_17_FOR()

#  define GGANDIVA_DEPRECATED_IN_0_17_FOR(function)  GGANDIVA_DEPRECATED_FOR(function)

Types and Values

GGANDIVA_VERSION_MAJOR

#define GGANDIVA_VERSION_MAJOR (13)

The major version.

Since: 1.0.0


GGANDIVA_VERSION_MINOR

#define GGANDIVA_VERSION_MINOR (0)

The minor version.

Since: 1.0.0


GGANDIVA_VERSION_MICRO

#define GGANDIVA_VERSION_MICRO (0)

The micro version.

Since: 1.0.0


GGANDIVA_VERSION_TAG

#define GGANDIVA_VERSION_TAG   ""

The version tag. Normally, it's an empty string. It's "SNAPSHOT" for snapshot version.

Since: 1.0.0


GGANDIVA_DEPRECATED

#  define GGANDIVA_DEPRECATED

GGANDIVA_VERSION_1_0

#define GGANDIVA_VERSION_1_0 G_ENCODE_VERSION(1, 0)

You can use this macro value for compile time API version check.

Since: 1.0.0


GGANDIVA_VERSION_4_0

#define GGANDIVA_VERSION_4_0 G_ENCODE_VERSION(4, 0)

You can use this macro value for compile time API version check.

Since: 4.0.0


GGANDIVA_VERSION_MIN_REQUIRED

#define             GGANDIVA_VERSION_MIN_REQUIRED

You can use this macro for compile time API version check.

This macro value must be one of the predefined version macros such as GGANDIVA_VERSION_1_0.

If you use any functions that is defined by newer version than GGANDIVA_VERSION_MIN_REQUIRED, deprecated warnings are produced at compile time.

You must define this macro before including the gandiva-glib/gandiva-glib.h header.

Since: 1.0.0


GGANDIVA_VERSION_MAX_ALLOWED

#define             GGANDIVA_VERSION_MAX_ALLOWED

You can use this macro for compile time API version check.

This macro value must be one of the predefined version macros such as GGANDIVA_VERSION_1_0.

If you use any functions that is defined by newer version than GGANDIVA_VERSION_MAX_ALLOWED, deprecated warnings are produced at compile time.

You must define this macro before including the gandiva-glib/gandiva-glib.h header.

Since: 1.0.0


GGANDIVA_AVAILABLE_IN_ALL

#define GGANDIVA_AVAILABLE_IN_ALL

GGANDIVA_DEPRECATED_IN_4_0

#  define GGANDIVA_DEPRECATED_IN_4_0                GGANDIVA_DEPRECATED

GGANDIVA_AVAILABLE_IN_4_0

#  define GGANDIVA_AVAILABLE_IN_4_0 GGANDIVA_UNAVAILABLE(4, 0)

GGANDIVA_DEPRECATED_IN_1_0

#  define GGANDIVA_DEPRECATED_IN_1_0                GGANDIVA_DEPRECATED

GGANDIVA_AVAILABLE_IN_1_0

#  define GGANDIVA_AVAILABLE_IN_1_0 GGANDIVA_UNAVAILABLE(1, 0)

GGANDIVA_DEPRECATED_IN_0_17

#  define GGANDIVA_DEPRECATED_IN_0_17                GGANDIVA_DEPRECATED

GGANDIVA_AVAILABLE_IN_0_17

#  define GGANDIVA_AVAILABLE_IN_0_17 GGANDIVA_UNAVAILABLE(0, 17)