Top | ![]() |
![]() |
![]() |
![]() |
extern const guint | tracker_major_version |
extern const guint | tracker_minor_version |
extern const guint | tracker_micro_version |
extern const guint | tracker_binary_age |
extern const guint | tracker_interface_age |
#define | TRACKER_MAJOR_VERSION |
#define | TRACKER_MINOR_VERSION |
#define | TRACKER_MICRO_VERSION |
Tracker provides version information, primarily useful in configure checks for builds that have a configure script. Applications will not typically use the features described here.
const gchar * tracker_check_version (guint required_major
,guint required_minor
,guint required_micro
);
Checks that the Tracker library in use is compatible with the given version. Generally you would pass in the constants TRACKER_MAJOR_VERSION, TRACKER_MINOR_VERSION, TRACKER_MICRO_VERSION as the three arguments to this function; that produces a check that the library in use is compatible with the version of Tracker the application or module was compiled against.
Compatibility is defined by two things: first the version
of the running library is newer than the version
required_major.required_minor
.required_micro
. Second
the running library must be binary compatible with the
version required_major.required_minor
.required_micro
(same major version.)
#define TRACKER_CHECK_VERSION(major,minor,micro)
This macro essentially does the same thing as
tracker_check_version()
but as a pre-processor operation rather
than a run-time operation. It will evaluate true or false based the
version passed in and the version available.
Example 1. Simple version check example
if (!TRACKER_CHECK_VERSION (0, 10, 7)) { g_error ("Tracker version 0.10.7 or above is needed"); }
extern const guint tracker_major_version;
The major version of the Tracker library.
An integer variable exported from the library linked against at application run time.
extern const guint tracker_minor_version;
The minor version of the Tracker library.
An integer variable exported from the library linked against at application run time.
extern const guint tracker_micro_version;
The micro version of the Tracker library.
An integer variable exported from the library linked against at application run time.
extern const guint tracker_binary_age;
The binary age of the Tracker library. Defines how far back backwards compatibility reaches.
An integer variable exported from the library linked against at application run time.
extern const guint tracker_interface_age;
The interface age of the Tracker library. Defines how far back the API has last been extended.
An integer variable exported from the library linked against at application run time.
#define TRACKER_MAJOR_VERSION 3
The major version of the Tracker library.
Like tracker_major_version, but intended to be used at application compile time.
#define TRACKER_MINOR_VERSION 1
The minor version of the Tracker library.
Like tracker_minor_version, but intended to be used at application compile time.
#define TRACKER_MICRO_VERSION 2
The micro version of the Tracker library.
Like tracker_micro_version, but intended to be used at application compile time.