summaryrefslogtreecommitdiff
path: root/glibtop.h
diff options
context:
space:
mode:
authorBenoît Dejean <bdejean@src.gnome.org>2004-11-18 21:25:22 +0000
committerBenoît Dejean <bdejean@src.gnome.org>2004-11-18 21:25:22 +0000
commit77b892ebf7ca85a5d10dfadc0fb6ab665c4527de (patch)
treede6a21aa4604b9096aeb03e46675f9fe02232681 /glibtop.h
parentdb2fed4da3bb74966fba90bdd573e345e2efcf7d (diff)
downloadlibgtop-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.h21
1 files changed, 21 insertions, 0 deletions
diff --git a/glibtop.h b/glibtop.h
index 16717283..c90ae18b 100644
--- a/glibtop.h
+++ b/glibtop.h
@@ -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>