diff options
author | Thomas Jarosch <thomas.jarosch@intra2net.com> | 2008-06-03 15:02:18 +0200 |
---|---|---|
committer | Patrick McHardy <kaber@trash.net> | 2008-06-03 15:02:18 +0200 |
commit | c634cb9cb13d6e1b6fd661b426363431f7ef321a (patch) | |
tree | 2df19948f82151fc58135c244836bb08d86a6356 /include/xtables.h.in | |
parent | 510aef98a56cdbfdb147f78b05d7554bb91770a9 (diff) |
Add xtables version defines.
Attached is a patch to add the new defines. The macro XTABLES_VERSION
is already in use, so I named it XTABLES_VERSION_CHECK. I've also tested
that an empty XTABLES_VERSION_EXTRA in configure.ac works.
Now we can write code like this:
#warning You are obselete and will be assimilated.
Signed-off-by: Thomas Jarosch <thomas.jarosch@intra2net.com>
Signed-off-by: Patrick McHardy <kaber@trash.net>
Diffstat (limited to 'include/xtables.h.in')
-rw-r--r-- | include/xtables.h.in | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/include/xtables.h.in b/include/xtables.h.in index c8a8746f..4ce73e97 100644 --- a/include/xtables.h.in +++ b/include/xtables.h.in @@ -18,6 +18,9 @@ #endif #define XTABLES_VERSION "@PACKAGE_VERSION@" +#define XTABLES_VERSION_CODE (0x10000 * @XTABLES_VERSION_MAJOR@ + 0x100 * @XTABLES_VERSION_MINOR@ + @XTABLES_VERSION_PATCH@) + +#define XTABLES_API_VERSION(x,y,z) (0x10000*(x) + 0x100*(y) + z) /* Include file for additions: new matches and targets. */ struct xtables_match |