Version Checking

Version Checking

Synopsis

#define             EDS_MAJOR_VERSION
#define             EDS_MINOR_VERSION
#define             EDS_MICRO_VERSION
#define             EDS_CHECK_VERSION                   (major,
                                                         minor,
                                                         micro)
extern const guint  eds_major_version;
extern const guint  eds_minor_version;
extern const guint  eds_micro_version;
const gchar *       eds_check_version                   (guint required_major,
                                                         guint required_minor,
                                                         guint required_micro);

Description

Details

EDS_MAJOR_VERSION

#define EDS_MAJOR_VERSION 3

The major version number of the Evolution-Data-Server library. Like eds_major_version(), but from the headers used at application compile time, rather than from the library linked against at application run time.


EDS_MINOR_VERSION

#define EDS_MINOR_VERSION 20

The minor version number of the Evolution-Data-Server library. Like eds_minor_version(), but from the headers used at application compile time, rather than from the library linked against at application run time.


EDS_MICRO_VERSION

#define EDS_MICRO_VERSION 6

The micro version number of the Evolution-Data-Server library. Like eds_micro_version(), but from the headers used at application compile time, rather than from the library linked against at application run time.


EDS_CHECK_VERSION()

#define             EDS_CHECK_VERSION(major,minor,micro)

Checks the version of the Evolution-Data-Server library. Returns TRUE if the version of the EDS header files is the same as or newer than the passed-in version.

major :

the major version number

minor :

the minor version number

micro :

the micro version number

eds_major_version

extern const guint eds_major_version;

The major version number of the Evolution-Data-Server libraries. (e.g. in Evolution-Data-Server 2.24.1 this is 2.)

This variable is in the library, so it represents the EDS library you have linked against. Contrast with the EDS_MAJOR_VERSION macro, which represents the major version of the EDS headers you have included.


eds_minor_version

extern const guint eds_minor_version;

The minor version number of the Evolution-Data-Server libraries. (e.g. in Evolution-Data-Server 2.24.1 this is 24.)

This variable is in the library, so it represents the EDS library you have linked against. Contrast with the EDS_MINOR_VERSION macro, which represents the minor version of the EDS headers you have included.


eds_micro_version

extern const guint eds_micro_version;

The micro version number of the Evolution-Data-Server libraries. (e.g. in Evolution-Data-Server 2.24.1 this is 1.)

This variable is in the library, so it represents the EDS library you have linked against. Contrast with the EDS_MICRO_VERSION macro, which represents the micro version of the EDS headers you have included.


eds_check_version ()

const gchar *       eds_check_version                   (guint required_major,
                                                         guint required_minor,
                                                         guint required_micro);