summaryrefslogtreecommitdiffstats
path: root/include
diff options
context:
space:
mode:
authorFlorian Westphal <fw@strlen.de>2018-11-06 16:06:26 +0100
committerFlorian Westphal <fw@strlen.de>2018-11-12 17:41:58 +0100
commitc15c2869168d71d07aca0221e1b37f0c5da54547 (patch)
tree8869808e0c36ada3d9cb4fa67e5b609ac254598d /include
parentf4e40e395af2b73cd72c5454e41fb879da8c5f61 (diff)
xt: pass octx to translate function
We can't use it when no translation is available as libxtables will use plain printf(), but when translation is available we can. Signed-off-by: Florian Westphal <fw@strlen.de>
Diffstat (limited to 'include')
-rw-r--r--include/xt.h5
1 files changed, 3 insertions, 2 deletions
diff --git a/include/xt.h b/include/xt.h
index 753511e6..549eb9fe 100644
--- a/include/xt.h
+++ b/include/xt.h
@@ -6,9 +6,10 @@ struct netlink_parse_ctx;
struct nftnl_expr;
struct rule_pp_ctx;
struct rule;
+struct output_ctx;
#ifdef HAVE_LIBXTABLES
-void xt_stmt_xlate(const struct stmt *stmt);
+void xt_stmt_xlate(const struct stmt *stmt, struct output_ctx *octx);
void xt_stmt_release(const struct stmt *stmt);
void netlink_parse_target(struct netlink_parse_ctx *ctx,
@@ -20,7 +21,7 @@ void netlink_parse_match(struct netlink_parse_ctx *ctx,
void stmt_xt_postprocess(struct rule_pp_ctx *rctx, struct stmt *stmt,
struct rule *rule);
#else
-static inline void xt_stmt_xlate(const struct stmt *stmt) {}
+static inline void xt_stmt_xlate(const struct stmt *stmt, struct output_ctx *octx) {}
static inline void xt_stmt_release(const struct stmt *stmt) {}
#include <erec.h>