diff options
author | Jan Engelhardt <jengelh@medozas.de> | 2009-01-27 20:56:23 +0100 |
---|---|---|
committer | Jan Engelhardt <jengelh@medozas.de> | 2009-01-30 03:27:42 +0100 |
commit | dacafa55379fd98212031d8c559096c91d7ce93b (patch) | |
tree | 9a2e6dd3eda76dbcc22d6c74377889bca7223c41 /include/xtables | |
parent | 5f2922cfc0bbfbeb878f5c12e9fb3eb602ae5507 (diff) |
libxtables: prefix/order - program_name
Split XTABLES_VERSION into xtables and iptables, and encode the
xtables soversion into the extensions instead. This makes it possible
to upgrade iptables without having to recompile 3rd-party extensions
(if the libxtables version matches, of course).
Signed-off-by: Jan Engelhardt <jengelh@medozas.de>
Diffstat (limited to 'include/xtables')
-rw-r--r-- | include/xtables/internal.h.in (renamed from include/xtables/internal.h) | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/include/xtables/internal.h b/include/xtables/internal.h.in index 21c4401f..21438290 100644 --- a/include/xtables/internal.h +++ b/include/xtables/internal.h.in @@ -1,6 +1,8 @@ #ifndef _XTABLES_INTERNAL_H #define _XTABLES_INTERNAL_H 1 +#define IPTABLES_VERSION "@PACKAGE_VERSION@" + #ifndef XT_LIB_DIR # define XT_LIB_DIR "/usr/local/lib/iptables" #endif @@ -29,6 +31,11 @@ struct afinfo { /* This is decleared in ip[6]tables.c */ extern struct afinfo afinfo; +/** + * Program's own name and version. + */ +extern const char *program_name, *program_version; + extern void _init(void); #endif /* _XTABLES_INTERNAL_H */ |