diff options
author | Benoît Dejean <bdejean@src.gnome.org> | 2004-11-18 21:25:22 +0000 |
---|---|---|
committer | Benoît Dejean <bdejean@src.gnome.org> | 2004-11-18 21:25:22 +0000 |
commit | 77b892ebf7ca85a5d10dfadc0fb6ab665c4527de (patch) | |
tree | de6a21aa4604b9096aeb03e46675f9fe02232681 /glibtop.h | |
parent | db2fed4da3bb74966fba90bdd573e345e2efcf7d (diff) | |
download | libgtop-77b892ebf7ca85a5d10dfadc0fb6ab665c4527de.tar.gz |
Removed unused files.
* LIBGTOP-VERSION:
* libgtop-mirror.sh: Removed unused files.
* libgtopconfig.h.in: Added.
* Makefile.am:
* configure.in:
* glibtop.h: Added libgtopconfig.h and LIBGTOP_VERSION_CHECK(X, Y, Z).
This can be used in build tests.
Diffstat (limited to 'glibtop.h')
-rw-r--r-- | glibtop.h | 21 |
1 files changed, 21 insertions, 0 deletions
@@ -26,6 +26,27 @@ typedef struct _glibtop glibtop; +/** + * LIBGTOP_CHECK_VERSION + * @major: Major version number + * @minor: Minor version number + * @micro: Micro version number + * + * Checks if the version given is compatable with this version of the + * library. For example, LIBGTOP_CHECK_VERSION(1.2.3) would return TRUE + * if the version is 1.2.5, and FALSE if 1.1.0. This can be used in + * build tests. + * + **/ + +#include <libgtopconfig.h> + +#define LIBGTOP_CHECK_VERSION(major, minor, micro) \ +(LIBGTOP_MAJOR_VERSION > (major) || \ +(LIBGTOP_MAJOR_VERSION == (major) && LIBGTOP_MINOR_VERSION > (minor)) || \ +(LIBGTOP_MAJOR_VERSION == (major) && LIBGTOP_MINOR_VERSION == (minor) && \ +LIBGTOP_MICRO_VERSION >= (micro))) + #include <glibtop/global.h> |