X-Git-Url: https://www.fi.muni.cz/~kas/git//home/kas/public_html/git/?a=blobdiff_plain;f=libdocument%2Fev-version.h.in;h=bdad6f75c662273f826ab4e877bc30d556b5a463;hb=10014e93560d3f28d3a455e39675f3def9e543e6;hp=2601622ef0122100d226ba1bd64744b3f28760c9;hpb=1086dfad6d63d9aa737934f4dae75c3f14fdc804;p=evince.git diff --git a/libdocument/ev-version.h.in b/libdocument/ev-version.h.in index 2601622e..bdad6f75 100644 --- a/libdocument/ev-version.h.in +++ b/libdocument/ev-version.h.in @@ -19,10 +19,48 @@ #ifndef EV_VERSION_H #define EV_VERSION_H +/** + * SECTION:ev-version + * @short_description: Library version checks + * + * These macros enable compile time checks of the library version. + */ + +/** + * EV_MAJOR_VERSION: + * + * The major version number of the EV library + * (e.g. in version 3.1.4 this is 3). + */ + #define EV_MAJOR_VERSION (@EV_MAJOR_VERSION@) + +/** + * EV_MINOR_VERSION: + * + * The minor version number of the EV library + * (e.g. in version 3.1.4 this is 1). + */ #define EV_MINOR_VERSION (@EV_MINOR_VERSION@) + +/** + * EV_MICRO_VERSION: + * + * The micro version number of the EV library + * (e.g. in version 3.1.4 this is 4). + */ #define EV_MICRO_VERSION (@EV_MICRO_VERSION@) +/** + * EV_CHECK_VERSION: + * @major: required major version + * @minor: required minor version + * @micro: required micro version + * + * Macro to check the library version at compile time. + * It returns 1 if the version of EV is greater or + * equal to the required one, and 0 otherwise. + */ #define EV_CHECK_VERSION(major,minor,micro) \ (EV_MAJOR_VERSION > (major) || \ (EV_MAJOR_VERSION == (major) && EV_MINOR_VERSION > (minor)) || \