![]() |
![]() |
![]() |
Exo Reference Manual | ![]() |
---|---|---|---|---|
Top | Description |
#include <exo/exo.h> extern const guint exo_major_version; extern const guint exo_minor_version; extern const guint exo_micro_version; const gchar * exo_check_version (guint required_major
,guint required_minor
,guint required_micro
); #define EXO_MAJOR_VERSION #define EXO_MINOR_VERSION #define EXO_MICRO_VERSION #define EXO_CHECK_VERSION (major, minor, micro)
Exo provides version information, primarily useful in configure for builds that have a configure script. Applications may use it to check if a certain feature is available in the version of libexo they are being built against or being linked with.
extern const guint exo_major_version;
The major version number of the exo library (e.g. in exo 1.2.3 this is 1).
This variable is in the library, and therefore represents the exo library you have linked against. Contrast with the EXO_MAJOR_VERSION macro, which represents the major version of the libexo headers you have included.
extern const guint exo_minor_version;
The minor version number of the exo library (e.g. in exo 1.2.3 this is 2).
This variable is in the library, and therefore represents the exo library you have linked against. Contrast with the EXO_MINOR_VERSION macro, which represents the minor version of the libexo headers you have included.
extern const guint exo_micro_version;
The micro version number of the exo library (e.g. in exo 1.2.3 this is 3).
This variable is in the library, and therefore represents the exo library you have linked against. Contrast with the EXO_MICRO_VERSION macro, which represents the micro version of the libexo headers you have included.
const gchar * exo_check_version (guint required_major
,guint required_minor
,guint required_micro
);
Checks that the exo
library
in use is compatible with the given version. Generally you would pass in
the constants EXO_MAJOR_VERSION, EXO_MINOR_VERSION and EXO_MICRO_VERSION
as the three arguments to this function; that produces
a check that the library in use is compatible with the version of
exo
the application was
compiled against.