21 #include <eq/client/api.h>
22 #include <lunchbox/types.h>
29 # define EQ_VERSION_MAJOR 1
32 # define EQ_VERSION_MINOR 6
35 # define EQ_VERSION_PATCH 1
38 # define EQ_VERSION_REVISION cc338c4
41 # define EQ_VERSION_ABI 160
44 # define EQ_COLLAGE_VERSION 1.0.1
47 # define EQ_LUNCHBOX_VERSION 1.8.0
50 # define EQ_VERSION_GT( MAJOR, MINOR, PATCH ) \
51 ( (EQ_VERSION_MAJOR>MAJOR) || \
52 (EQ_VERSION_MAJOR==MAJOR && (EQ_VERSION_MINOR>MINOR || \
53 (EQ_VERSION_MINOR==MINOR && EQ_VERSION_PATCH>PATCH))))
56 # define EQ_VERSION_GE( MAJOR, MINOR, PATCH ) \
57 ( (EQ_VERSION_MAJOR>MAJOR) || \
58 (EQ_VERSION_MAJOR==MAJOR && (EQ_VERSION_MINOR>MINOR || \
59 (EQ_VERSION_MINOR==MINOR && EQ_VERSION_PATCH>=PATCH))))
62 # define EQ_VERSION_LT( MAJOR, MINOR, PATCH ) \
63 ( (EQ_VERSION_MAJOR<MAJOR) || \
64 (EQ_VERSION_MAJOR==MAJOR && (EQ_VERSION_MINOR<MINOR || \
65 (EQ_VERSION_MINOR==MINOR && EQ_VERSION_PATCH<PATCH))))
68 # define EQ_VERSION_LE( MAJOR, MINOR, PATCH ) \
69 ( (EQ_VERSION_MAJOR<MAJOR) || \
70 (EQ_VERSION_MAJOR==MAJOR && (EQ_VERSION_MINOR<MINOR || \
71 (EQ_VERSION_MINOR==MINOR && EQ_VERSION_PATCH<=PATCH))))
78 static uint32_t getMajor();
81 static uint32_t getMinor();
84 static uint32_t getPatch();
87 static std::string getRevision();
90 static uint32_t getABI();
93 static uint32_t getInt();
96 static float getFloat();
102 static std::string getString();
109 {
return getMajor()==EQ_VERSION_MAJOR && getMinor()==EQ_VERSION_MINOR; }
113 #endif //EQ_VERSION_H
Information about the current Equalizer version.