libxtables: Introduce global params structuring
commit8e90ce66a99e5dc9b055a9fd14e8e9216f90233c
authorJamal Hadi Salim <hadi@cyberus.ca>
Wed, 11 Feb 2009 11:58:54 +0000 (11 12:58 +0100)
committerPatrick McHardy <kaber@trash.net>
Wed, 11 Feb 2009 11:58:54 +0000 (11 12:58 +0100)
tree11a43cdd816117b323d1897ed55f408810e58f59
parent300e2909ba4714abc6093cba0ed860708282bd3e
libxtables: Introduce global params structuring

introduce a new struct,xtables_globals, so as to
localize the globals used and help in symbol renames.
The applications must invoke xtables_set_params() before starting
to use any iptables APIs.
xtables_set_params() is intended to free xtables from depending
(as it does right now) on existence of such externally definitions
(from iptables/iptables6 etc). At the moment, xtables wont even
compile without presence of at least one of {iptables/iptables6 etc}

Signed-off-by: Jamal Hadi Salim <hadi@cyberus.ca>
Signed-off-by: Patrick McHardy <kaber@trash.net>
include/xtables.h.in
xtables.c